If FALSE, leave cell blank - does not work

flds

Board Regular
Joined
Jun 19, 2008
Messages
73
Hello
When cell D5 is blank, below formula in L5 returns "False". I need to have cell L5 blank. Is there a way to tweak the formula.

formula is: =IF(D5>0,DATEDIF(D5-DAY(D5)+1,$E$3,"y"))

Cell D5 is passed date, Cell E3 is Today()

Your help would be appreciated.
Thanks
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
How about
Excel Formula:
=IF(D5>0,DATEDIF(D5-DAY(D5)+1,$E$3,"y"),"")
 
Upvote 0
Thank Fluff, I did the same but did not separate it with a "," after ")", silly me.

I noticed when I have a current month it gives me "#NUM!" can this also be blank. All other pasted months and years work fine.
Can this same formula be modified?

Thanks for your help.
 
Upvote 0
Thank Fluff, I did the same but did not separate it with a "," after ")", silly me.

I noticed when I have a current month it gives me "#NUM!" can this also be blank. All other pasted months and years work fine.
Can this same formula be modified?


Thanks for your help.
Hello,
I am waiting for your response to the above issue I am facing. Will it be possible?

Thanks
 
Upvote 0
Hi Buggirl
Sorry, I did not follow what you meant. I would appreciate, If you send me the full formula.
I tried did not solve.
Hi Buggirl,

I got it. =IFERROR(IF(D5>0,DATEDIF(D5-DAY(D5)+1,$E$3,"y")), " ")
Thanks
 
Upvote 0
Hi Buggirl,

Your formula IFERROR( BLAH, " ") worked for that particular cell which returned "#NUM!".
When I drag the formula down in column "L" it returns "FALSE" (see my #1 post).
Note: cells A to K are blank until I fill them, Column "L" cell is dragged down with =IF(D5>0,DATEDIF(D5-DAY(D5)+1,$E$3,"y"),"") formula and It works fine, only when entering the current month it returns "#NUM!".

Only if you can modify this formula it is fine. If not, I can live with the formula sent by Fluff (Moderator)

Appreciate your help.
Thanks


 
Upvote 0
Hi Buggirl,

Your formula IFERROR( BLAH, " ") worked for that particular cell which returned "#NUM!".
When I drag the formula down in column "L" it returns "FALSE" (see my #1 post).
Note: cells A to K are blank until I fill them, Column "L" cell is dragged down with =IF(D5>0,DATEDIF(D5-DAY(D5)+1,$E$3,"y"),"") formula and It works fine, only when entering the current month it returns "#NUM!".

Only if you can modify this formula it is fine. If not, I can live with the formula sent by Fluff (Moderator)

Appreciate your help.
Thanks
What about : =IFERROR(IF(D5>0,DATEDIF(D5-DAY(D5)+1,$E$3,"y"),""),"")
 
Upvote 0
Solution

Forum statistics

Threads
1,214,990
Messages
6,122,626
Members
449,094
Latest member
bsb1122

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