Join text and 2 dates in A2 column in worksheet

S

shahzad4u_ksa

Hi,

Can any one help me to join the following:-


Z column AA column AB column AC column
------------- ---------------- ----------------
----------------
Period: 1-Jun-07 to 29-Jun-07


I want to join the above 4 columns into A2 column like:

Period: 1-Jun-07 to 29-Jun-07

I used the below formula, but the date is appearing 39234 in numbers
and how to join 4 columns with correct date.

=Z1&", "&AA1

Pls help me in this regard

Thanks in Advance.

Shahzad
KSA
 
T

Tom Ogilvy

=Text(Z1,"d-mmm-yy")&" to "&Text(AA1,"d-mmm-yy")

It is hard to tell what is in which column, but change Z1 to be the cell
with the first date and AA1 to be the cell with the second date.
 
D

Dave Peterson

=text(z1,"d-mmm-yy") & " to " & text(aa1,"d-mmm-yy") & keep going....

(or use the comma if you want)
 
D

Dave Peterson

ps.

If you really wanted "Period: " at the beginning:

="Period: " & text(z1,"d-mmm-yy) & ......
 
S

shahzad4u_ksa

=Text(Z1,"d-mmm-yy")&" to "&Text(AA1,"d-mmm-yy")

It is hard to tell what is in which column, but change Z1 to be the cell
with the first date and AA1 to be the cell with the second date.

--
Regards,
Tom Ogilvy














- Show quoted text -


Hi, Tom,

Thank you very much for the solution, it is working excellent.

Thanks for promp reply.

Shahzad
 
S

shahzad4u_ksa

=text(z1,"d-mmm-yy") & " to " & text(aa1,"d-mmm-yy") & keep going....

(or use the comma if you want)
















--

Dave Peterson- Hide quoted text -

- Show quoted text -

Hi, Dave,

Thanks for prompt reply, the above code is now working perfectly.

Tanks again.

Shahzad
 

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