+ Reply to Thread
Results 1 to 7 of 7

Highlight Row Based on Data in a single cell

  1. #1
    Registered User
    Join Date
    04-17-2019
    Location
    Alberta, Canada
    MS-Off Ver
    Office 365
    Posts
    11

    Exclamation Highlight Row Based on Data in a single cell

    I am trying to highlight a row based on the data entered into a single cell within that same row. I have attached a worksheet to show what i mean.
    Basically I need to categorize my data. So for the rows with a cell that has MOHAWK entered, that entire row should automatically highlight to yellow.
    And for rows with SHAW entered into a single cell, that entire row should be highlighted red automatically.
    Can someone help me do this? I imagine it is fairly simple but i just don't know how to do it.
    Attached Files Attached Files

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Highlight Row Based on Data in a single cell

    Format area according to formula. This is the first one:
    Please Login or Register  to view this content.
    By making it an objective reference to column A and a subjective reference for row 21, what happens is that every cell getting formatted, checks against the cell in the same row in column A.

    Then create a second rule with a different color for SHAW.
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  3. #3
    Registered User
    Join Date
    03-26-2014
    Location
    Londres (I like when its said like that!)
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Highlight Row Based on Data in a single cell

    could you not incorporate my moveme27 function in that cell, but change it along these lines : stackoverflow.com/questions/30539109/user-defined-function-to-change-color-of-a-cell .... and my thread in stack , in one of links , has a udf / code that does that exactly or near what your requesting.

    (they change the color of cells per conditions you say [ONLY. - not anything else in your cell ranges - as you are requesting] of a range/cell from another cell.

    my thread in stack : stackoverflow.com/questions/56452449/what-other-methods-do-i-use-to-allow-for-text-string-movements-and-additions

    check the 1st, 2nd or 3rd here when I say these helped me (there are many more such udfs to change cell colors only - you can put your conditions in the codes or indeed the udf's themselves. might be quicker ).

  4. #4
    Registered User
    Join Date
    04-17-2019
    Location
    Alberta, Canada
    MS-Off Ver
    Office 365
    Posts
    11

    Re: Highlight Row Based on Data in a single cell

    this isnt working. I dont know where i am to input the formula you gave me, when i enter it into my cell it says FALSE so i am not really sure what to do, not only that, where does that formula specify the color?

  5. #5
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Highlight Row Based on Data in a single cell

    Spyros: huh?


    Quote Originally Posted by Laur_E View Post
    this isnt working. I dont know where i am to input the formula you gave me, when i enter it into my cell it says FALSE so i am not really sure what to do, not only that, where does that formula specify the color?
    Select area A21:D27

    Then:
    Home Ribbon => Styles Panel => Conditional Formatting Dropdown => "New Rule..." Button in the dropdown.

    In the "New Formatting Rule" dialog box, select the bottom option from the pick-list, "Use a formula to determine which cells to format".

    Then stick the formula into the text box for "Format values where this formula is true:"

    Then click the "Format:" Button to launch the "Formal Cells" dialogue box to choose what formatting the CF applies exactly; in your case it would just be setting the "Fill" to yellow or red for either formula.


    ...I was assuming you were already conversant with Conditional Formatting, but looking back and re-reading first post, maybe that's not the case?
    Last edited by ben_hensel; 06-06-2019 at 02:35 PM.

  6. #6
    Registered User
    Join Date
    03-26-2014
    Location
    Londres (I like when its said like that!)
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Highlight Row Based on Data in a single cell

    I was referring to this thread: stackoverflow.com/questions/23433096/using-a-udf-in-excel-to-update-the-worksheet

  7. #7
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Highlight Row Based on Data in a single cell

    let me clarify, it seems that "huh" wasn't clear enough.

    Here we go:
    Spyros, your response seems mostly off-target and useless. Can you maybe clarify how exactly your suggestion would work, assuming it works?

+ 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. Highlight/Retrieve data in a cell based on entries in a different cell
    By SaraFet in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-06-2018, 12:12 PM
  2. Replies: 16
    Last Post: 08-20-2018, 10:59 AM
  3. Deleting a row of data based on a single cell deletion, and shifting remaining cell up.
    By Dewydecimalpatriot in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-21-2014, 04:05 PM
  4. VBA code to find the row number based on data via input box and the highlight a cell
    By Aditya Sabat in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-21-2014, 05:47 PM
  5. Replies: 1
    Last Post: 01-20-2014, 03:52 AM
  6. [SOLVED] Extract single cell data based on a single cell entry
    By farmerdoode in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-05-2013, 11:11 PM
  7. highlight row based on single cell
    By just_tonight in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-11-2011, 10:52 AM

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