+ Reply to Thread
Results 1 to 16 of 16

easily apply conditional format formula to all rows

  1. #1
    Registered User
    Join Date
    05-26-2009
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    99

    easily apply conditional format formula to all rows

    i have the following formula applied to a conditional format, on row 12:

    cell value > less than =($K12:Y$111)*(1-0.05)

    i want to use this on all rows, however i have 300+ rows.

    Is there a way to apply this to all rows between column K and Y, i don't like the thought of creating 300+ conditional formats!

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,987

    Re: easily apply conditional format formula to all rows

    What is that formula supposed to be doing?
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: easily apply conditional format formula to all rows

    Apply the format then copy & paste
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    05-26-2009
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    99

    Re: easily apply conditional format formula to all rows

    the format is supposed to be looking at a series of values and highlighting ones that are 5% lower than highest number in the row (which is in another column using =MAX(L12:Y12))

    i've applied it to one row, and want to use it on all lines.

    @royUK i don't understand, copy and paste where?

  5. #5
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: easily apply conditional format formula to all rows

    i've applied it to one row, and want to use it on all lines.

    @royUK i don't understand, copy and paste where?
    Copy the source row, then select the target rows for which you want to apply the same CF, and do a either a Paste (if the cells are empty) or Paste Special, Formats (if there are data/formula in the cells).

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,704

    Re: easily apply conditional format formula to all rows

    Is the max formula in column K?

    Try selecting the whole range you want to format first, e.g. L12:Y400 [you can select that range easily by typing L12:Y400 into the box above A1 and presssing ENTER]

    Now apply conditional formatting by using "formula is" and this formula

    =(L12<$K12*0.95)*(L12<>"")

    format as required > OK

  7. #7
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,987

    Re: easily apply conditional format formula to all rows

    Your formula makes no sense to me as it's comparing a cell value to an array of values which won't work.
    As a general rule, you would just select all the cells you want to apply the formatting to and then apply it to all of them at once, ensuring your references are either relative or absolute as required.

  8. #8
    Registered User
    Join Date
    05-26-2009
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    99

    Re: easily apply conditional format formula to all rows

    Quote Originally Posted by daddylonglegs View Post
    Is the max formula in column K?

    Try selecting the whole range you want to format first, e.g. L12:Y400 [you can select that range easily by typing L12:Y400 into the box above A1 and presssing ENTER]

    Now apply conditional formatting by using "formula is" and this formula

    =(L12<$K12*0.95)*(L12<>"")

    format as required > OK
    maybe i havent followed this correctly, but its highlighting random cells, including this highest value (which is obviously not 5% lower than the highest!)

  9. #9
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,704

    Re: easily apply conditional format formula to all rows

    Try checking the conditional formatting formula in L12. If you applied it correctly it should be as follows:

    =(L12<$K12*0.95)*(L12<>"")

    here's an example.....values are randomly generated, press F9 to generate again....
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    05-26-2009
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    99

    Re: easily apply conditional format formula to all rows

    Still not getting the right results, i've attached a sample of my workbook, maybe you can see the problem.

    i've highlighted some of the rows that are returning incorrect results.
    Attached Files Attached Files

  11. #11
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,987

    Re: easily apply conditional format formula to all rows

    Your row references are wrong. If you select the data and then choose Format-Conditional Formatting, you will see that the formatting for row 8 refers to row 12 in the formula. Adjust that and you should be fine.

  12. #12
    Registered User
    Join Date
    05-26-2009
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    99

    Re: easily apply conditional format formula to all rows

    yeah that's got it, all because i had a formula for row 12 and applied it from row 8..... *Sigh*

    thanks for all the help

  13. #13
    Registered User
    Join Date
    05-26-2009
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    99

    Re: easily apply conditional format formula to all rows

    sorry to re-hash an old post.

    This conditional format works great, however i'm now wondering if there's a way to only apply it to the latest column of values.

    therefore, we only monitor if the most recent months value is 5% lower than the all time high?

    i can't get my head round a way to identify where the newest columns figures are

    EDIT: Thinking out loud - might i have to change this to a macro and incoroporate the date? only using formula when the month is now?
    Last edited by mania112; 09-03-2009 at 09:32 AM.

  14. #14
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,704

    Re: easily apply conditional format formula to all rows

    Using your posted workbook I selected the range L8:R88 (obviously you can extend the range rightwards if you wish) then used this slightly modified formula

    =(L8<$K8*0.95)*(L8<>"")*(M8="")

  15. #15
    Registered User
    Join Date
    05-26-2009
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    99

    Re: easily apply conditional format formula to all rows

    thanks, i guess i was over thinking it possibly.

    I will put this into action in the morning and let you know how it goes.


    thanks again

  16. #16
    Registered User
    Join Date
    05-26-2009
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    99

    Re: easily apply conditional format formula to all rows

    yeah, that works great.

    thanks

+ 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