Returning a blank cell

Marvo

Board Regular
Joined
Nov 27, 2023
Messages
172
Office Version
  1. 2021
Platform
  1. Windows
What can I add to the following formula to return nothing if there is nothing in the searched for cell please.
adding ,"" at the end of the formula inside the brackets didn't work.

=XLOOKUP(D6,Handicaps!$I$4:$I$72,Handicaps!$H$4:$H$72)

Many thanks
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
A cell with a formula cannot be truly blank, so the best you can achieve is:

Excel Formula:
=XLOOKUP(D6,Handicaps!$I$4:$I$72,Handicaps!$H$4:$H$72,"")

What was wrong with that option?
 
Upvote 0
Adding "" inside the brackets is giving the default return value if "not found".
If you are sure the formula will return text and not numbers (which includes dates) then
Excel Formula:
=XLOOKUP(D6,Handicaps!$I$4:$I$72,Handicaps!$H$4:$H$72) & ""
 
Upvote 0
Ah, looks like I misunderstood. Since you have 2021 you can use LET:

Excel Formula:
=LET(d,XLOOKUP(D6,Handicaps!$I$4:$I$72,Handicaps!$H$4:$H$72,""),if(d="","",d))
 
Upvote 0
Solution

Forum statistics

Threads
1,223,908
Messages
6,175,307
Members
452,633
Latest member
DougMo

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