Xlookup in 2 directions issue

axelg

New Member
Joined
Jan 21, 2016
Messages
42
Office Version
  1. 365
Platform
  1. Windows
I'm using a table like this
1644249150498.png


In cell B3 and B5 I have some calculated values which I pick up in other sheets.

1644248500563.png


B3, gives the value "=Invul_LOA", celname that is filled in on onther sheet. Basically that is always a number that i lookup in "Overal length" column.
B5, gives the value "=Result_DockPilot_RigthIn", calname that is calculated on other sheet. This is were I have the issue I believe. The value here is to be looked up in "Overal length" row (A,1,2,3A,3b,4,5)


The formula I use is : =XLOOKUP(B3;B16:B57;XLOOKUP(B5;C15:I15;$C$16:$I$57);0;1)

I cannot get it to work correctly? If in B5 there is a letter, it works. if a number, it doesn't (when I ad value(b5) in the formule, the number works , but the letters don't ???


Seems it has to do with where I pick up these B5 Values. Because if I manually type ( A or number ) then it works fine.
So maybe something in the layout of where i pick up the B Values ? But how can I get that correct?

Many thansk
 
up is in the "if not found" argument of the 2nd xlookup, so if B5 is a number stored as text & isn't found then it will effectively do the same lookup but adding 0 to
Great, thanks, good to know.
 
Upvote 0

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,429
Messages
6,119,424
Members
448,896
Latest member
MadMarty

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