+ Reply to Thread
Results 1 to 4 of 4

Thread: Formula to include cell references with text and dates

  1. #1
    Forum Contributor
    Join Date
    07-15-2011
    Location
    Whitby, Canada
    MS-Off Ver
    Excel 2010
    Posts
    121

    Formula to include cell references with text and dates

    Hi all,

    I am trying to get this formula to work and have tried it a variety of ways and I just can't figure out what I am doing wrong....The end result should be:

    Pay Period 1
    January 1, 2012 to January 10, 2012

    I have this:
    =C2& " "TEXT(D2,mmmm/dd/yyyy)& " "(E2) " "TEXT(D11,mmmm/dd/yyyy)

    Workbook attached for cell reference. Also, I do not know how to indicate [ENTER], as in to go to the next line in a formula. Any help would be greatly appreciated - thanks
    Attached Files Attached Files
    Last edited by Greed; 10-03-2011 at 03:19 PM. Reason: Solved

  2. #2
    Valued Forum Contributor
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    1,957

    Re: Formula to include cell references with text and dates

    How's this ...

    =C2 & CHAR(10) & TEXT(D2,"mmmm d, yyyy") & " to " & TEXT(D3-1,"mmmm d, yyyy")

  3. #3
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Formula to include cell references with text and dates

    Try:

    =C2&CHAR(10)&TEXT(D2,"mmmm d, yyyy")&" "&E2&" "&TEXT(D11,"mmmm d, yyyy")

    Format to Wrap alignment.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  4. #4
    Forum Contributor
    Join Date
    07-15-2011
    Location
    Whitby, Canada
    MS-Off Ver
    Excel 2010
    Posts
    121

    Re: Formula to include cell references with text and dates

    Good Stuff - this one does the trick - thanks guys
    =C2 & CHAR(10) & TEXT(D2,"mmmm d, yyyy") & " to " & TEXT(D11,"mmmm d, yyyy")

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0