If less than today() insert nothing ("") otherwise insert single space (" ")

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
I want to insert nothing if date is less than today otherwise a single space. I've tried if(B2>today(),""," ")

Hi, it looks like you have your equality test the wrong way around.

if(B2<today(),""," ")
 
Upvote 0
You were so close. Just swap the inequality;

Code:
<today(),""," ")
<today(),""," ")
=IF(B2<TODAY(),""," ")
<today(),""," ")

I tested this just now. The only problem I can see is that in both instances "" and " " the result is blank when filtered. Which isn't all the helpful.

Also Excel has an annoying habit of not viewing "" as an entirely blank cell. Once you've copy pasted values then the Ctrl/directional keys still jump over these as though there were something there and CountA formulas count them as non empty. If what you are aiming for is a truly empty cell and you don't need it to be dynamic then return "DELETE" and then use find/replace to Find DELETE and replace with nothing - this will leave the cell truly empty.
</today(),"",">
</today(),"","></today(),"",">
 
Last edited:
Upvote 0
I downloaded your file to Excel and with the exception of C1 which appears to contain text and not a date it appears to work for me. In what way does it not work for you?


Excel 2013/2016
BCDEFGHIJKLMNOP
117 Dec 2017Mon1819 Dec 201720 Dec 201721 Dec 201722 Dec 201723 Dec 201724 Dec 201725 Dec 201726 Dec 201727 Dec 201728 Dec 201729 Dec 201730 Dec 201731 Dec 2017
2 
3TRUEFALSETRUEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSE
4FALSETRUEFALSETRUETRUETRUETRUETRUETRUETRUETRUETRUETRUETRUETRUE
If less than today ()
Cell Formulas
RangeFormula
B2=IF(B1),""," ")
B3=B2=""
B4=B2=" "
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,335
Members
452,636
Latest member
laura12345

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