+ Reply to Thread
Results 1 to 7 of 7

Conditional Formatting in SINGLE CELL - to print text when specific text is entered.

  1. #1
    Registered User
    Join Date
    03-23-2015
    Location
    Pinetown, South Africa
    MS-Off Ver
    2013
    Posts
    9

    Conditional Formatting in SINGLE CELL - to print text when specific text is entered.

    Help with Conditional formatting .........
    I wish to enter the letter "w" - or "s" - in a single cell and for this cell to return the text "WhatsApp" or "SMS", and without any reference to another cell.
    No highlighting - just black text on a white background.

    I have tried various formulas - including the "Text that contains ..." and "Text that commences with...." - without any success.

    Thanks.
    Patrick.

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Conditional Formatting in SINGLE CELL - to print text when specific text is entered.

    You'd need to check for cell value is equal to s and then set the number format to a custom format of:
    ;;;"SMS"

    and then set another format for w using:
    ;;;"WhatsApp"
    Rory

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,461

    Re: Conditional Formatting in SINGLE CELL - to print text when specific text is entered.

    Conditional Formatting does what it says on the tin ... formats the cell based on a condition or conditions. It cannot change the content of the cell.

    You might be able to do it with AutoCorrect but that could affect every entry of the characters w and s.

    I suspect VBA would be the way to go. A simple Worksheet Change Event handler monitoring the specific cell(s) would be required.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    03-23-2015
    Location
    Pinetown, South Africa
    MS-Off Ver
    2013
    Posts
    9

    Re: Conditional Formatting in SINGLE CELL - to print text when specific text is entered.

    Hi Trev,
    Thanks for your response.
    Not clued up as regards VBA .........
    Yes, I realise I have been trying to change the content of the cell - as you have said.

    Patrick.

  5. #5
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Conditional Formatting in SINGLE CELL - to print text when specific text is entered.

    Do you need the content changed (if so, why?), or is just the displayed text ok?

  6. #6
    Registered User
    Join Date
    03-23-2015
    Location
    Pinetown, South Africa
    MS-Off Ver
    2013
    Posts
    9

    Re: Conditional Formatting in SINGLE CELL - to print text when specific text is entered.

    Thanks Rory,
    So how would i check for the cell values equal to s and w ?
    Patrick.

  7. #7
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Conditional Formatting in SINGLE CELL - to print text when specific text is entered.

    In the CF rule. Choose 'Format only cells that contain' then select Cell Value, Equal To, and s (or w). Then in the Format section apply the relevant custom number format.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 04-10-2015, 12:12 PM
  2. [SOLVED] Conditional Formatting to change text in cell if other cell contains specific letter
    By RichTea88 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-06-2014, 06:47 AM
  3. Replies: 3
    Last Post: 11-04-2013, 12:47 AM
  4. Replies: 3
    Last Post: 08-02-2013, 12:43 PM
  5. Conditional Formatting for another cell containing specific text
    By dropanddrive03 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-27-2013, 03:01 AM
  6. Conditional Formatting on Specific Text within a Cell
    By leonfox1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-05-2012, 01:38 PM
  7. [SOLVED] Macros imitating conditional formatting based on specific text within cell
    By schaasyd in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-15-2012, 06:30 PM

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