Calendar dates are represented in a lot of different short forms.

zoharb

Board Regular
Joined
Nov 24, 2011
Messages
79
Office Version
  1. 2021
  2. 2013
I have faced a real problem in this-has inserted data+time stamp suing Ctrl+: and ctrl+Shift+" . Now if keeps the space , it get recognized as date and NOW(), and DATEDIFF like date functions work but else it is considered as TEXT and nothing works.
Do you have some thought on this so that I could add date+timetamp coming from UK and USA in same sheet and formulas(DATE) work correctly

eDateDiscriptionPo#File CountOrder Placed ByOrder TypeStitchesAmountStatusCompany Name
NEW01/10/2025 06:46AE9F3EF8 SUMMIT AIR CONDITIONINGMandyartwork5.95Signarama HindmarshNZD
54101/10/2025 06:46Jovonna-3xredraws3xredrawsNeenaartworkGBP 3.20FASTSIGNS 872 of HammersmithUK
31701/10/2025 08:17Four Little BirdsJeff SawellARTWORK5.95Speedy Signs TakapunaAUS
35001/10/2025 10:33ALLstyleKarien Greyvensteinartwork5.95Sign-A-Rama JoondalupAUS
8301/10/2025 10:47CTSLEOMA-PXFLeomedigitizing604012.02art.chermside@fullypromoted.com.auEmbroidMe of ChermsideUSA

  • In some countries, 12/10/20 (DD/MM/YY) stands for October 12, 2020.
  • In other countries, the national standard is YYYY-MM-DD so October 12, 2020 becomes 2020-10-12.
  • In the United States, (MM/DD/YY) is the accepted format so October 12, 2020 is going to be 10/12/20.
Now, think about what would happen if you were working global company and didn’t check date formats. Well, your data integrity would probably be questionable. Any analysis of the data would be inaccurate. Imagine ordering extra inventory for December when it was actually needed in October!

A good analysis depends on the integrity of the data, and data integrity usually depends on using a common format. So it is important to double-check how dates are formatted to make sure what you think is December 10, 2020 isn’t really October 12, 2020, and vice versa.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Are you able to break the fields out into a date field and a time field ?
If you do that then you can select the Date format that is prefixed with "*". This will adapt the format to the user's Region Setting for the date format.
 
Upvote 0
Respected Sir Alex,
Okay. FOr that I have to rearrange the sheet and write all the formulas related to that again . Its fine as it will handle all the future entries correctly
My system date is in mm/dd/yy(american date format) . we mostly fetch date+time stamp directly from email of sender.
Is there anyway that date mentioned in dd/mm/yy or dd-mm-yyyy get fetcted as mm/dd/yy(eg TEXT function
like
=DATE(RIGHT(B5,2)+2000,MID(B5,4,2),LEFT(B5,2))
OR
=DATE(RIGHT(TRIM(A1),2)+2000,MID(TRIM(A1),4,2),LEFT(TRIM(A1),2))--trim extra spaces

AND SAME THINGS HAPPENED WHERE TIME IS MENTION IN 12 HRS FORMAT AS FORMULAS NEED 24 HRS FORMAT

I had tries this solutions but the employees at data entry level do this mistakes and that creates problem at analysis level.
Can we make such that just at time of extraction , correct data is inserted in database
 
Upvote 0
we mostly fetch date+time stamp directly from email of sender.
You might not need to split date and time. Try using this number format for your date column and test it out on someone with a different Region Date Time setting.
VBA Code:
Columns("B").NumberFormat = "m/d/yyyy h:mm"

Using that setting if they copy the date and time from their email it should handle it correctly.

Checking whether historical data has been correctly interpreted is problematic.
The issue is as you identified in the original post how do you tell whether 12/10/2020 was meant to be 12 Oct or 10 Dec. The actual conversion once identified is not too difficult.
It would be easier if they submit a spreadsheet with only their data in it and for a whole month at a time. You could then check if dates with days > 12 are appearing as text and then make the assumption that all their dates have dd and mm reversed. Having said that if they submit one month at a time you would already know what the month should be. If they are all inputting into a shared spreadsheet it would be very difficult to work out.
 
Upvote 0

Forum statistics

Threads
1,225,741
Messages
6,186,763
Members
453,370
Latest member
juliewar

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