# Leave Cell blank if formula empty

#### Desu Nota from Columbus

##### Well-known Member
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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

#### VoG

##### Legend
Try
=IF(B3="","",MONTH(B3) & "/" & DAY(B3) & "/" & YEAR(B3))

#### JackDanIce

##### Well-known Member
Try:
Code:
``=IF(OR(ISEMPTY(B3),B3=""),"",MONTH(B3) & "/" & DAY(B3) & "/" & YEAR(B3))``

#### Desu Nota from Columbus

##### Well-known Member

it is now working

#### Jonmo1

##### MrExcel MVP
Try

=TEXT(B3,IF(ISNUMBER(B3),"mm/dd/yyyy",""))

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,164,149
Messages
5,835,683
Members
430,375
Latest member
datdog22

### 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.

### Which adblocker are you using?

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

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