How do I join 3 separate columns of dates

H

H8Workn

I want to join 3 separate date fields into one cell. Problem is it converts
the date to a serial number. How can I keep the date as a date and not as a
seriel number.

Example: 50: 16-Nov, 110: Sep-17, 180: 9-Jul

Formula: =$C$1&": "&C2&", "&$D$1&": "&D2&", "&$E$1&": "&E2
Result: 50: 39768, 110: 39708, 180: 39638
 
E

Elkar

You can use the TEXT function:

=$C$1&": "&TEXT(C2,"d-mmm")&", "&$D$1&": "&TEXT(D2,"d-mmm")&", "&$E$1&":
"&TEXT(E2,"d-mmm")

HTH
Elkar
 
G

Gord Dibben

=$C$1&": "&TEXT(C2,"mm dd yyyy") etc.

The "mm dd yyyy" is whatever choice you want for display.


Gord Dibben MS Excel MVP
 
R

Ron Rosenfeld

I want to join 3 separate date fields into one cell. Problem is it converts
the date to a serial number. How can I keep the date as a date and not as a
seriel number.

Example: 50: 16-Nov, 110: Sep-17, 180: 9-Jul

Formula: =$C$1&": "&C2&", "&$D$1&": "&D2&", "&$E$1&": "&E2
Result: 50: 39768, 110: 39708, 180: 39638

Use the TEXT worksheet function to properly format your output

Something like (not tested):

=c1&":"&text(c2, "d-mmm") & d1 .....
--ron
 
H

H8Workn

That worked perfectly...thx for the help!

Ron

Elkar said:
You can use the TEXT function:

=$C$1&": "&TEXT(C2,"d-mmm")&", "&$D$1&": "&TEXT(D2,"d-mmm")&", "&$E$1&":
"&TEXT(E2,"d-mmm")

HTH
Elkar
 
H

H8Workn

I had someone respond with =$C$1&": "&TEXT(C2,"d-mmm")..which gave me what I
was looking for ...thx
 
H

H8Workn

Got the answer...thx.

Ron Rosenfeld said:
Use the TEXT worksheet function to properly format your output

Something like (not tested):

=c1&":"&text(c2, "d-mmm") & d1 .....
--ron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top