+ Reply to Thread
Results 1 to 6 of 6

Combining cell reference with text

  1. #1
    Registered User
    Join Date
    07-11-2005
    Posts
    49

    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?

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    Keep in mind...DATES are not TEXT. You need to convert:
    For:
    A1: 11/15/2005
    A2: 3/21/2006

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


    Does that help?
    Ron
    Last edited by Ron Coderre; 12-05-2005 at 03:42 PM.

  3. #3
    Sloth
    Guest

    RE: 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
    >
    >


  4. #4
    RagDyer
    Guest

    Re: 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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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. #5
    Registered User
    Join Date
    07-11-2005
    Posts
    49
    =TEXT(A1,"mmmm - dd")&" to "&TEXT(A2,"mmmm - dd")

    That did it, thanks guys!

  6. #6
    RagDyer
    Guest

    Re: 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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > =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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1