I have a workbook (we are using them for electronic purchase orders) and I need to be able to copy a worksheet but have the formula in it increment like it would if I copied the formula in a sheet.
In other words in sheet2 I1 the formula is ='Sheet1'!$I$1+1. When I copy sheet2 and it becomes sheet3, I need the formula in I1 to say ='Sheet2'!$I$1+1.
How can i do this?
You can get a string containing the current sheet name with the following formula
=cell("filename",A1)
If you are using the standard Sheet# for your pages, then you can get the current sheet number with this formula (assuming the previous one was in B3)
=RIGHT(B3,LEN(B3) - FIND("]Sheet",B3,1)-5)
Next calculate the number for the previous sheet
=VALUE(B4)+1
Now you can use the indirect function to address a cell in the previous sheet
=INDIRECT("Sheet"&B5&"!B1")
In Sheet4, this will reference B1 in Sheet3.
Copy it to Sheet5 and it will reference B1 in Sheet 4.
Related
I'm trying to create a formula in Workbook1 that automatically pulls data from Workbook2. There is a new tab for each day in Workbook2 and are named Sheet1, Sheet2, Sheet3, etc. My ideal formula would pull the data using vlookup, while automatically incrementing the Sheet number by one each time I autofill the formula one column to the right.
Here is the current formula I have in Workbook1 to pull the data from Workbook2.
A1
(VLOOKUP("JohnSmith",'[Workbook2.xlsx]Sheet1'!$A$50:$O$79,3,FALSE)
B1
(VLOOKUP("JohnSmith",'[Workbook2.xlsx]Sheet2'!$A$50:$O$79,3,FALSE)
C1
(VLOOKUP("JohnSmith",'[Workbook2.xlsx]Sheet3'!$A$50:$O$79,3,FALSE)
In A1:
VLOOKUP("JohnSmith",INDIRECT("'[Workbook2.xlsx]Sheet" & COLUMN() & "'!$A$50:$O$79"),3,FALSE)
I am maintaining an excel sheet where Sheet1 A1 would be the name of people and B2 would be their contact number. All of the details are in sheet 2 row A and B.
So, what I want is if I put a valid name (i.e. should be in Sheet2 A) then it automatically finds the number of that name and adds in the second row. Is this possible? I have around 10-15 contacts there.
Assuming Sheet workers list is as follows:
then in Cell B2 of Sheet assignment received enter either of the following formulas
=VLOOKUP(A1,'workers list'!A2:B10,2,FALSE)
or
=INDEX('workers list'!B2:B10,MATCH(A1,'workers list'!A2:A10,0))
Change range as required.
Use this formula in sheet -1 B2 cell "=IF(A2="","",VLOOKUP(A2,Sheet2!$A:$B,2,0))"
and Dropdown this formula till you want
Sheet-2
Sheet-1
I have some data on Sheet1 from B2:G5480. I also have the same data on Sheet2 from B2:G5480 for separate calculations.
What I want is as I enter new rows on Sheet1 updating Sheet2 automatically.
Any help will be appreciate.
Method 1:
Make cells in sheet2 point to cells in sheet1
For example in Sheet2 cell A1 have formula =Sheet1!A1
Replicate this principle across the range B2:G5480, being sure not to overwrite formula cells
Method 2:
Make formulae in Sheet2 refer to data in Sheet1 by prefacing cell references with Sheet1! - leave all data on sheet1 in just one place.
I have sheet A which is a big table with data referring to January and sheet B which extrapolate data from sheet A and in cell formulas there is the link to that sheet. Now I'd like to duplicate sheet A and sheet B naming them: A2 and B2 and formulas in B2 refer automatically to A2 data. is it possible or I have to change manually the reference to the new sheet?
thanks
I need help creating a formula in a cell in a spreadsheet that would allow me to grab a value from another cell and use that value to refer to yet another cell in another sheet.
For example, in a cell that returns a student's class grade (a progress report sheet) I have the cell refer to my master grade sheet (eg. the progress report sheet's cell would be: =mastersheet!E[grab value in cell A1 of current sheet])
What formula do I use to grab a cell's value and use it to define/refer to another cell?
In Excel, if Sheet1 A1 contains B2 then in Sheet1 =INDIRECT("Sheet2!"&A1) will return the contents of Sheet2!B2.
In Google Docs spreadsheet, if Sheet1 E1 contains 4 then in Sheet1 =Indirect("Sheet2!E"&E1) will return the contents of Sheet2 Cell E4.