Making a cell blank whilst keeping the formula nad the conditional formating

Matt Young

New Member
Joined
Nov 2, 2018
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Hi. This is my first question sorry in advance.

So I hae two clumns C and D, D is my expiry date column and C is my start date column. I have formated D to turn orage or red depending on the time left. I also have the formual =EDATE(C3,6). The problem s that because nothng is acctually entered in colmn C yet then all of colmn D is displaying 01/06/1900 in red. Is there a way to make D stay blank until a date is entered in C?
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Welcome to the Board!

Try using this formula instead:
=IF(C3>0,EDATE(C3,6),"")
 
Upvote 0
You are a genious, I have spent 3 days trying different variations of ISBLANK, IF etc. Thank you :)
 
Upvote 0
You are welcome.

An important thing to remember about dates and time is that Excel stores them as numbers, specifically the number of days since 1/0/1900. Time is a fraction of one day.
You can see this if you enter any date, and change the format to "General".

Knowing this, that means that any valid date entered in is actually some number greater than 0. That is why we can use: IF(C3>0
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,213
Members
452,618
Latest member
Tam84

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