How to make Date cell show = 0, not 1/0/1900?

jwindholz2725

Board Regular
Joined
Sep 20, 2011
Messages
94
I'm trying to make a custom spreadsheet from existing data to show due dates but the issue is if there is currently no due date the cell has a zero value and shows 1/0/1900. For simplicity A1 would be where I want to show due dates and B1 is the existing data (A1=B1). So if B1 is blank I get 1/0/1900 in A1. I've changed A1 to a General cell format which works, but then I run into an issue with actual dates. For example 1/15/2021 will show as 44211. I'm thinking there is an IF formula that could solve but can't figure it out. Any help would be appreciated.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
See if this works for you
Excel Formula:
=IF(B1=0,"0",B1)
 
Upvote 0
Solution

Forum statistics

Threads
1,223,911
Messages
6,175,335
Members
452,636
Latest member
laura12345

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