+ Reply to Thread
Results 1 to 11 of 11

If Formula - conditional formatting - three different formatting rules

  1. #1
    Registered User
    Join Date
    03-12-2012
    Location
    London
    MS-Off Ver
    Office 365 ProPlus 64 bit
    Posts
    35

    If Formula - conditional formatting - three different formatting rules

    Hi,

    I was looking for some help. If anyone is willing to point my in the right direction, I'd be incredibly grateful. I'm currently trying to use conditional formatting to colour cell in column E one of two different colours using the "Use a formula to determine which cells to format" option.

    Basically the rules I wish to apply are;


    If cell in column D = "Promotion" from the data validation drop down options, then DO NOT apply conditional formatting at all.

    However If cell in column D = "Nominal increase" from the data validation drop down options, THEN apply conditional formatting as per below;


    CONDITIONAL FORMATTING RULES
    IF cell in column C = "London" AND cell in column E < 5.01 THEN colour Green
    IF cell in column C = "London" AND cell in column E > 5.01 then colour Red

    OR

    If cell in column C <> "London" AND cell in coumn C < 3.01 THEN colour Green
    If cell in column C <> "London" AND cell in column C > 3.01 THEN colour Red



    I think it's just an IF formula with an "AND" & "OR" included, but I've never been very good at the syntax around these.

    Also I'm not sure how I can apply 2 conditional formatting formulas to one column & have both in action at the same time...

    A copy of my worksheet is attached, there are already some very simple formulas applied, the understanding would be that information would be selected from the drop down option in column D & then a figure input by the end user into column E only. All the other columns will be locked down so they are for information purposes only. The conditional formatting would be used to bring to the end user's attention whether the information they've input into column E is acceptable.


    Hope that makes sense, please let me know if I need to supply anything else.
    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: If Formula - conditional formatting - three different formatting rules

    Your conditions are not clear. For example for green color

    IF cell in column C = "London" AND cell in column E < 5.01 THEN colour Green

    If cell in column C <> "London" AND cell in coumn C < 3.01 THEN colour Green

    What's about values in E column that are between 3.01 & 5.01 ??
    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
    Registered User
    Join Date
    03-12-2012
    Location
    London
    MS-Off Ver
    Office 365 ProPlus 64 bit
    Posts
    35

    Re: If Formula - conditional formatting - three different formatting rules

    I'm sorry I wasn't clear, was I?


    Please see below revised rules, I messed that up slightly previously.

    CONDITIONAL FORMATTING RULES
    IF cell in column C = "London" AND cell in column E < 5.01 THEN colour Green
    IF cell in column C = "London" AND cell in column E > 5.01 then colour Red

    OR

    If cell in column C <> "London" AND cell in coumn E < 3.01 THEN colour Green
    If cell in column C <> "London" AND cell in column E > 3.01 THEN colour Red

    Does that make more sense?

  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: If Formula - conditional formatting - three different formatting rules

    Hello.

    It's better but not yet clear enough.

    IF cell in column C = "London" AND cell in column E < 5.01 THEN colour Green
    If cell in column C <> "London" AND cell in coumn E < 3.01 THEN colour Green

    What's about values in E column that are between 3.01 & 5.01 ??

  5. #5
    Registered User
    Join Date
    03-12-2012
    Location
    London
    MS-Off Ver
    Office 365 ProPlus 64 bit
    Posts
    35

    Re: If Formula - conditional formatting - three different formatting rules

    Sorry sorry!

    Ok, maybe I should use words.

    If value in E column is between 3.01 & 5.01 AND value in column C is london = colour green.

    If value in column E is between 3.01 & 5.01 AND value in column c is NOT london = colour red.

    Basically in real life terms, people in london have an allowance to go up to 5.01 & it still be "ok", i.e. colour green .
    People based outside of london can only go up to 3.01. If they go above this then that's "bad" & they get coloured red.

    Does that make more sense?

  6. #6
    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: If Formula - conditional formatting - three different formatting rules

    Now it's clear! Give me some minutes pls.

  7. #7
    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: If Formula - conditional formatting - three different formatting rules

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Pls note that in C2 i typed the word "London" that is not the same as in the other cell with London.. See in cell D13
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    03-12-2012
    Location
    London
    MS-Off Ver
    Office 365 ProPlus 64 bit
    Posts
    35

    Re: If Formula - conditional formatting - three different formatting rules

    Hi there!

    Thanks so much for getting back to me.

    I'm not sure this is quite working the way I hoped. I probably didn't explain myself properly again, sorry.

    So I would hope that every cell should be coloured red or green;

    Green if column C is london AND in column E is BELOW 5.01
    Red if column C is london AND in column E is ABOVE 5.01

    Green if column C is NOT London AND in column is ABOVE 3.01
    Red if Column C is NOT london AND in column E is above 3.01


    Would you be able to pull that together for me? Thank you so much for your help so far, I'm sorry this is taking a long time to explain!

  9. #9
    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: If Formula - conditional formatting - three different formatting rules

    If the conditions exist every cell will be highlighteed, but

    E4=2000
    E5=250
    E6=700
    E7=400
    E8=7000

    Noone of these has values between 3.01 and 5.01.

    Only E2 & E6 has these conditions so are with color..

    Am i missing something?

  10. #10
    Registered User
    Join Date
    03-12-2012
    Location
    London
    MS-Off Ver
    Office 365 ProPlus 64 bit
    Posts
    35

    Re: If Formula - conditional formatting - three different formatting rules

    Oh, no I think I might have confused the matter earlier...

    So;

    Red If C2 = London AND E2 is ABOVE 5.01
    Green if C2 = London AND E2 is BELOW 5.01

    That's one condition totally to itself.
    AND THEN

    Red if C2 <> London AND E2 is ABOVE 3.01
    Green if C2 <> London AND E2 is BELOW 3.01

    So there will always be either "London" or not "London" in column C & there will always be a number in E2.

    Does that make more sense?

  11. #11
    Registered User
    Join Date
    03-12-2012
    Location
    London
    MS-Off Ver
    Office 365 ProPlus 64 bit
    Posts
    35

    Re: If Formula - conditional formatting - three different formatting rules

    Yup, I think I'm confusing you here.

    So it's not simply when the numbers are between 3.01 & 5.01 that colours need to be applied. I'll try & explain my thinking below again;

    So Increase Type = column D
    Location = column C
    Increase % = column E


    If Increase Type = “Promotion”, do nothing

    OR

    (If Increase Type = “Nominal Increase”,

    THEN

    Red If Location = London AND Increase % is ABOVE 5.01
    Green if Location = London AND Increase % is BELOW 5.01

    OR

    Red if Location <> London AND Increase % is ABOVE 3.01
    Green if Location <> London AND Increase % is BELOW 3.01 )



    Am I at all helping here?...

  12. #12
    Registered User
    Join Date
    03-12-2012
    Location
    London
    MS-Off Ver
    Office 365 ProPlus 64 bit
    Posts
    35

    Re: If Formula - conditional formatting - three different formatting rules

    Yup, I think I'm confusing you here.

    So it's not simply when the numbers are between 3.01 & 5.01 that colours need to be applied. I'll try & explain my thinking below again;

    So Increase Type = column D
    Location = column C
    Increase % = column E


    If Increase Type = “Promotion”, do nothing

    OR

    (If Increase Type = “Nominal Increase”,

    THEN

    Red If Location = London AND Increase % is ABOVE 5.01
    Green if Location = London AND Increase % is BELOW 5.01

    OR

    Red if Location <> London AND Increase % is ABOVE 3.01
    Green if Location <> London AND Increase % is BELOW 3.01 )



    Am I at all helping here?...

  13. #13
    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: If Formula - conditional formatting - three different formatting rules

    Another try...

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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] 2 rules for conditional formatting
    By alfgrey in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 09-04-2013, 10:57 AM
  2. 3+ Conditional Formatting Rules for cell range based on Formula from other cells
    By osborsm9 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-06-2013, 08:48 PM
  3. [SOLVED] Conditional Formatting Rules Help
    By PCAg in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-11-2012, 05:33 PM
  4. Conditional Formatting with rules
    By howcroc in forum Excel General
    Replies: 6
    Last Post: 02-04-2011, 12:01 PM
  5. Conditional Formatting with more than 3 rules
    By vickyho1008 in forum Excel General
    Replies: 5
    Last Post: 07-24-2008, 10:06 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