+ Reply to Thread
Results 1 to 8 of 8

Conditional formatting - multiple conditions

  1. #1
    Registered User
    Join Date
    02-17-2009
    Location
    england
    MS-Off Ver
    I am using Office 365 enterprise Version 2202 (Build 14931.20660)
    Posts
    57

    Conditional formatting - multiple conditions

    Hello all

    Can anyone tell me how to set up formula for conditional formatting to highlight rows where a value in any of the cells is negative (<0)?

    if not possible for all cells, I am expecting negative values in columns $N7, $U7, $AB7 , $AI7, $AP7, $AV7, $BD7 , $BK7, $BR7

    Range I7 - BS54


    Been trying for an hour with mixed results.


    Any help is greatly appreciated
    Last edited by radekrat; 02-22-2021 at 05:31 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Conditional formatting - multiple conditions

    Select I7:BS54
    Conditional Formatting> New Rule> Use Formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Format as desired
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,522

    Re: Conditional formatting - multiple conditions

    Try

    * Use formula ......... (Conditional Formatting)

    =$N7<0

    Applies to

    $n$7:$n$54

    Set fill to required colour

    REpeat for each column

  4. #4
    Registered User
    Join Date
    02-17-2009
    Location
    england
    MS-Off Ver
    I am using Office 365 enterprise Version 2202 (Build 14931.20660)
    Posts
    57

    Re: Conditional formatting - multiple conditions

    Thanks all,
    I have also found out that OR($N7<0,$U7<0,$AB7<0) worked? Or was I just lucky and it wouldn't be valid in every case?

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,522

    Re: Conditional formatting - multiple conditions

    How have you defined "Applies to" ?

    Using

    =$N$7:$N$54,$U$7:$U$54,$AB$7:$AB$54

    it highlights all columns (N,U,AB) whenever any of N,U,AB have a negative value:

    I initially used the OR condition but was not sure if the outcome above was acceptable.

  6. #6
    Registered User
    Join Date
    02-17-2009
    Location
    england
    MS-Off Ver
    I am using Office 365 enterprise Version 2202 (Build 14931.20660)
    Posts
    57

    Re: Conditional formatting - multiple conditions

    Can I ask for ideas on how to create formula for another conditional formatting please:

    currently in the attached test spreadsheet I have formula o highlight rows where sum of values in columns N, U, AB = 0 ======> =SUM($N7,$U7,$AB7)=0

    But what would work better for me and can't quite get it working would be if I can highlight rows where:


    sum of values in columns N, U, AB = 0
    sum of values in columns I, P, W >0


    This would show me exact spot where I run out of volume


    Many thanks for your help - This community is the best!!
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,522

    Re: Conditional formatting - multiple conditions

    Try

    =AND(SUM($N7,$U7,$AB7)=0,SUM($I7,$P7,$W7)>0)

    Applies to

    $i$7:$AB$54

  8. #8
    Registered User
    Join Date
    02-17-2009
    Location
    england
    MS-Off Ver
    I am using Office 365 enterprise Version 2202 (Build 14931.20660)
    Posts
    57

    Re: Conditional formatting - multiple conditions

    Quote Originally Posted by JohnTopley View Post
    Try

    =AND(SUM($N7,$U7,$AB7)=0,SUM($I7,$P7,$W7)>0)

    Applies to

    $i$7:$AB$54
    works Thank you

+ 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] Conditional Formatting With Multiple Conditions
    By DarthBrute in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-24-2019, 10:32 PM
  2. [SOLVED] Conditional formatting- multiple conditions
    By Irongate in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-22-2017, 04:49 PM
  3. [SOLVED] VBA Conditional Formatting - Multiple Conditions
    By razz0807 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 01-27-2016, 06:13 PM
  4. [SOLVED] conditional formatting -multiple conditions
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-31-2013, 05:51 PM
  5. Multiple Conditions for Conditional Formatting
    By bhardison1014 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-12-2013, 06:33 PM
  6. Conditional Formatting Multiple Conditions
    By Lisa James in forum Excel General
    Replies: 2
    Last Post: 04-12-2013, 06:02 PM
  7. Multiple Conditions for Conditional Formatting
    By horton in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-03-2008, 02:58 AM

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