Xlookup formula with Retrun array referenced to a cell

gpsaltus

New Member
Joined
Jul 29, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi All

I want to use xlookup instead of vlookup and the lookup array controlled by reference to a cell. for example in vlookup you can=VLOOKUP(J3,T:U,Q1,0) but in Xlookup =XLOOKUP($J2,$T:$T,U:U,0).

The reason is in the reports I am creating look at multiple pivot tables which have data by month. Using one cell you can update all formulas in one go.

Thanks guys
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Welcome to the MrExcel board!

Is this the sort of thing you mean?

23 07 30.xlsm
JKLQTUVW
13
2a894
3c22b0.6105
4c527
5d4366
VLOOKUP v XLOOKUP
Cell Formulas
RangeFormula
K3K3=VLOOKUP(J3,T:W,Q1,0)
L3L3=XLOOKUP(J3,T:T,INDEX(T:W,0,Q1))
 
Upvote 0
Welcome to the MrExcel board!

Is this the sort of thing you mean?

23 07 30.xlsm
JKLQTUVW
13
2a894
3c22b0.6105
4c527
5d4366
VLOOKUP v XLOOKUP
Cell Formulas
RangeFormula
K3K3=VLOOKUP(J3,T:W,Q1,0)
L3L3=XLOOKUP(J3,T:T,INDEX(T:W,0,Q1))
Thanks Peter but it didnt work, maybe cause I am referencing different sheets? I will stick to vlookup :)
 
Upvote 0
I will stick to vlookup
Up to you, but referencing different sheets would not prevent using XLOOKUP if you want. You would just need to give us details of what you have, where it is, & clarify what you are wanting to do.
 
Upvote 0

Forum statistics

Threads
1,215,088
Messages
6,123,057
Members
449,091
Latest member
ikke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top