Cell Format Issues

bwesenberg

New Member
Joined
Sep 7, 2004
Messages
31
I get unexpected results when date formatting a worksheet cell in a MS Excel spreadsheet - in other words it looks like a calculation is trying to take place such that entering 1220 in the cell returns a date of 5/4/1903 and entering 12202006 0r 122006 returns a negative date displayed as ########. I have not experienced something like that before – and I use MS Excel way too much!

The cells are formatted as dates.

Is there a way I can enter the dates with out the slashes?
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
57,664
Office Version
  1. 365
Platform
  1. Windows
Dates in Excel are actually stored as numbers, specifically the number of days since 1/1/1900. So 1220 converts to May 4, 1903.

You need to enter dates with slashes to get it to work the way you want. Otherwise it thinks you are entering the date as the day value I mentioned above, and converts it to whatever format you have chosen.

If you want to enter the days without slashes, some VBA might be required to convert them for you.
 

Watch MrExcel Video

Forum statistics

Threads
1,133,460
Messages
5,658,899
Members
418,475
Latest member
ExcelBeginner233

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
Top