Changing numbers to dates

Graham C1600

Board Regular
Joined
Feb 17, 2018
Messages
96
Office Version
  1. 365
Hi,

I'm currently using data from 1 excel sheet and then moving it to another sheet using the &" "& option. Something like detailed below :-

A
B
C
D
1
Start date
05/05/2018
End date
15/05/2018

<tbody>
</tbody>

I then use this information and move it to another sheet but put the text from all 4 cells into 1 cell by typing the following into the required cell on the new sheet:-
=A1&" "&B1&" "&C1&" "&D1

The only issue with doing this is that is provides something like the following back in the new cell (Start date 32456 End date 34512)]

So obviously when pulling the information across the date is changing into the numbers.

Is there a way of stopping this happening so the actual dates will be displayed instead of numbers ?

Thanks
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
So obviously when pulling the information across the date is changing into the numbers.
Its actually not changing anything. That is how Excel stores dates, as numbers (specifically, the number of days since 1/0/1900).
It is the date format that makes them appear that way. If you take any date, and change the format to "General", you will see it as Excel does.

So, if you are building a string, and want them displayed in a Date format, you can use the Text function to do that, i.e.
Code:
[COLOR=#333333]=A1 & " " & TEXT(B1,"dd/mm/yyyy") & " " & C1 & " " & TEXT(D1,"dd/mm/yyyy")

[/COLOR]
 
Last edited:
Upvote 0
You are welcome.
Glad to help!
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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