Need formulated cells to stay blank

c2vince

New Member
Joined
Aug 10, 2018
Messages
2
How do I keep a cell blank if the cell contains a DATE calculating formula ""=DATE(LEFT(A2,4),MID(A2,6,2),RIGHT(A2,2))"" but the cell being referenced has no data? What I would like is to keep the formula in every cell of the column but I don't want the error code, or ""December-09"" the date that I keep getting, to pop-up.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
=if(A2 = "", "", yourFormula)

What's an example of what's in those cells?
 
Last edited:
Upvote 0
The formula you posted wouldn't give that result with a date in A2.

This would:

=if(a2 = "", "", edate(a2, 12))
 
Upvote 0

Forum statistics

Threads
1,214,991
Messages
6,122,628
Members
449,095
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