Date not acting as a date

bobgrand

Active Member
Joined
Apr 14, 2008
Messages
254
Office Version
  1. 365
Platform
  1. Windows
Hello all,

I receive a spreadsheet from an outside source and the date column is not actually formated as a date. It looks like a date but does not act as a date. The format of this column is General and the date is shown as 12/31/99. All the raw data sits in Sheet 1 and Sheet 2 extracts most of those columns data from sheet 1. The format for this date in sheet 2 is DATE MM/DD/YY but for some reason it's not seeing the 99 as 2099.

Is there something I can add to the formula so it acts as a real date.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
If the date was entered as a date as 12/31/99, it will assume 12/31/1999, not 12/31/2099.

If you change the format of the cell to mm/dd/yyyy, what does it show?
If it does not show a 4 digit year, then it is entered as Text, and not as a Date.
 
Upvote 0
What happens if you toggle the sheet to display the contents does it show the dates as numbers within the cells?
 
Upvote 0
Hm, just tried out something and with entering "12/31/99" into a cell formatted as "General" I get "12/31/1999".
The earliest possible year is 1900, so maybe Excel formats "99" as "1999".
Dates actually being text, that mostly happens when pasting or importing data while actually typing in a date should work, but that does't solve your problem.

What you could do is copying and re-pasting all data with one extra step.
1. Just copy all cells with data and paste them into a text editor (preferably Notepad++ which is free)
2. Then again copy everything and go back to Excel and use the "Text Import Wizard"
1736451071392.png

This should "convert" all your data to actual Dates.

If you need further assistance, just let me know.
 
Upvote 0
Joe4 - After changing the format to mm/dd/yyyy it did nothing. it remained 12/31/99.

Trevor G - "toggle the sheet to display the contents" << I never heard this phrase before can you elaborate?

PeteWrite - The Notepad++ was another step I was thinking about but trying not to do any extra steps. I hate moving around raw data from one place to another I don't want it to get compromised in any way. But if it comes down to it I may just take this path.

MARK858 - Thank you, I was unaware of this rule.

Thanks for the input but I did figure out a formula to help the issue.

Have a great day
 
Upvote 0
MARK858 - Thank you, I was unaware of this rule.
You're welcome (btw I suspect Trevor just meant format the cells as General, if they are real dates they would change to a number [today would be 45666], if the cell contained text looking like a date it would still look like the date).

Happy you have found a workaround
 
Upvote 0
As Mark has indicated. There is a keyboard option to switch from what you see on the sheet. One method in Excel to use the toggle switch, use the keyboard combination of the CTRL key plus the Accent key which is the keyboard symbol just below the Escape key which shows 3 symbols one of which is the Accent key `. So CTRL + ` together will change the view of any date cell into its number and use it again it will switch it back to the normal view. So if when toggle open it just remains as a date it will indicate the cell content is text rather than a number.
 
Upvote 0
@Trevor G you should point out that the Ctrl + Accent only gives the date serial if the date is typed in the cell, if the date is via a formula it will toggle between the formula (rather than the date serial) and the date.
 
Upvote 0

Forum statistics

Threads
1,225,738
Messages
6,186,728
Members
453,368
Latest member
positivemind

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