+ Reply to Thread
Results 1 to 4 of 4

Using COUNT and IF (multiple criteria) to calculate

  1. #1
    Registered User
    Join Date
    05-01-2018
    Location
    Detroit, MI
    MS-Off Ver
    2010
    Posts
    1

    Question Using COUNT and IF (multiple criteria) to calculate

    Hello,

    I'm straggling to put COUNT of the row which has value (ignoring zero or blank cells) and IF (two or more criteria) together.

    Example. I try to count the column C ignoring zero cells based on the criteria the column A as "Apple", the following formulas works.

    =SUM(IF(IF(C1:C10>0,A1:A10)="Apple",1,0))

    However how can I add one more criteria which in the column B which indicate the rank of the product "A" to "C"
    As result, "Apple" A rank 1, "Apple" B rank 2, "Apple" C rank 0

    1 A B C
    2 Apple A 3,000
    3 Apple B 800
    4 Orange A 0
    5 Apple C 0
    6 Orange B 2,000
    7 Apple B 600

    Appreciate your help!!!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,015

    Re: Using COUNT and IF (multiple criteria) to calculate

    Have you tried COUNTIFS?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Using COUNT and IF (multiple criteria) to calculate

    I don't understand what results you are expecting. It will help to see a small representative sample of your data along with the desired results (which you can enter manually).

    To upload an Excel workbook, follow these steps:
    1) Click on "Go Advanced"
    2) Click on "Manage Attachments"
    3) Click on "Choose File"
    4) Choose your file and click on "Open"
    5) Click on "Upload"
    6) Click on "Close this window"

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Using COUNT and IF (multiple criteria) to calculate

    Ooh, I think that I get it. Try this:

    =COUNTIFS(A:A,"Apple",B:B,"A",C:C,"<>0")

    You can adjust "Apple" and "A" accordingly.

+ 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. Formula to calculate a consolidated count based on various criteria
    By The_Snook in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-24-2017, 08:42 AM
  2. Calculate Sum with multiple criteria Pt 2
    By morerockin in forum Excel General
    Replies: 3
    Last Post: 02-03-2015, 07:15 AM
  3. [SOLVED] Calculate sum with multiple criteria
    By morerockin in forum Excel General
    Replies: 26
    Last Post: 02-03-2015, 07:14 AM
  4. Count cells if any criteria are met, not multiple criteria
    By jesstaylor in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-03-2014, 12:50 PM
  5. Replies: 7
    Last Post: 11-08-2014, 04:05 PM
  6. Count statement wtih multiple criteria only showing results for one criteria
    By uhlabomber in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-17-2013, 02:47 PM
  7. Calculate average for multiple ranges for multiple criteria
    By cesareit in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-05-2013, 01:33 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