Date formula returns 1900-01-00

Dian Ferrell

New Member
Joined
Jun 8, 2020
Messages
5
Office Version
  1. 2010
Platform
  1. Windows
What is wrong with my formula? It works for information in columns C & D, but Column B returns the funny date.

1591663795855.png
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Nothing wrong with your formula. In the cells filled with red, the formula returns C5 to C8 all of which are blank and seen by Excel as having a value of 0. That date serial number when formatted as a date "yyyy-mm-dd" is 1900-01-00.
 
Upvote 0
Welcome to the Board!

There is nothing wrong with it. You just need to understand how Excel tracks dates.
They actually store dates as numbers, specifically, the number of days since 1/0/1900.
So a date is really just a number with a date format.
So a value of 0 will look like 1900-01-00 in your date format.

The question then becomes. what do you want returned when BOTH D4 and C4 are blank? The value in B4 or a blank?
 
Upvote 0
OK, assuming that at least one of columns B, C, and D have a value, try this:
=IF(D4>1,D4,IF(D4="",IF(C4="",B4,C4)))
 
Upvote 0
That works to return the value in B4, but messes up another part of the formuala. I need my formula to look at column D and return that value, if blank look at column C and return that value, but if blank return the value in column B.
1591666923111.png
 
Upvote 0
That works to return the value in B4, but messes up another part of the formuala. I need my formula to look at column D and return that value, if blank look at column C and return that value, but if blank return the value in column B.
That is exactly what my formula does.
Can you explain an example where it does not work?
 
Upvote 0
Did the formula in E2=IF(D2>1,D2,IF(D2="",B2,C2), and then you filled down? If so perhaps it should have needed some referencing along the lines of:-E2=(IF($D$2>1,$D$2,IF($D$2="",B2,C2)
 
Upvote 0

Forum statistics

Threads
1,222,617
Messages
6,167,074
Members
452,094
Latest member
Roberto Saveru

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