XLOOKUP + VLOOKUP error

Cookdem

New Member
Joined
Jun 11, 2024
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi all!

I am having an issue with XLOOKUP and VLOOKUP and can't figure out if it is a formatting error with the text, specifically the 'XH' at the start of the text

To my eyes, I have checked the data set both sides and the format is the same for both so the lookup's should work

The formula presenting as #VALUE is =IFNA(IF(XLOOKUP(B26,'New Timesheet'!C:C,'New Timesheet'!C:C,0,0,1),"Y","N"),"N")
The formula next to it is =IFNA(IF(AND(XLOOKUP(B26,'New Timesheet'!C:C,'New Timesheet'!C:C,0,0,1),'New Data Tab'!G26=40),"Y","N"),"N")

Is there something really obvious I'm missing? The other really odd thing is that the 2nd formula presents correctly, even though it is exactly the same as the first but with more criteria!

Please let me know if you need more info and thanks in advance!
 

Attachments

  • Screenshot 2024-06-11 151104.png
    Screenshot 2024-06-11 151104.png
    26.4 KB · Views: 16

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.
Hi & welcome to MrExcel.
How about
Excel Formula:
=IF(ISNUMBER(XMATCH(B26,'New Timesheet'!C:C)),"Y","N")
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,875
Messages
6,181,514
Members
453,050
Latest member
Obil

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