vlookup
Thanks for the response, but unfortunately I have over 15 sheets in the other
workbook. I tried using the indirect function, but I am not that skilled and
could not get it to work.
--
TAK
"Pete_UK" wrote:
If you wanted to lookup 3 sheets, then the general approach would be:
=IF(ISNA(vlookup_1),IF(ISNA(vlookup_2),IF(ISNA(vlo okup_3),"not
present",vlookup_3),vlookup_2),vlookup_1)
where vlookup_1 in your case might be:
VLOOKUP($F3,'[PAR.xls]E-M 10741003'!$B$17:$P$300,7,FALSE)
So, you can see that the formula will be quite unwieldly.
To access a sheet name from a cell, you will have to use the INDIRECT
function, but this will only work with open workbooks.
Hope this helps.
Pete
On May 14, 4:04 pm, TAK wrote:
I have a value (M01) in my current worksheet in F3. I want to find that value
in another workbook, match on it and return the value in column 7 of that
worksheet. I have multiple sheets in the other workbook and I am currently
looking at each one individually. The formula I am using is:
=IF(ISERROR(VLOOKUP($F3,'[PAR.xls]E-M
10741003'!$B$17:$P$300,7,FALSE)),0,VLOOKUP($F3,'[PAR.xls]E-M
10741003'!$B$17:$P$300,7,FALSE))
The formula above just looks at workbook PAR.xls and worksheet E-M
10741003 within that workbook. This works just fine one sheet at a time, but
when the job number changes, I have to change the worksheet name in my
formula. Is there a way I can look at all of the sheets, not just one at a
time or pull a variable (10741003) into the formula from another cell (B3) in
my current worksheet?
--
TAK
|