mayday1
Board Regular
- Joined
- Oct 5, 2007
- Messages
- 241
This works, simple VLOOKUP in a second file:
=IFERROR(VLOOKUP(B4,'[DataFeed.xlsx]Personnel'!$E$3:$F$100,2),"")
But now I need I need to do the VLOOKUP when the range in the second file is different in every day's file. Today it might be $E$3:$F$100 and tomorrow it might be $E$596:$F$999.
A1 in the first file contains the name of an employee - It's a drop down so I can change the name to the person I need data for. In the second file, Column A contains rows with the names of all employees (in alphabetical order). The other columns contain data I want my VLOOKUP to get data from.
So if A1 in the first file contains the name Bob, and Bob appears in the second file in rows 53 through 323, I need my VLOOKUP in the second file to use a range of $E$53:$F$323.
But then if I change A1 in my first file to Joe, and Joe appears in the second file in row 1233 through 1400, I need my VLOOKUP in the second file to use a range of $E$1233:$F$1400.
Possible? I can't use VBA on this one - needs to be a formula.
=IFERROR(VLOOKUP(B4,'[DataFeed.xlsx]Personnel'!$E$3:$F$100,2),"")
But now I need I need to do the VLOOKUP when the range in the second file is different in every day's file. Today it might be $E$3:$F$100 and tomorrow it might be $E$596:$F$999.
A1 in the first file contains the name of an employee - It's a drop down so I can change the name to the person I need data for. In the second file, Column A contains rows with the names of all employees (in alphabetical order). The other columns contain data I want my VLOOKUP to get data from.
So if A1 in the first file contains the name Bob, and Bob appears in the second file in rows 53 through 323, I need my VLOOKUP in the second file to use a range of $E$53:$F$323.
But then if I change A1 in my first file to Joe, and Joe appears in the second file in row 1233 through 1400, I need my VLOOKUP in the second file to use a range of $E$1233:$F$1400.
Possible? I can't use VBA on this one - needs to be a formula.