+ Reply to Thread
Results 1 to 6 of 6

Text added to formula?

  1. #1
    Forum Contributor
    Join Date
    06-29-2005
    Location
    TN
    MS-Off Ver
    Microsoft 365
    Posts
    327

    Text added to formula?

    Hi All, I thought I saw a way of adding some text to a formula.
    I have a spreadsheet with 2 worksheets, sheet 1 is page 1, sheet 2 is page 2.
    On sheet 1, cell D3 I type in the date. On sheet 2, I use this - =IF('Front Page'!D3="","",'Front Page'!D3) - which works real well.

    The result is "Tuesday, May 6, 2008". I'd like to add "- A-Shift" to the right of the date, so that it displays Tuesday, May 6, 2008 - A-Shift.

    Is this possible?

    Thanx...Lt

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525
    Ltat42a,

    Try this:

    =IF('Front Page'!D3="","",'Front Page'!D3 & " - A-Shift")

    HTH

    Robert

  3. #3
    Forum Contributor
    Join Date
    06-29-2005
    Location
    TN
    MS-Off Ver
    Microsoft 365
    Posts
    327
    Thanx for the reply, I'm getting this result now - 39574-A-Shift. I have the cell fornatted for "Tuesday, May 6, 2008".

    I'm using Excel 2003.

    Lt

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525
    Ah, becuase there's text mixed in, the date part of the string has to be formatted manually, i.e

    =IF('Front Page'!D3="","",TEXT('Front Page'!D3,"dddd, mmm d, yyyy")&" - A-Shift")

    HTH

    Robert

  5. #5
    Forum Contributor
    Join Date
    06-29-2005
    Location
    TN
    MS-Off Ver
    Microsoft 365
    Posts
    327
    Yeah, that worked good, Thanx again for the reply.

    LT

  6. #6
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525
    Thanks for the feedback and you're welcome :-)

+ 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