+ Reply to Thread
Results 1 to 7 of 7

Conditional Formatting Formula - if(and(sumif.....

  1. #1
    Registered User
    Join Date
    06-18-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    18

    Conditional Formatting Formula - if(and(sumif.....

    I'm trying to use the formula option in conditional formatting to determine if the value falls between two different values. I'm using IF(AND(SUMIF(RANGE,CRITERIA,SUM RANGE)>Value A,SUMIF(RANGE,CRITERIA,SUM RANGE)<=Value B)

    If this is "True", format new color

    Attached is example data set
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Conditional Formatting Formula - if(and(sumif.....

    Hi mmaya, try formula below for condition 1-50 (magenta) and remember change the CF range to B14:B16 instead of just B14
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    ps: try do the similar for the other two colors



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  3. #3
    Registered User
    Join Date
    06-18-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Conditional Formatting Formula - if(and(sumif.....

    Thanks! That worked on the example file I sent but I cant get to work on my real file. It's attached here.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Conditional Formatting Formula - if(and(sumif.....

    Hi mmaya8, your ranges were different and you'll need to modify the formula accordingly.
    Try this CF rules for 2:8 (light purple):
    Formula: copy to clipboard
    Please Login or Register  to view this content.




    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Conditional Formatting Formula - if(and(sumif.....

    You will need 4 different rules, 1 for each range. You can use a reference for each range value, or just hard code them like this....

    =AND(SUMIF(A:A,E26,B:B)>=2,SUMIF(A:A,E26,B:B)<=8)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Registered User
    Join Date
    06-18-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Conditional Formatting Formula - if(and(sumif.....

    Alvin - thank you so much. It works. Thank you

  7. #7
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Conditional Formatting Formula - if(and(sumif.....

    Thank you for the feedback, you're welcome



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

+ 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] sumif with conditional formatting
    By msmathad in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-17-2013, 02:16 PM
  2. [SOLVED] Countif or Sumif based on Conditional Formatting Color
    By Kune in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 6
    Last Post: 10-07-2012, 08:47 AM
  3. copy the conditional sum (SUMIF) formula
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 07:05 AM
  4. [SOLVED] copy the conditional sum (SUMIF) formula
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  5. copy the conditional sum (SUMIF) formula
    By Megs in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 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