+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting

  1. #1
    Forum Contributor
    Join Date
    02-13-2009
    Location
    Indiana
    MS-Off Ver
    Excel 2015
    Posts
    183

    Conditional Formatting

    Hello.

    I am trying to create a formula for conditional formating. In cell B2 i have (a,b,c,d). In array D11:D38 I have the data I want to format. I would like to have a formula that says this.

    If B2="a" look through D11:D38 and highlight red everything >85%
    if B2="b" look through D11:D38 and highlight red everything >75%

    any thoughts?
    Last edited by sinspawn56; 04-23-2010 at 04:49 PM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Conditional Formating Formula

    condition 1 =AND($B$2="a",D11>0.85)
    condition 2 =AND($B$2="b",D11>0.75)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Contributor
    Join Date
    02-13-2009
    Location
    Indiana
    MS-Off Ver
    Excel 2015
    Posts
    183

    Re: Conditional Formating Formula

    I am trying to apply the formula to D11:D38 not just D11.

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Conditional Formating Formula

    If the formatting is the same (i.e. red) then you can use a single condition. To apply to the whole range as required you should select that whole range first, i.e. D11:D38 then use the formula that applies to the first cell in the range, i.e.

    =D11>IF(B$2="a",0.85,IF(B$2="b",0.75,0))

    The formula will automatically adjust for the other cells in the range

  5. #5
    Forum Contributor
    Join Date
    02-13-2009
    Location
    Indiana
    MS-Off Ver
    Excel 2015
    Posts
    183

    Re: Conditional Formatting

    Works 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