+ Reply to Thread
Results 1 to 4 of 4

Only count number based on secondary condition

  1. #1
    Registered User
    Join Date
    01-11-2023
    Location
    Texas, USA
    MS-Off Ver
    Excel for Mac 16.68
    Posts
    3

    Only count number based on secondary condition

    Product Name Stage Cost
    Product A First 100
    Product B First 200
    Product C First 300
    Product D First 400
    Product A Exit 0
    Product B Exit 0
    Product C Second 400
    Product D Second 500

    I need a formula to help me find the sum of the cost of products (column C) that have an exit stage (column B) and ignore products that have reached a second stage.

    In this example, I'd only be counting the first stage for Product A and Product B since those both have reached exit stages.

    Can't figure it out on my own. Thank you in advance!

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

    Re: Only count number based on secondary condition

    Try this:

    =SUMIFS(C:C,B:B,"Exit")

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    01-11-2023
    Location
    Texas, USA
    MS-Off Ver
    Excel for Mac 16.68
    Posts
    3

    Re: Only count number based on secondary condition

    Hi Pete,

    Thank you for your response. Unfortunately, that only sums the Exit stage (0) and not the cost of the first stage that I need (300).

  4. #4
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Only count number based on secondary condition

    =sumproduct(sumif(a2:a9,filter(a2:a9,b2:b9=b6),c2:c9))

+ 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] Count number of types - but refine count based on first 8 digits of a number
    By lacke81c in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-23-2018, 02:03 PM
  2. How to count the number of cells before a condition is met?
    By svb08 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-28-2016, 07:46 PM
  3. count the number in if condition is met
    By chriskhan90 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-30-2015, 06:35 AM
  4. Replies: 2
    Last Post: 05-20-2015, 08:26 AM
  5. [SOLVED] How to count a condition based on having another condition?
    By Robster in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-12-2014, 04:17 PM
  6. [SOLVED] Count number of name by condition of other column
    By him0331 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-12-2014, 09:50 AM
  7. [SOLVED] count the number of times a string occurs in a range based on a condition
    By sshishirkumar in forum Excel General
    Replies: 6
    Last Post: 05-29-2012, 04:00 AM

Tags for this Thread

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