+ Reply to Thread
Results 1 to 6 of 6

How to highlight the ENTIRE row subject to a specific cell?

  1. #1
    Forum Contributor
    Join Date
    05-10-2011
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    145

    How to highlight the ENTIRE row subject to a specific cell?

    Hello everyone,
    Can someone explain to me how to highlight the ENTIRE row subject to a specific cell?
    Please see the excel file attached, as you can see, column D gets a specific color based on its value...
    I would like the entire row to be highlight WITH THE SAME COLOR as in column D, for example - highlight entire row 2 with red, row 3 with orange and so on...

    Thanks :-)
    Attached Files Attached Files

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to highlight the ENTIRE row subject to a specific cell?

    Hi

    You have to highlight all the rows, or thr range that you need and then in Conditional format rules, put the formulae.

    1)$D2>90

    2)=AND($D2>30;$D2<90)

    3)AND($D2>1;$D2<30

    Is this, works for you?
    Attached Files Attached Files
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Contributor
    Join Date
    05-10-2011
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    145

    Re: How to highlight the ENTIRE row subject to a specific cell?

    Thanks a lot Fotis1991
    I need a macro based solution. Is it possible?

    Quote Originally Posted by Fotis1991 View Post
    Hi

    You have to highlight all the rows, or thr range that you need and then in Conditional format rules, put the formulae.

    1)$D2>90

    2)=AND($D2>30;$D2<90)

    3)AND($D2>1;$D2<30

    Is this, works for you?

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to highlight the ENTIRE row subject to a specific cell?

    You are welcome.

    As you need VBA(I can not understand why), i am not able to help you on this.

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: How to highlight the ENTIRE row subject to a specific cell?

    Actually you already have the rules set in your conditional formatting. You just have to change the applies to section to show columns A to D. Currently, it shows $D$2:$D$8. Just change it to $A$2:$D$8. Why do you want to do it via a macro?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  6. #6
    Forum Contributor
    Join Date
    05-10-2011
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    145

    Re: How to highlight the ENTIRE row subject to a specific cell?

    thanks a lot for this

    Quote Originally Posted by arlu1201 View Post
    Actually you already have the rules set in your conditional formatting. You just have to change the applies to section to show columns A to D. Currently, it shows $D$2:$D$8. Just change it to $A$2:$D$8. Why do you want to do it via a macro?

+ 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