ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Combining cell reference with text (https://www.excelbanter.com/excel-discussion-misc-queries/58807-combining-cell-reference-text.html)

mattflow

Combining cell reference with text
 

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?


--
mattflow
------------------------------------------------------------------------
mattflow's Profile: http://www.excelforum.com/member.php...o&userid=25129
View this thread: http://www.excelforum.com/showthread...hreadid=490836


RagDyer

Combining cell reference with text
 
Try this:

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

--
HTH,

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


"mattflow" wrote in
message ...

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?


--
mattflow
------------------------------------------------------------------------
mattflow's Profile:

http://www.excelforum.com/member.php...o&userid=25129
View this thread: http://www.excelforum.com/showthread...hreadid=490836



Ron Coderre

Combining cell reference with text
 

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?
Ron


--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php...o&userid=21419
View this thread: http://www.excelforum.com/showthread...hreadid=490836


Sloth

Combining cell reference with text
 
=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

"mattflow" wrote:


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?


--
mattflow
------------------------------------------------------------------------
mattflow's Profile: http://www.excelforum.com/member.php...o&userid=25129
View this thread: http://www.excelforum.com/showthread...hreadid=490836



mattflow

Combining cell reference with text
 

=TEXT(A1,"mmmm - dd")&" to "&TEXT(A2,"mmmm - dd")

That did it, thanks guys!


--
mattflow
------------------------------------------------------------------------
mattflow's Profile: http://www.excelforum.com/member.php...o&userid=25129
View this thread: http://www.excelforum.com/showthread...hreadid=490836


RagDyer

Combining cell reference with text
 
Thanks for the feed-back, but ... just so you realize ...
you asked for:
" - yy"
But you seem to have accepted:
" - dd".
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"mattflow" wrote in
message ...

=TEXT(A1,"mmmm - dd")&" to "&TEXT(A2,"mmmm - dd")

That did it, thanks guys!


--
mattflow
------------------------------------------------------------------------
mattflow's Profile:

http://www.excelforum.com/member.php...o&userid=25129
View this thread: http://www.excelforum.com/showthread...hreadid=490836




All times are GMT +1. The time now is 08:44 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com