Returning a blank cell

Marvo

Board Regular
Joined
Nov 27, 2023
Messages
182
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

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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