+ Reply to Thread
Results 1 to 14 of 14

Conditional Formatting based on a value in a different cell

  1. #1
    Registered User
    Join Date
    03-12-2014
    Location
    Ventura, CA
    MS-Off Ver
    Excel 2007
    Posts
    31

    Conditional Formatting based on a value in a different cell

    I am working in a table where I would like the whole row to highlight based on the value in one of the cells. These rows of data will be updated regularly, so the formatting has to change with the data. Is this possible?

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Conditional Formatting based on a value in a different cell

    Hi,

    Yes just set the conditional format for the cell in question (using a relative reference) and then when it comes to applying the CF choose the whole of the range of rows and columns you want to change whenever the cell in the same column as the original cell changes for any particular row.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    03-12-2014
    Location
    Ventura, CA
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Conditional Formatting based on a value in a different cell

    Thank you, Richard. The problem is that the reference is actually text, not a number. The cell will have a Y or and N in it, and I need it to highlight the row only if there is an N in it. I can't figure out how to write the syntax for the formula to do that. Thoughts?

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Conditional Formatting based on a value in a different cell

    Assuming your range is A2:A10

    then use formula:

    =$A2:$A$10="N"

    and Apply to:

    =$A$2:$A$10
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Registered User
    Join Date
    03-12-2014
    Location
    Ventura, CA
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Conditional Formatting based on a value in a different cell

    Maybe I'm not understanding you completely. If I go under "Conditional Formatting", "Highlight Cell Rules", "Equal To", would the above syntax work? I can't seem to make that happen.

    Would I go under "New Formatting Rule", "Use a formula to determine which cells to format"? I think I'm just missing something fundamental. :/

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Conditional Formatting based on a value in a different cell

    You have to go CF, New Rule and choose Use a formula to determine which cells to format, enter formula there and apply desired format.

  7. #7
    Registered User
    Join Date
    03-12-2014
    Location
    Ventura, CA
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Conditional Formatting based on a value in a different cell

    That didn't work. I'm not sure why.

    I need the row to highlight, based on a value in column J. My table range is. A8:J35. The "N" value would be entered into column J. I can get the cell in J to highlight, based on the value (that's straight forward), but I need the whole row to highlight.

  8. #8
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Conditional Formatting based on a value in a different cell

    then you formula is:

    =$J8:$J$35="N"

    and Apply to:

    =$A$8:$J$35
    Last edited by AlKey; 04-10-2014 at 02:22 PM.

  9. #9
    Registered User
    Join Date
    03-12-2014
    Location
    Ventura, CA
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Conditional Formatting based on a value in a different cell

    That still didn't work. Here is a sample with the unneeded data removed.

    Thoughts?
    Attached Files Attached Files

  10. #10
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Conditional Formatting based on a value in a different cell

    Quote Originally Posted by govcam View Post
    That still didn't work. Here is a sample with the unneeded data removed.

    Thoughts?
    It didn't work because you only entered "N" and instead of formula. Please see attached file.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    03-12-2014
    Location
    Ventura, CA
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Conditional Formatting based on a value in a different cell

    Thank you so much! That solved it. I didn't realized that there was a different format under Manage Rules that allowed you to do that. Now I know.

  12. #12
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,730

    Re: Conditional Formatting based on a value in a different cell

    I think there is no difference between these 2 formulas.

    =$J8="N"

    =$J8:$J$35="N"
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  13. #13
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Conditional Formatting based on a value in a different cell

    You're welcome. Please don't forget to thank those who helped by clicking on Add Reputation *

  14. #14
    Registered User
    Join Date
    03-12-2014
    Location
    Ventura, CA
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Conditional Formatting based on a value in a different cell

    Thank you! That also works, and will continue to do so as data is added.

+ 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. [SOLVED] Conditional Formatting based on another cell
    By Blade Fisher in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-28-2013, 08:33 AM
  2. Conditional Formatting via VBA: Change formatting in range based on value of each cell
    By ralphjmedia in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2013, 10:37 AM
  3. Replies: 4
    Last Post: 01-06-2012, 05:07 PM
  4. Replies: 2
    Last Post: 10-24-2011, 12:41 PM
  5. Conditional Formatting based on value of last cell
    By Bret in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-08-2008, 12:44 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