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?
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Try:
Code:
=IF(OR(ISEMPTY(B3),B3=""),"",MONTH(B3) & "/" & DAY(B3) & "/" & YEAR(B3))
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,245
Members
448,555
Latest member
RobertJones1986

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