+ Reply to Thread
Results 1 to 4 of 4

Add text to cell if other cell has contents

  1. #1
    Registered User
    Join Date
    05-17-2013
    Location
    South Carolina
    MS-Off Ver
    Excel 2010
    Posts
    16

    Add text to cell if other cell has contents

    Hello!

    I am trying to add a "label" to my columns.

    I need a formula or macro that: If there is anything, text or numbers, in cell B2, add the label "CS" to cell B1.

    This is as close as I've come so far, but it adds "CS" even when there isn't anything in cell B2.

    Please Login or Register  to view this content.
    Does anyone know what I need to fix so it only adds the label if there is something in cell B2?

    Thanks!

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Add text to cell if other cell has contents

    Try:
    =If(B2="","","CS")

  3. #3
    Registered User
    Join Date
    05-20-2013
    Location
    Boston
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Add text to cell if other cell has contents

    Try:
    =IF(ISBLANK(B2),"","CS")

  4. #4
    Registered User
    Join Date
    05-17-2013
    Location
    South Carolina
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Add text to cell if other cell has contents

    Thank you, works perfectly!

+ 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.6.0 RC 1