+ Reply to Thread
Results 1 to 5 of 5

A1 = SUM + "text" + SUM

  1. #1
    Forum Contributor
    Join Date
    08-22-2012
    Location
    Newcastle, England
    MS-Off Ver
    Excel 2003
    Posts
    129

    A1 = SUM + "text" + SUM

    For example I want A1 to be a range of dates.

    I want it to be the value of C1 + 3 (So 3 days after C1) then I want a spaced dash to represent that it's a range of dates " - " and finally I want a second date which is C1 + 5 (So 5 days after C1)

    This should read "19/04/2013 - 21/04/2013"

    Is this possible?

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: A1 = SUM + "text" + SUM

    Yes:

    =TEXT(C1+3,"dd/mm/yyyy") & " - " & TEXT(C1+5,"dd/mm/yyyy")

  3. #3
    Registered User
    Join Date
    12-16-2012
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010 & 2007
    Posts
    66

    Re: A1 = SUM + "text" + SUM

    I believe the following function should work:
    =concatenate(C1+3," - ",C1+5)

    Concatenate allows you to combine values from multiple cells into a single cell.

  4. #4
    Forum Contributor
    Join Date
    08-22-2012
    Location
    Newcastle, England
    MS-Off Ver
    Excel 2003
    Posts
    129

    Re: A1 = SUM + "text" + SUM

    Hi,

    Andrew. Works perfect, thanks.

    JK, sadly this doe snot work for dates but I see where you're coming from and I'm sure this will come in handy for other things in future.

    Thanks both. Thread solved.

  5. #5
    Registered User
    Join Date
    12-16-2012
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010 & 2007
    Posts
    66

    Re: A1 = SUM + "text" + SUM

    Thomas,

    My apologies. It works, but with a slight modification. Andrew's might be simpler, but here is the corrected solution using CONCATENATE:

    =CONCATENATE(TEXT(C1+3,"MM/DD/YYYY")," - ",TEXT(C1+5,"MM/DD/YYYY"))

    I had to use the TEXT function to return the date value in the format you wanted.

    Hope this helps (if not in this, in future functions)!

+ 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