Returning a blank cell

Marvo

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

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
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,221,519
Messages
6,160,295
Members
451,636
Latest member
ddweller151

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