Leave Cell blank if formula empty

Desu Nota from Columbus

Well-known Member
Joined
Mar 17, 2011
Messages
556
I have this formula (see below) set in columns F and G to convert DateTime (columns B & C) to Month/Day/Year. I applied this formula to the entire column so when columns B & C are empty, the date is still converted to 1/0/1900 all the way to cell 65000+


=MONTH(B3) & "/" & DAY(B3) & "/" & YEAR(B3)


Is there a way to force this to say, If no value in B and C, then leave blank in F and G?
 

Some videos you may like

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Try
=IF(B3="","",MONTH(B3) & "/" & DAY(B3) & "/" & YEAR(B3))
 

JackDanIce

Well-known Member
Joined
Feb 3, 2010
Messages
9,696
Office Version
  1. 365
Platform
  1. Windows
Try:
Code:
=IF(OR(ISEMPTY(B3),B3=""),"",MONTH(B3) & "/" & DAY(B3) & "/" & YEAR(B3))
 

Watch MrExcel Video

Forum statistics

Threads
1,122,519
Messages
5,596,635
Members
414,083
Latest member
Mrsash

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
Top