+ Reply to Thread
Results 1 to 10 of 10

Formatting Cell Color to Specific Text

  1. #1
    Registered User
    Join Date
    03-24-2009
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    5

    Formatting Cell Color to Specific Text

    I need to be able to assign colors to cells depending on what text is inputted.
    If a name start with letters between:
    A - Cald (I want the cell to be Yellow)
    Call - Eg (I want the cell to be Black)
    Ek - Hall (I want the cell to be Red)
    Etc.....

    Can someone please help?

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Formatting Cell Color to Specific Text

    Select the cell, then do Format > Conditional Formatting

    Condition 1, Formula is, =left(a1, 8) = "A - Cald" and format as yellow, then press Add,

    Condition 2, Formula is, =left(a1, 9) = "Call - Eg" and format as black, then press Add,

    Condition 3, Formula is, =left(a1, 9) = "Ek - Hall" and format as red.

    In each case, replace a1 with the address of the cell.

    To do more than three formats requires either Excel 2007 or VBA.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    03-24-2009
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Formatting Cell Color to Specific Text

    Thanks but I can't get this to work with Excel 2007. How do I plug in these formulas in 2007, it is so confusing. I miss my Excel 2003.


    ..Sorry, I though I selected Excel 2007 forum help.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Formatting Cell Color to Specific Text

    Home > Conditional Formatting > Manage Rules, New Rule, Use a formula ...

  5. #5
    Registered User
    Join Date
    03-24-2009
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Formatting Cell Color to Specific Text

    What I am using as a Rule type?

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Formatting Cell Color to Specific Text

    Home > Conditional Formatting > Manage Rules, New Rule, Use a formula ...

  7. #7
    Registered User
    Join Date
    03-24-2009
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Formatting Cell Color to Specific Text

    Yeah, that's what I was using. It's not working.

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Formatting Cell Color to Specific Text

    See attached.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    03-24-2009
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Formatting Cell Color to Specific Text

    I need it to work, for example:

    ....... Column A
    Row
    1..... Alexandra (This cell needs to be Yellow)
    2..... Cannon (This cell needs to be Yellow)
    3..... Claudia (This cell needs to be Black)
    4..... Eagor (This cell needs to be Black)
    5..... Elk (This cell needs to be Red)

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Formatting Cell Color to Specific Text



    If the formats are static by row, apply static formats. If you need more rules, add more rules.

+ 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