date format not working correctly

  • Thread starter Thread starter Dennis Roman
  • Start date Start date
D

Dennis Roman

hello,
when i go to format a cell to have the date shown as
03/14/01 (2 digits each for month, day & year), i enter
todays date as "42804", expecting it to show up
as "04/28/04", but it comes up as "03/10/17"
other dates entered all also come up as a different date
what am i doing wrong?
also, i have excel set to the 1900 format. i thought maybe
it was in 1904, but it is set correctly....is there any
other way to fix this problem?
thank you,
dennis roman
 
hello,
when i go to format a cell to have the date shown as
03/14/01 (2 digits each for month, day & year), i enter
todays date as "42804", expecting it to show up
as "04/28/04", but it comes up as "03/10/17"
other dates entered all also come up as a different date
what am i doing wrong?
also, i have excel set to the 1900 format. i thought maybe
it was in 1904, but it is set correctly....is there any
other way to fix this problem?
thank you,
dennis roman

Date formatting only affects how cell contents are DISPLAYED. It has NO effect
on how dates are entered.

Dates must be entered in some format that XL can recognize. This means using
delimiters or certain textual representations.

If you want to enter numbers without delimiters, you need to convert that
number into an XL date before XL will understand it as such.

In your example, since March 10, 2017 is 42,804 days after Jan 1, 1900 and that
is why you get that value.

You can use either a VBA solution, or a formula to convert your entries.

One method of converting your entry is with the formula:

=DATEVALUE(TEXT(A1,"00\/00\/00"))

but there are many other methods.


--ron
 
thank you!
-----Original Message-----


Date formatting only affects how cell contents are DISPLAYED. It has NO effect
on how dates are entered.

Dates must be entered in some format that XL can recognize. This means using
delimiters or certain textual representations.

If you want to enter numbers without delimiters, you need to convert that
number into an XL date before XL will understand it as such.

In your example, since March 10, 2017 is 42,804 days after Jan 1, 1900 and that
is why you get that value.

You can use either a VBA solution, or a formula to convert your entries.

One method of converting your entry is with the formula:

=DATEVALUE(TEXT(A1,"00\/00\/00"))

but there are many other methods.


--ron
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Total 1
Specific Date from a Range 3
Conditional Formatting - Dates 2
Weekend dates conditional format 3
Format Date 3
date system 1
time_report_date-wise_employee-wise 6
Formating Dates 4

Back
Top