+ Reply to Thread
Results 1 to 6 of 6

Counting a data based on criteria (2 or more)

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-20-2022
    Location
    Indonesia
    MS-Off Ver
    Excel 2016
    Posts
    118

    Talking Counting a data based on criteria (2 or more)

    Dear Expert,

    I have a problem to count a data based on two or more criteria,
    is there any solution for this.

    I already attach the example and describe what I expected there.

    Thanks..

  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. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,186

    Re: Counting a data based on criteria (2 or more)

    Administrative Note:

    Is your forum profile up-to-date and showing ONLY the oldest Excel PRODUCT that you need this to work for?

    Members will tailor the solutions they offer to the Office PRODUCT (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your product is for Mac, please also state this.

    The four most recent Excel products are Excel 2019, Excel 2021, Excel 2024 and MS365 - if you are using MS365, please give this name along with the version number in your profile (e.g. MS365 Version 2306). This is in the About Excel section further down the Account page.

    Thanks.
    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 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. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,186

    Re: Counting a data based on criteria (2 or more)

    Try variations on this theme:

    =SUMPRODUCT((LEFT($A$2:$A$32,2)=F2)*($B$2:$B$32<0.5))
    =SUMPRODUCT((LEFT($A$2:$A$32,2)=F2)*($B$2:$B$32>=0.5))

  4. #4
    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
    30,917

    Re: Counting a data based on criteria (2 or more)

    Formula: copy to clipboard
    =sumproduct((left($a$2:$a$32,2)=f$2)*($b$2:$c$32<0.5)*(right($b$1:$c$1,6)=$e4))
    Last edited by JohnTopley; 11-14-2024 at 03:39 AM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,659

    Re: Counting a data based on criteria (2 or more)

    Single formula in F4 then copy down and accross:

    =SUMPRODUCT((LEFT($A$2:$A$32,2)=LOOKUP(2,1/($F$2:F$2<>""),$F$2:F$2))*(RIGHT($B$1:$C$1,LEN($E4))=$E4)*
    (($B$2:$C$32<0.5)*(F$2<>"")+($B$2:$C$32>0.5)*(F$2="")))
    Quang PT

  6. #6
    Forum Contributor
    Join Date
    02-20-2022
    Location
    Indonesia
    MS-Off Ver
    Excel 2016
    Posts
    118

    Re: Counting a data based on criteria (2 or more)

    I am still using Apps Excel 2016 for my PC, event tho my company provide me with Micrososft Excel 365 via my outlook. but I'm not used to it yet, because my daily work contain macro to run and i still don't understand using macro on excel 365.

    thank you for the answers, It's really helpfull!

+ 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. VBA counting based on criteria.
    By Folshot in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-18-2018, 01:13 PM
  2. [SOLVED] Filter Data based upon multiple criteria and counting the data
    By Acidking in forum Excel General
    Replies: 5
    Last Post: 06-13-2013, 09:42 PM
  3. [SOLVED] Counting data acros columns based on criteria
    By ola7mat in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-13-2012, 10:37 AM
  4. Counting data based on 2 different criteria and one dynamic cell
    By reynastus in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 08-05-2010, 06:27 PM
  5. Counting based on 2 criteria
    By reynastus in forum Excel General
    Replies: 1
    Last Post: 08-05-2010, 03:54 AM
  6. Counting data sets based on multiple criteria
    By hjb0802 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-29-2010, 10:47 AM
  7. Counting data based on multiplte criteria
    By thom411 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 04-09-2007, 09:49 PM

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