Help with xlookup, lookup array from multiple columns

Kaimre328

New Member
Joined
Jul 13, 2023
Messages
2
Office Version
  1. 2019
Platform
  1. Windows
Hi all,

I'm having trouble with an xlookup formula for a project I'm working on. I want the lookup array to be A2 and column B but every time I try to do this it says spill error. This is the formula I've used: 'xlookup(A3 % 10 B:B, '10'! F:F, 10! B:B, "N/A).
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
I'm not familiar with your syntax, what does the "% 10" do in your formula.
does your version of excel have Textjoin function?

Additionally, using entire column lengths is, by many, not considered a best practice. It works fine in smaller spreadsheets, but can slow your workbook down with larger ones. Have you considered using Tables?
 
Upvote 0
Are you actually using 2019 as that version does not have the Xlookup function, nor does it have spill ranges?
 
Upvote 0
also, the arrays must be the same length, so if you add the lone cell in A3 to B:B, the arrays is one more in length that your look up array F:F.

Or is the lookup value in A3?
 
Upvote 0
here are two ways to try. One is older functionality, one is XLOOKUP, which may not be available in your version:


Book1
ABF
1
2lookup:NF17
3QBNX34
4INDEX-MATCHAR10
549TD44
6XLOOKUPXW26
749QB49
8KA17
9AS9
10IO45
11GE34
Sheet1
Cell Formulas
RangeFormula
A5A5=INDEX(F2:F11,MATCH(A3,B2:B11,0))
A7A7=XLOOKUP(A3,B2:B11,F2:F11)
 
Upvote 0

Forum statistics

Threads
1,215,086
Messages
6,123,031
Members
449,092
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