Concatinate name and date

D

Don

I have a name in cell A1 that I want to choose the first three charactors and
a date in A2 that I want the format MMDDYY when I concatinate them together.

A1 = Carlyle High
A2 = 07/08/2008

A3 "=Left(A2,3)&A2
which gives me "Car39637"
but I want "CAR07082008"

I know the date is some julian date when formated as general and I remember
this being asked before but I can not find.

Any help? Thanks
 
P

Peo Sjoblom

Change the A2 part to

=Left(A2,3)&TEXT(A2,"mmddyyyy")

--


Regards,


Peo Sjoblom
 
N

Niek Otten

And

=UPPER(LEFT(A1,3))&TEXT(A2,"mmddyyyy")

returns CAR07022008

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


| Try this:
|
| =LEFT(A1,3)&TEXT(A2,"mmddyyyy")
|
| This returns: Car07022008
|
|
| HTH
| Steve
|
| | >I have a name in cell A1 that I want to choose the first three charactors
| >and
| > a date in A2 that I want the format MMDDYY when I concatinate them
| > together.
| >
| > A1 = Carlyle High
| > A2 = 07/08/2008
| >
| > A3 "=Left(A2,3)&A2
| > which gives me "Car39637"
| > but I want "CAR07082008"
| >
| > I know the date is some julian date when formated as general and I
| > remember
| > this being asked before but I can not find.
| >
| > Any help? Thanks
|
|
 

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

Similar Threads

date range 11
Combine day text and date problems 6
Name of the Day 2
Excel 2000 and date math 3
Subtracting Date/Time 4
lookup max min 3
consecutive date numbering by rows of 4 5
Date and Time 4

Top