Combining cell reference with text

M

mattflow

I know how to use the & symbol to combine cell references with text, but
i am having trouble getting this to work when the 2 cells i am
referencing are dates.

For instance, lets say cell A1 is 11/15/05, and cell A2 is 3/21/06 and
i would like cell A3 to say November - 05 to March - 06. I have tried

=A1&" to "&A2

But i keep getting a #value error, any ideas?
 
R

RagDyer

Try this:

=TEXT(A1,"mmmm - yy")&" To "&TEXT(A2,"mmmm - yy")

--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================
 
R

Ron Coderre

Keep in mind...DATES are not TEXT. You need to convert:
For:
A1: 11/15/2005
B1: 3/21/2006

C1: =TEXT(A1,"mmmm - dd")&" to "&TEXT(B1,"mmmm - dd")
Returns November - 15 to March - 21


Does that help?
Ro
 
S

Sloth

=TEXT(A1,"mmmm - yy")&" to "&TEXT(A2,"mmmm - yy")
to get a result like this...
November - 05 to March - 06

I don't know why you would get the #value error with your formula. I get
something like this...
38671 to 38797
 
R

RagDyer

Thanks for the feed-back, but ... just so you realize ...
you asked for:
" - yy"
But you seem to have accepted:
" - dd".
 
Top