How to Return Text in XLOOKUP (replacing a IF and ISNA and VLOOKUP formula)

yosarrin

New Member
Joined
Oct 11, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I have an existing VLOOKUP formula as follows: =IF(ISNA(VLOOKUP(@D:D;Logsheet!G:G;1;0));”not found”;”match”). I am trying to replace this with an XLOOKUP function. What the existing VLOOKUP and IF and ISNA combination does, is it checks if a particular unique number found in column D in the primary worksheet, exists in the G column of a separate worksheet titled Logsheet, if it does, it returns a “match” result, it it does not, it returns a “not found” result in excel 365. If someone could suggest a XLOOKUP equivalent formula I would appreciate it-I have tried a couple of what I thought were obvious formulas, but I end up getting a #SPILL! or #VALUE errors?
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Since you are not returning the actual lookup value, you wouldn't normally use a lookup for it.
Also with your @D:D I am unclear of what you are actually looking up.

With the formula in row 2 I would be lookign more at something like this.
Excel Formula:
=IF(COUNTIFS(LogSheet!G:G,D2),"match","not found")
or
Excel Formula:
=IF(ISNUMBER(MATCH(D2,LogSheet!G:G,0)),"match","notfound")

The error position in XLOOKUP doesn't help you very much if you are not wanting to return the lookup value but only want to return "match"
 
Upvote 0

Forum statistics

Threads
1,215,068
Messages
6,122,950
Members
449,095
Latest member
nmaske

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