Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
mattflow
 
Posts: n/a
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.misc
RagDyer
 
Posts: n/a
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default 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

  #4   Report Post  
Posted to microsoft.public.excel.misc
Sloth
 
Posts: n/a
Default 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


  #5   Report Post  
Posted to microsoft.public.excel.misc
mattflow
 
Posts: n/a
Default 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



  #6   Report Post  
Posted to microsoft.public.excel.misc
RagDyer
 
Posts: n/a
Default 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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Flexible Cell Reference Brandt Excel Discussion (Misc queries) 5 June 2nd 05 10:23 PM
how to create a variable column in cell reference Sampson Excel Worksheet Functions 3 February 21st 05 10:13 PM
How to get a cell reference of by searchig a text string? Najeeb Excel Discussion (Misc queries) 1 January 3rd 05 07:03 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"