Date Changes While Concatenating

arifaquib

New Member
Joined
Jan 26, 2022
Messages
7
Office Version
  1. 2016
Platform
  1. Windows
My format is changing after concatenating.

For some reason, 31/12/2021 is in "dd/mm/yyyy" and 02/01/2022 is in "mm/dd/yyyy"

=TEXT([@[Start date]], "dd/mm/yyyy")
1643915765305.png
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
First you need to see which month they falls by

Book1
AB
12/4/20222
Sheet1
Cell Formulas
RangeFormula
B1B1=MONTH(A1)
 
Upvote 0
Where did the dates column come from ?
My guess is that you got it from an external source and they are all in fact in the format dd/mm/yyyy and your Region / default format it set to mm/dd/yyyy.
Your format is accepting anything with a number in the month position < 13 and treating it as date (but with the month and day reversed) and > 13s are treated as text.

If it is a one off and you want the date in the text output to be formatted as mm/dd/yyyy then
select the data in column G
go data > text to columns
in the screen below select Date and the format in which the date came to you which I believe is dd/mm/yyyy.
Make the destination where the data is currently. (copy it back on to itself)

1643934636552.png
 
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,046
Members
449,063
Latest member
ak94

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