I have a cell that mentions the year (G7) and the sheet mentions the pay period beginning (ex: January 1).
I would like to have a different cell (B9) combine the two into a date that other cells would recognize as such.
For instance, if the sheet name is January 1st and cell G7 has "2006" as a value, then I would like B9 to read "1/16" (year not shown). From there another cell (A13) would show that day/date as "Sunday, January 01, 2006".
I have been struggling with my Excel 07 Date format. Nearly every time I perform a calculation, enter in a value etc in a spreadsheet my answer is returned as a date. So for example if I enter in a cell: = 5 - 4. I get the answer "1-Jan-1900" instead of 1. I have to manually set the formats to general or number if I want the correct format. The setting seems to be the default one and occurs for all workbooks I open. What can I do to change this.
I am trying to take the year from today's date then subtract away a date from a referenced date in a separate workbook. Then I want to put this result into an IF statement. For example if the result is between the number 1 and 4, display 1, if the result is between 5 and 9, display 2, etc. Right now, I'm simply trying to reference the separate workbook for the date and subtract that from today's date, but I'm stuck because I only get the date's serial number back.
On XL2003 i am putting together a worksheet that has a list of tables by month i.e. a table for January then a table for February below it and so on...
Within each table the data is referenced as follows:
=SUM('V:Product Testing InformationAuto final test stationsTest ResultsSAP Files[Test Data070801.xls]Sheet1'!$AV$18)
How can I change the highlighted date to reference a cell containing the date? i.e.
=SUM('V:Product Testing InformationAuto final test stationsTest ResultsSAP Files[Test DataA2.xls]Sheet1'!$AV$18)
I have a rolling 12 month (each day in column) tab in Excel 2010 that references variances by ID number in column A, and the column headers are each day for 366 days (2011). I would like to create a tab that shows the past 10 day's variances by ID number. I haven't been able to write a formula that will look at the date headers and the row ID number to return the figure for that day. Here is a sample of the 12 month rolling and the 10 days at a glance that I want to populate.
Rolling 12 Months IDName12/25/201212/26/201212/27/201212/28/201212/29/2012and so on 1234Employee Name - - - - (11.07) 1235Employee Name - - - 0.20 - 1236Employee Name - - - - - 1237Employee Name - - - - (1.00)
I was wondering if using INDIRECT() function, or something like it in VBA, I could set a range as a reference instead of a fixed value... example below: Instead of the range being fixed on the first line,
I have a drop down menu where the user can chose between a,b,c and d. I would like to use this further in a formula. The formula is defined by me, although I dont think its relavant.
Lets say the drop down appears in B2, and I have got a formula called Test1(B2). However this retunrs me an error. The contents of B2 is in string format.
- Test1(B2) does not work - Test1(a) does work (assuming a is what B2 shows)
I would like to know how I can reference B2 as an argument in Formula, so it does not show error.
I have 2 columns of info. 1 is a complete list. The other has many of the same values, but is missing a lot of the values in column one. I am marrying the two lists to see where the data gaps are. Both lists are from different databases and I need to know which data the second DB is missing. Currently I am lining the 2 columns up and doing it manually. Is there a way to do this quickly as there is about 1000 records.
looking for a formula that will get me the sheet name.example: I have 3 sheets each named X, Y, Z. in cells A1 I want the name of sheet 3, which would be X
I have a workbook (Workbook A) which I need to lookup ( Vlookup() )something in a different workbook (Workbook B). In workbook A I need to lookup many (I mean hundreds) of values.
My question is: What do i put in the function tab (where we put the formulas and references) to lookup values in different workbooks? And if possible, is there a way to define a workbook A to ALWAYS look up values in a defined workbook B.
way to reference the name of a worksheet in a cell, or even better, use a cell reference to dictate the name of a worksheet.
In other words, I would like to create a new sheet, and set it's name ='Sheet1'!C1 so that if I changed C1, the worksheet would automatically be renamed to whatever is typed in C1.
If that is not possible, I would like to have a cell be tied to the name of a given worksheet, so that if I renamed the worksheet, the cell would change accordingly...similar to the &[Tab] function used in headers/footers.
I have an XLS spreadsheet which updates cells through an ODBC connection to a database. The information is pulled across ok and 90% of the Vlookup and IF statements work. The problem arises on a summary page.
When i start off the summary page has cell references in numeric order to another spreadsheet and pulls back the information to 4 cells Across and 1000 Down. ='Campaign Responses - Cash Break'!A2
This is a spreadsheet that changes once the queries have run and a number between 1-1000 records are returned. However once the data has changed and the page refreshed. Not all the results have been pulled across to the summary pages. A few are there but the numeric sequence jumps from......
I have several options in one list, call it MASTER.
When I pick Item A from the MASTER, I want to show all available options for that Item A in another list, called OPTIONS. I have 10 Items, and they all have a variation of 6 different options, some Items have 1 option, some have all 6.
Anyway, the worksheet I found is attached, but cannot figure out how this is working.
I have made 2 macros that run one after the other to perform a certan task. My issue is that I want to run Variants that I have defined in Macro1 In Macro2 but I dont know how to reference them macro 2, or if there in the same module do they recognize the varients anyway??.
I'll list the variants defined below; could someone provide me with the proper code to reference the variants form macro1 in macro2. I am also wondering if it would be easier to combine both macros under one macro and simply put a pause in the macro between both section and have a certain command to resume once the user decides to( so it would have to be a user command such as a button). If you think this would be easier could you please provide the code to pause the macro until A button is hit. both these methods woud be useful to me elsewhere as well so if it's not to much to ask could you provide both methods.
First of all, I'm completely new to both this forum and VBA. I have just done a programming course in java before. I hope you will forgive me if this have already been posted. No to my problem.
I am tryring to use different projected values to project other subparts of those units, which is done in the sheet mean needed weekly. Tje values are taken from projections. The answer that I get from mean needed weekly should be copied to a third sheet.
This is the code that I am using right know, but I cant get the for loop to work (or more exactly to be able to place the "i" in my text without making compilation errors).
I have a worksheet titled "Systems Estimate" that will dictate values on a second worksheet called "CSI Estimate". They're the same values in each cell and column, just in a different order row wise. I would like the values in each row in the A column in the "CSI Estimate" sheet to dictate columns B through W, with the values being referenced from the "Systems Estimate" sheet. I tried using an exact match with vlookup since the data isn't sorted, however it just returns the formula I enter, not a value.
I'm dealing with a DDE link and have a cell that works when I type in the value =WINROS|AVEVOL!XOM . But I don't want to manually enter each value. So I have tried to use =INDIRECT("WINROS|AVEVOL!" & A2) where A2 contains the value 'XOM', but I get a #REF! error.
Now i need to loop through these 8 sheets, storing the same range of each sheet into a matrix. I have the following
dim test () as variant
For i = 1 to 8 (1) test = sheets(i).Range("b2:u21") (2) test = cpt1.Range("b2:u21") next i
Now (1) doesn't work, but (2) does. However i do not know how to reference the cpt1 sheet name using the for loop (ie "cpt" & i) Can anyone help me with getting this to work?
I have this excellent code which I found on here that looks at the data in column A, looks at the data in column B & then returns the differences ie.
A_____________B_________C___________D______________E John________Jimi_________________Not in A_______Not in B Paul________Sporty________________Jimi____________John George______Ginger________________Eric____________Posh Ringo_______Scary_________________T-Bone__________Baby Posh________Eric Scary_______Ringo Sporty______Paul Ginger______George Baby________T-Bone
Trying to build a form that helps assemble parts a pieces based on filling out just a small section of information. Here just a short example:
Tower Type: Type 1 Coax Length: 100 ft
Based on the above criteria, I am going to have a line item that auto fills specific parts and pieces based on the answer. The main problem I have is the coax length answer will fit within several ranges and I need a cell to be able to identify and autofill ALL of those ranges.
Specifically, if the coax length is between 0 and 100, I need to autofill the below cell with Coax 1, from 101 to 200 Coax 2, and so on and so forth. Lets say I have 5 ranges of "greater than, less than" values. how do I make a formula that will consider all of these in a VLOOKUP scenario?
If I haven't asked the right questions, or phrased them incorrectly, please let me know....I'm not the most excel experienced person...hence my visit to this forum!
I'm trying to do a loop through four arrays named Asc, Bsc, Csc and Dsc. I'm using the following code to do this but it comes up with a Type Mismatch error on the penultimate line. Please could someone explain the problem? I'm getting a bit confused as to whether I'm mixing up different types of variables, and not sure if CVar is the appropriate function.
For ch = 65 To 68 Sc = CVar(Chr(ch) & "sc") For r = 1 To 3 If Sc(r, 1) = "" Then 'ERROR HERE etc...
in sheet1 i have a list of names in column B. in the next columns(C to H) i have some numerical data about them. in sheet2 i want to keep only the names and the data in column H. all works fine except... if i insert another line in sheet1 the data in that line is not inserted in sheet2. and if i remove a line in sheet1 i get a ref error in sheet2. what can i do so the new data is inserted correctly?
What I'm tring to do is to reference a protected addin from an Excel workbook. The issue is that I do not want the user to be prompted for the password. Is there a way to programmatically input the password for the referenced add-in so that the user does not have to?
Basically I order thrice a week from a certain supplier to fill the shelves of my shop.
They make available to me two spreadsheet dumps: an orders spreadsheet, with the following columns:-
order ref date unique product code description qty
9262 03/07/2013 622642 Fabric Dye 4
And an invoices spreadsheet with the following columns:-
invoice ref date unique product code description qty
122551 04/07/2013 622642 Fabric Dye 4
Basically I can see the potential here to find out what we've ordered but that which they haven't sent which would be so handy.
I have tried to vlookup() produce code against product code, this kind of works but below are some example drawbacks:-
1) no idea if I've ordered it ten times and they've only not sent it once, or if I've ordered it ten times and they've not sent it nine times. 2) no idea of dates - i.e. ordered this in June '13, October '13 and February '14 and they sent it in February '14 only.
Sheet 1 = sheet with formulas/functions for data analysis Sheet 2 = sheet with table
I am trying to reference a column in the table on sheet 2 from sheet 1. Specifically, I am trying to set up Data Validation that will create a list of unique values from a column in the table. I tried:
[Code] ......
There is a space in the header name of the column. but I was unable to get the validation to work even with columns that have just a single word name.