DATE

annadinesh

Board Regular
Joined
Mar 1, 2017
Messages
105
Dear Team

I want a formula in a cell which shows

I have a formula in cell K4 is =IF(E4>=DATE(2018,2,1),E4+1095,"") which shows the date after 3 years of E4 in K4

date in cell E4 is 01.12.2018

but I want

in K4 that if the difference of the date <1095 the k4 should blank


Thanks and regards


Dinesh Saha
9932022569
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
What is the format of cell E4?
Is cell E4 a valid date with special formatting, or is it a text entry?

If you are unsure, enter this formula in any blank cell and tell us what it returns:
=ISNUMBER(E4)
If it returns FALSE, you have a text entry.

Also, in your date 01.12.2018, is that mm.dd.yyyy or dd.mm.yyyy?
 
Upvote 0
What is the format of cell E4?
Is cell E4 a valid date with special formatting, or is it a text entry?

If you are unsure, enter this formula in any blank cell and tell us what it returns:
=ISNUMBER(E4)
If it returns FALSE, you have a text entry.

Also, in your date 01.12.2018, is that mm.dd.yyyy or dd.mm.yyyy?
manual date entry DATE on cell E4
dd.mm.yyyy
 
Upvote 0
Try this:

=IF(DATE(RIGHT(E4,4),MID(E4,3,2),LEFT(E4,2))>1,DATE(RIGHT(E4,4),MID(E4,3,2),LEFT(E4,2))+1095,"")
 
Upvote 0
manual date entry DATE on cell E4
dd.mm.yyyy
You did not answer my question regarding what this formula returns:
=ISNUMBER(E4)

Also note that adding 1095 might not always work properly if a leap year is in the middle of there (you will be off one day).
Better to use EDATE, in which you can add an exact number of months, i.e.
=EDATE(E4,36)
 
Upvote 0

Forum statistics

Threads
1,215,684
Messages
6,126,199
Members
449,298
Latest member
Jest

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