Date Displaying as Numbers when Concatenated

purceld2

Well-known Member
Joined
Aug 18, 2005
Messages
586
Office Version
  1. 2013
Platform
  1. Windows
Hi

I have a issue I cannot seem to resolve row K9 is not recognising the date format like the others. I have checked and it is formatted exactly the same is all the other calls so I am baffled.

Any ideas

Perry Hill Territory Spreadsheet.xlsm
ACDEFK
6107/09/201918/09/2019107/09/201918/09/2019
7107/09/201918/09/2019107/09/201918/09/2019
8128/06/201928/07/2019128/06/201928/07/2019
9103/04/201918/04/201914355818/04/2019
10119/01/201925/02/2019119/01/201925/02/2019
11101/11/201803/01/2019101/11/201803/01/2019
12121/07/201828/07/2018121/07/201828/07/2018
13110/02/201824/02/2018110/02/201824/02/2018
14129/07/201715/10/2017129/07/201715/10/2017
15126/03/201707/05/2017126/03/201707/05/2017
16108/03/201726/03/2017108/03/201726/03/2017
17107/11/201626/12/2016107/11/201626/12/2016
Assignment
Cell Formulas
RangeFormula
K6:K17K6=A6&D6&E6&F6
Cells with Data Validation
CellAllowCriteria
E6:F17Datebetween 01/01/2016 and 31/12/2022
A6:A17Whole numberbetween 1 and 35
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
E9 is the only valid date in the table, the rest are all text strings that look like dates. For some reason, it is the only one that is actually working correctly, it is the others that are all wrong.
This is what I get when I copy your sheet to excel, which is what I would have expected.
Book1
AEFK
6107/09/201918/09/201914371543726
7107/09/201918/09/201914371543726
8128/06/201928/07/201914364443674
9103/04/201918/04/201914355843573
10119/01/201925/02/201914348443521
11101/11/201803/01/201914340543468
12121/07/201828/07/201814330243309
13110/02/201824/02/201814314143155
14129/07/201715/10/201714294543023
15126/03/201707/05/201714282042862
16108/03/201726/03/201714280242820
17107/11/201626/12/201614268142730
Sheet6
Cell Formulas
RangeFormula
K6:K17K6=A6&D6&E6&F6
 
Upvote 0
E9 is the only valid date in the table, the rest are all text strings that look like dates. For some reason, it is the only one that is actually working correctly, it is the others that are all wrong.
This is what I get when I copy your sheet to excel, which is what I would have expected.
Book1
AEFK
6107/09/201918/09/201914371543726
7107/09/201918/09/201914371543726
8128/06/201928/07/201914364443674
9103/04/201918/04/201914355843573
10119/01/201925/02/201914348443521
11101/11/201803/01/201914340543468
12121/07/201828/07/201814330243309
13110/02/201824/02/201814314143155
14129/07/201715/10/201714294543023
15126/03/201707/05/201714282042862
16108/03/201726/03/201714280242820
17107/11/201626/12/201614268142730
Sheet6
Cell Formulas
RangeFormula
K6:K17K6=A6&D6&E6&F6
Thanks

jasonb75

for you prompt reply, still a bit lost, what do you suggest to resolve the issue please.
 
Upvote 0
How are the cells formatted?

You appear to have achieved something that should be impossible, we need to figure out what you've done and how before we can do anything to resolve it.
At best, I would guess that the dates were entered into cells formatted as text before the data validation rule was set up, while E9 was entered into a cell formatted as date with or without validation.

Try formatting all of the date cells in the table as 'General'. Valid dates will change to 5 digit numbers, invalid dates will remain unchanged.

Next, click on an empty cell and copy (Ctrl c), then select all of the date cells in the table and use pastespecial - add (Ctrl Alt v, d, enter).

This should now show all of the dates as 5 digit numbers. If this has happened then we can proceed to resolve the issue, if not further investigation will be needed.
 
Upvote 0
How are the cells formatted?

You appear to have achieved something that should be impossible, we need to figure out what you've done and how before we can do anything to resolve it.
At best, I would guess that the dates were entered into cells formatted as text before the data validation rule was set up, while E9 was entered into a cell formatted as date with or without validation.

Try formatting all of the date cells in the table as 'General'. Valid dates will change to 5 digit numbers, invalid dates will remain unchanged.

Next, click on an empty cell and copy (Ctrl c), then select all of the date cells in the table and use pastespecial - add (Ctrl Alt v, d, enter).

This should now show all of the dates as 5 digit numbers. If this has happened then we can proceed to resolve the issue, if not further investigation will be needed.
The only thing that comes to mind that may of caused this, is that I have been experimenting with Pivot tables, and I think converting from range to table and back. I think it's best to scrap this sheet and start again and see if I have the same issue.

Really appreciate all you help
 
Upvote 0
The only thing that comes to mind that may of caused this, is that I have been experimenting with Pivot tables, and I think converting from range to table and back. I think it's best to scrap this sheet and start again and see if I have the same issue.

Really appreciate all you help
Sorry I will try what you suggested first
 
Upvote 0
I think it's best to scrap this sheet and start again and see if I have the same issue.
I can't see the pivot tables being the cause of it, but anything is possible. If you do start again, it should come out the same as the mini sheet that I posted earlier, i.e. the concatenated column contains numbers instead of dates. Once you get to this point it's a simple change to the formula to get it how you want it.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,179
Members
453,021
Latest member
Justyna P

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