+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : Applying conditional formatting to entire rows based on one column

  1. #1
    Forum Contributor
    Join Date
    02-14-2012
    Location
    Warrington
    MS-Off Ver
    Excel 365
    Posts
    376

    Lightbulb Applying conditional formatting to entire rows based on one column

    Conditional formating example.xlsx

    I have credit scores of customers in one column, but want the conditional formatting to apply to the entire row and not just the particular column with the score in.

    Anyone able to help please??

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Applying conditional formatting to entire rows based on one column

    Not sure that is possible with graded colour scaling... they are meant for in-cell comparisons...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Applying conditional formatting to entire rows based on one column

    You can do this by specifying a formula based upon the top row in the range of interest.


    e.g. using the formula =$A1=2 with the Applies to range of =$1:$1048576 will highlight any row in which the value 2 appears in column A.
    Martin

  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,926

    Re: Applying conditional formatting to entire rows based on one column

    Using the code shown below will apply the formatting to a range, but dont think it lets you color-scale like you want it. To get that kind of color scaling, you would need to put in a CF for each set of values you want

    /code
    =INDIRECT("d"&ROW())="value-you-want"
    /endcode
    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

  5. #5
    holin_168
    Guest

    Re: Applying conditional formatting to entire rows based on one column

    In your example work book, please go to conditional formatting then select--> New Rule -->Use a formula to determine which cell format --> make sure you type this formula (=$D2=19) in A2 cell. Then use Ms Excel brush format to every cell (column and row) then you will exactly get what you want. In case, value is within a range you can change =$D2=19 to and($d2>19,$d2<25)....
    Last edited by NBVC; 02-14-2012 at 12:00 PM. Reason: Phishing link removed

  6. #6
    Forum Contributor
    Join Date
    02-14-2012
    Location
    Warrington
    MS-Off Ver
    Excel 365
    Posts
    376

    Re: Applying conditional formatting to entire rows based on one column

    Thankyou that has sort of solved my problem.

    However it could be alot easier if I could select all the rows I wish this to apply to, then select the column with the score in and put if less then 25 go red, if less the 50 go orange e.t.c. Without doing the format painter as I have formats in the cells I wish to keep like currencies which differ

    Is this possible?

  7. #7
    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,926

    Re: Applying conditional formatting to entire rows based on one column

    See my post above. You could put that CF in a cell that doesnt have formatting in. Change the "D" to whatever column you need to reference, and change the row() to the row you are working in. You could use this with several new rules to get the ranges you want. You can then copy that CF dow to wherever you need.

+ 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