+ Reply to Thread
Results 1 to 8 of 8

Conditional Formatting and Multiple Conditions

  1. #1
    Forum Contributor
    Join Date
    03-07-2009
    Location
    Spain
    MS-Off Ver
    Excel 2003
    Posts
    128

    Conditional Formatting and Multiple Conditions

    The logic is as follows If I2 ="Text" or "Text 2" and L2=0 --> Set l2 Format to RED Fill

    My Formula
    =AND($I$2="Purchase",L2=0)


    If False = L1 is RED (should be L2)
    Does not have the two option for texts
    All blanks are format to red by default

  2. #2
    Valued Forum Contributor
    Join Date
    02-07-2013
    Location
    Philippines
    MS-Off Ver
    Excel Online; 365
    Posts
    633

    Re: Conditional Formatting and Multiple Conditions

    when you say L2=0 do you mean zero as in the number or empty?

    if empty then you should use: =AND($I2="Purchase",$L2="")
    If I've helped U pls click on d *Add Reputation

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,412

    Re: Conditional Formatting and Multiple Conditions

    And I think the formula that you are looking for should be:

    =AND(OR($I$2="Purchase",$I$2="Text 2"),L2=0)

    The CF needs to be applied when I2 is selected.

    Hope this helps.

    Pete

  4. #4
    Forum Contributor
    Join Date
    03-07-2009
    Location
    Spain
    MS-Off Ver
    Excel 2003
    Posts
    128

    Re: Conditional Formatting and Multiple Conditions

    Almost there. I just need to ada an OR to the final component l2=0 or l2= ""

    =AND(OR($I$2="Purchase",$I$2="Text 2"),OR(L2=0,L2=””)) - This doesnt seem to work.

    Is the Applies To = L:L ?

  5. #5
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,652

    Re: Conditional Formatting and Multiple Conditions

    =AND(OR($I$2="Purchase",$I$2="Text 2"),OR(L2=0,L2=""))
    =AND(OR($I$2="Purchase",$I$2="Text 2"),OR(L2=0,L2=””))

    See de difference
    The first works the second not
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  6. #6
    Valued Forum Contributor
    Join Date
    02-07-2013
    Location
    Philippines
    MS-Off Ver
    Excel Online; 365
    Posts
    633

    Re: Conditional Formatting and Multiple Conditions

    you can just use this:

    =AND(OR($I$2="Purchase",$I$2="Text 2"),L2=""))

  7. #7
    Forum Contributor
    Join Date
    03-07-2009
    Location
    Spain
    MS-Off Ver
    Excel 2003
    Posts
    128

    Re: Conditional Formatting and Multiple Conditions

    Thank you all. Closed

    I was close :D

  8. #8
    Valued Forum Contributor
    Join Date
    02-07-2013
    Location
    Philippines
    MS-Off Ver
    Excel Online; 365
    Posts
    633

    Re: Conditional Formatting and Multiple Conditions

    Glad it work..

    Please mark this thread as Solved and consider giving a rep to those who've helped

+ 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. Conditional formatting with multiple conditions
    By wburbage in forum Excel General
    Replies: 2
    Last Post: 06-24-2014, 02:10 PM
  2. Conditional Formatting with multiple conditions
    By L.LEE in forum Excel General
    Replies: 1
    Last Post: 06-23-2014, 12:27 AM
  3. [SOLVED] conditional formatting -multiple conditions
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-31-2013, 05:51 PM
  4. Multiple Conditions for Conditional Formatting
    By bhardison1014 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-12-2013, 06:33 PM
  5. Conditional Formatting using VBA for multiple conditions
    By stephboucher in forum Excel General
    Replies: 0
    Last Post: 01-18-2011, 10:13 AM
  6. Conditional Formatting - Multiple Conditions
    By criblo in forum Excel General
    Replies: 1
    Last Post: 12-16-2010, 06:40 PM
  7. Multiple Conditions for Conditional Formatting
    By mrlevcik in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-04-2008, 12:55 PM

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