+ Reply to Thread
Results 1 to 4 of 4

Highlight row a certain color based on a character from a cell

  1. #1
    Registered User
    Join Date
    03-12-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    36

    Highlight row a certain color based on a character from a cell

    INVENTORY-TRACKER.xlsx

    Hello Excel world,

    I have a attached an inventory spreadsheet that I use at work. The only active column that gets data entered into it, is column E "Qty (Pcs)". I enter quantities of inventory in this column.

    In column B is the part numbers for product. The letters at the end of the part numbers are associated with certain colors that you can see in the small chart to the right of the report. H=Yellow, M=Blue, S=Green, V=Orange and P=Purple.

    What I am trying to achieve is when I type a value in the Qty (Pcs) row. I would love for the entire row that contains data to highlight in the respective color based on what letter is at the end of the part number in column B.

    Example - I type 100 in E2 and the entire row of data turns Orange because the V at the end of 13001 is associated with Orange.

    Thanks for any help you can give.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Highlight row a certain color based on a character from a cell

    try this...

    1. highlight the range you want to apply the conditional formatting to (A2:H162)
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =AND($E2>0,RIGHT($B2,1)="C") format fill purple

    Repeat 3&4 for the others, changing the "C"
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    03-12-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: Highlight row a certain color based on a character from a cell

    Awesome! Thank you so much. I guess I am still very much a rookie after seeing such a simple formula.

    Thanks again!!!

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Highlight row a certain color based on a character from a cell

    Happy to help

+ 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