dwilson38550m
Board Regular
- Joined
- Nov 21, 2005
- Messages
- 89
Hi,
I wonder if anyone could help as I have been wracking my brains. I have set up a fomula to lookup against data on a different tab on the SAME workbook.
Example below - this lookups the tab number noted on cell D21 of the current sheet, finds the 2nd column (column B) against the lookup parameter ("Total Expected Order" or "Total Expected Office Hours") and returns the number. (on Sheet1) The tab number noted in cell D21 is on the SAME workbook.
EXAMPLE.xlsx (tab : Sheet1)
=IF(ISNA(VLOOKUP("Total Expected Order",INDIRECT($D21&"!$A:$Z"),2,FALSE)),0,VLOOKUP("Total Expected Order",INDIRECT($D21&"!$A:$Z"),2,FALSE))
=SUMIF(INDIRECT($D21&"!$A:$A"),"Total Expected Office Hours",INDIRECT($D21&"!$B:$B"))
PROBLEM :
What if I wanted to lookup or SUMIF on data in a DIFFERENT workbook & tab - how can I do this if I know the names of the workbook and tab (there will be multiple books and tabs so I need to define these in a particular cell I want the data returned to on EXAMPLE.xlsx (tab : Sheet1). Can I set cell D21 to something like C:\DATA\FILEA.xlsx[SheetA], or C:\DATA\FILEB.xlsx[SheetB] etc etc.
Thanks in advance.
David
I wonder if anyone could help as I have been wracking my brains. I have set up a fomula to lookup against data on a different tab on the SAME workbook.
Example below - this lookups the tab number noted on cell D21 of the current sheet, finds the 2nd column (column B) against the lookup parameter ("Total Expected Order" or "Total Expected Office Hours") and returns the number. (on Sheet1) The tab number noted in cell D21 is on the SAME workbook.
EXAMPLE.xlsx (tab : Sheet1)
=IF(ISNA(VLOOKUP("Total Expected Order",INDIRECT($D21&"!$A:$Z"),2,FALSE)),0,VLOOKUP("Total Expected Order",INDIRECT($D21&"!$A:$Z"),2,FALSE))
=SUMIF(INDIRECT($D21&"!$A:$A"),"Total Expected Office Hours",INDIRECT($D21&"!$B:$B"))
PROBLEM :
What if I wanted to lookup or SUMIF on data in a DIFFERENT workbook & tab - how can I do this if I know the names of the workbook and tab (there will be multiple books and tabs so I need to define these in a particular cell I want the data returned to on EXAMPLE.xlsx (tab : Sheet1). Can I set cell D21 to something like C:\DATA\FILEA.xlsx[SheetA], or C:\DATA\FILEB.xlsx[SheetB] etc etc.
Thanks in advance.
David