Peter Davison
Active Member
- Joined
- Jun 4, 2020
- Messages
- 433
- Office Version
- 365
- Platform
- Windows
I have tried to use Xlookup which is working okay when the column to search is not variable.
For example I want to look up the Rank number 1 but it could be in any one of 10 columns so I want to match which column to use.
This is my xlookup formula -
XLOOKUP($B187,'Pivot Vol'!$AE$9:$AE$5000,'Pivot Vol'!$B$9:$B$5000,"",0)
I want to be able to use match for the AE column because it could be any column AB to AG.
The return column will always be B.
B187 is a number it is looking for in the search column
So its like I normally use a VLookup with Match but want to use XLookup and match but can't work it out.
Could anyone help me. It would be really appreciated?
Thanks
For example I want to look up the Rank number 1 but it could be in any one of 10 columns so I want to match which column to use.
This is my xlookup formula -
XLOOKUP($B187,'Pivot Vol'!$AE$9:$AE$5000,'Pivot Vol'!$B$9:$B$5000,"",0)
I want to be able to use match for the AE column because it could be any column AB to AG.
The return column will always be B.
B187 is a number it is looking for in the search column
So its like I normally use a VLookup with Match but want to use XLookup and match but can't work it out.
Could anyone help me. It would be really appreciated?
Thanks