
Originally Posted by
mycon73
Hi Excel Users,
I have a file that has multiple worksheets in it. The majority of the worksheets is a basic form that helps summarize job requirements for each specific project.
In this file, I have a Work Summary Log worksheet in which I'm extracting some data from the other worksheets to "summarize" all jobs into one nice work summary log.
The following form works great to "automatically" extract desired data from desired worksheets:
=IF(C20="","",INDIRECT("'"&C20&"'!I9"))
C20 = Worksheet name or Worksheet tab name
Example: 03-2008-TNG06307-101_P1
I9 = The desired extracted data
I have a handful of variables for each task, such as:
C = Complete
WIP = Work in Progress
When I use the above formula, I would like the result to be 'C' or "WIP" if that's what is stated from the 03-2008-TNG06307-101_P1 form or worksheet.
If I copy this formulat to the next row or rows, the "I9" variable does not change - The rest of the formula is fine.
How can I modify this formula so that "I9" variable becomes "I10" & gives the desired result from the worksheet in which I'm extracting data from?
Example:
If "I9" = 'C' in worksheet, 03-2008-TNG06307-101_P1, my result will be 'C' on my Work Summary Log worksheet
=IF(C20="","",INDIRECT("'"&C20&"'!I9"))
Is there another formula that works similar to the above formula or description given that will provide desired results?
Thanks
Hi,
The I9 does not automatically change as you drag the formula down since of course by definition it is text which happens to refer to a cell, rather than a reference to the cell itself.
The trick is to substitute a function for the number bit of that text. The easiest function is the ROW() function. So for example if the formula
=IF(C20="","",INDIRECT("'"&C20&"'!I9"))
is on row 20 change the formula to:
=IF(C20="","",INDIRECT("'"&C20&"'!I"&ROW()-11))
HTH
Bookmarks