+ Reply to Thread
Results 1 to 6 of 6

Sum Total Function with Specific Criteria

  1. #1
    Registered User
    Join Date
    02-09-2015
    Location
    London
    MS-Off Ver
    2013
    Posts
    92

    Sum Total Function with Specific Criteria

    Tricky one here (at least I think it is) so please bear with with me...

    I have a work sheet with three columns - 'ID' (Column A), 'Cost' (Column B), and 'Category' (Column C). The 'ID' just serves as the primary identifier for each entry, the cost is monetary (£), and the category options are 'Black', 'Red', 'Amber' and 'Green.'

    I would like a formula in a separate that selects all entries marked with a certain 'Category' (eg. Black) AND a 'Cost' (eg. >£100,000), and totals the 'Cost' values as an output.

    For example, if there were 4 entries under 'Black' each at £25,000 each, and 2 under 'Black' at £5,000 each, then a formula asking for all entries under 'Black' and >£20,000 would return '£100,000'.

    As ever, any help would be greatly appreciated.

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Sum Total Function with Specific Criteria

    =SUMPRODUCT((C2:C12="Black")*(B2:B12>100000)*(B2:B12))
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Sum Total Function with Specific Criteria

    Or this

    =SUMIFS(B2:B12,B2:B12,">20000",C2:C12,"Black")
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Registered User
    Join Date
    02-09-2015
    Location
    London
    MS-Off Ver
    2013
    Posts
    92

    Re: Sum Total Function with Specific Criteria

    Thank you!

    What should I do if I want the range to be above a certain value and below a certain value? For example, >100,000, <200,000 ?

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Sum Total Function with Specific Criteria

    With greater or lower

    =SUMIFS(B2:B12,B2:B12,"<20000",B2:B12,">100000",C2:C12,"Black")

  6. #6
    Registered User
    Join Date
    02-09-2015
    Location
    London
    MS-Off Ver
    2013
    Posts
    92

    Re: Sum Total Function with Specific Criteria

    That has worked beautifully, thank you both for taking the time to resolve this!

+ 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. Nested if function given specific criteria?
    By tonyridino in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-27-2015, 10:00 PM
  2. Need help with COUNTIF function - with specific criteria search
    By robbertl in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-20-2012, 12:19 PM
  3. choose RAND() function for specific criteria
    By biddum in forum Excel General
    Replies: 1
    Last Post: 11-24-2012, 11:00 PM
  4. sum total of specific criteria
    By masond3 in forum Excel General
    Replies: 2
    Last Post: 11-12-2011, 05:30 AM
  5. counting function with criteria + for specific week in the year
    By polacoloco in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-20-2010, 10:27 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