IFERROR and XLOOKUP only recognising dates and not text

Joined
Apr 18, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi there,
I have a spreadsheet that has columns which show either a date or some text. e.g. '22/04/2024' or 'Ready' (see column AW in the pic below).
When i do an xlookup of that column on another tab, i use IFERROR so that if there are any blanks, then it doesnt show the 0/01/1900 date, but i also want it to take across the text.
=IFERROR(1/(1/XLOOKUP($A2,SiteList!$A:$A,SiteList!AW:AW)),"")
When i do the above formula it only takes across the dates and fails to bring across the text (in the red square in the pic below)

When i do a normal Xlookup: =XLOOKUP($A2,SiteList!$A:$A,SiteList!AW:AW) then this works but it still shows the blanks as 0/01/1900 dates.

Could someone please help me?
Thank you
 

Attachments

  • IFERROR XLOOKUP date text.jpg
    IFERROR XLOOKUP date text.jpg
    86.6 KB · Views: 5

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Hi & welcome to MrExcel.
How about
Excel Formula:
=LET(x,XLOOKUP($A2,SiteList!$A:$A,SiteList!AW:AW,""),IF(x="","",x))
 
Upvote 0
Solution
when you do 1/1/xlookup it returns text and tries to do math with it, which returns an error then it returns ""
Try if the solution from Fluff works for you.
 
Upvote 0

Forum statistics

Threads
1,215,281
Messages
6,124,045
Members
449,139
Latest member
sramesh1024

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