Thanks Thanks:  0
Likes Likes:  0
Results 1 to 5 of 5

Thread: Conditional Formatting - Again!

  1. #1
    Board Regular
    Join Date
    Mar 2002
    Location
    Manchester, UK
    Posts
    95
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    If I have a cell containing a formula A1+A2+A3 which is conditionally formatted to turn blue if the resulting value is greater than (B1*0.7), how do I further expand this formula to incorporate a statement such as 'If C1 = "Turnip" then turn the cell blue only if the resulting value is greater than (B1*0.7+25) ?

    I hope I have written this clearly enough to explain what I want to achieve. Oh, and this is not to be used in a turnip counting program if you were wondering. This is a purely hypothetical scenario!

  2. #2
    New Member
    Join Date
    Mar 2002
    Location
    London
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-03-15 02:10, Mr Nick wrote:
    If I have a cell containing a formula A1+A2+A3 which is conditionally formatted to turn blue if the resulting value is greater than (B1*0.7), how do I further expand this formula to incorporate a statement such as 'If C1 = "Turnip" then turn the cell blue only if the resulting value is greater than (B1*0.7+25) ?

    I hope I have written this clearly enough to explain what I want to achieve. Oh, and this is not to be used in a turnip counting program if you were wondering. This is a purely hypothetical scenario!
    The following seems to work:
    Cell Value Is:: greater than:: =(b1*0.7)+if(c1="turnip",25,0)

  3. #3
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    83,593
    Post Thanks / Like
    Mentioned
    31 Post(s)
    Tagged
    6 Thread(s)

    Default

    On 2002-03-15 02:10, Mr Nick wrote:
    If I have a cell containing a formula A1+A2+A3 which is conditionally formatted to turn blue if the resulting value is greater than (B1*0.7), how do I further expand this formula to incorporate a statement such as 'If C1 = "Turnip" then turn the cell blue only if the resulting value is greater than (B1*0.7+25) ?

    I hope I have written this clearly enough to explain what I want to achieve. Oh, and this is not to be used in a turnip counting program if you were wondering. This is a purely hypothetical scenario!
    =AND(E1>(B1*0.7+25),C1="Turnip")

    where I assume that E1 is the target cell for cond format.

    Aladin

  4. #4
    Guest

    Default

    Try this in the conditional format dialog assuming the cell you want to format is D1)

    Condition 1: Select "Formula Is" and type in the formula
    =AND($C$1="turnip";$D$1=$B$1*0.7)
    Condition 2: Select "Formula Is" and type in the formula
    =AND($C$1<>"turnip";$D$1=$B$1*0.7+25)

    Choose the same formatting for both conditions.

    Marc

  5. #5
    Board Regular
    Join Date
    Mar 2002
    Location
    Manchester, UK
    Posts
    95
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Thanks for the replies. With a crafty combination of all suggestions, the turnip counting world has been revolutionised!! Look out cabbages - here I come!

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •