Peter Davison
Active Member
- Joined
- Jun 4, 2020
- Messages
- 444
- Office Version
- 365
- Platform
- Windows
I can't work out how I can use xlookup for a variable look up range based on a cell criteria?
I have a workbook 1 and sheet 1
I have a column (G) with a variable header in row 11 based on a drop down list selection
I'm trying to return a value from Workbook 2 Sheet 1 Range A35 to O1029 (with headings in row 34) which could be in columns F, I, L or O depending on the list selection above
So I am looking up a value in workbook 1 and sheet 1 Cell G12 and return in workbook 1 and sheet 1 Cell A12 what is in column A in Workbook 2 Sheet 1
So I can't see how I can use xlookup when my lookup column could be F, I, L or O.
If you have any thoughts it would be greatly appreciated.
Regards
I have a workbook 1 and sheet 1
I have a column (G) with a variable header in row 11 based on a drop down list selection
I'm trying to return a value from Workbook 2 Sheet 1 Range A35 to O1029 (with headings in row 34) which could be in columns F, I, L or O depending on the list selection above
So I am looking up a value in workbook 1 and sheet 1 Cell G12 and return in workbook 1 and sheet 1 Cell A12 what is in column A in Workbook 2 Sheet 1
So I can't see how I can use xlookup when my lookup column could be F, I, L or O.
If you have any thoughts it would be greatly appreciated.
Regards