+ Reply to Thread
Results 1 to 8 of 8

How do I count the number of items that match a particular value

  1. #1
    Registered User
    Join Date
    11-27-2017
    Location
    PAKISTAN
    MS-Off Ver
    2007
    Posts
    4

    How do I count the number of items that match a particular value

    Need Help

    Data

    Alpha 1
    Beta 1
    Gama 1
    Beta 2
    Gama 3
    Gama 4
    Alpha 1
    Beta 2
    Gama 1
    Beta 4
    Gama 4
    Beta 3
    Beta 4
    Gama 1
    Gama 2
    Alpha 1
    Beta 1



    Report

    1 2 3 4
    Alpha 3 ? ? ?
    Beta ? ? ? ?
    Gama ? ? ? ?


    Formullae required How "3" Comes In Alpha 1

    123.jpg
    Last edited by Richard Buttrey; 11-27-2017 at 06:28 AM. Reason: change of title was requested by Mod

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Sumif Function

    removed as per rules

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How do I count the number of items that match a particular value

    Hi,

    You could use a COUNTIFS function

    e.g. assuming data is in A1:B17 and your table of results is in C1:G4

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    but personally I'd avoid a function altogether and use a Pivot table which for something like this is far more elegeant, efficient and flexible.

    Incidentally please note we gerenarlly prefer you to upload a workbook rather than pictures.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Valued Forum Contributor
    Join Date
    04-27-2015
    Location
    Abu Dhabi, U.A.E
    MS-Off Ver
    Office 365 | 2016
    Posts
    696

    Re: How do I count the number of items that match a particular value

    Assume that your table is in the range A1:B21 and you need counts in B24 to F26- use the formula COUNTIFS($A$1:$A$21,$A24,$B$1:$B$21,B$23) and copy and paste across horizontally and vertically.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-24-2017
    Location
    Hyderabad
    MS-Off Ver
    2013
    Posts
    5

    Re: How do I count the number of items that match a particular value

    I agree with Richard. you would want to avoid the formula to count instead use the pivot

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: How do I count the number of items that match a particular value

    Pivot tables aren't for everyone: I hate them with a passion.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How do I count the number of items that match a particular value

    Quote Originally Posted by AliGW View Post
    Pivot tables aren't for everyone: I hate them with a passion.
    If you don't like PT you can do that with PowerQuery but not with Ex2007

  8. #8
    Registered User
    Join Date
    11-24-2017
    Location
    Hyderabad
    MS-Off Ver
    2013
    Posts
    5

    Re: How do I count the number of items that match a particular value

    what i would to ease the formula is use the CONCATENATE(A1,B1) in C1 which gives me unique value in Column C.

    Then i would count the unique one's

    to count Alpha1 = COUNTIF(C1:C21,$C$1)

    if you do not want to pick the criteria from C, we can list the total entries like Alpha1,Alpha2,Alpha3 etc., in different column to avoid any confusions.

    Raghav

+ 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] How to nest a left function within a sumif function?
    By LisaK in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-09-2017, 09:21 AM
  2. Replies: 2
    Last Post: 06-21-2017, 06:32 PM
  3. Replies: 4
    Last Post: 10-08-2013, 05:10 PM
  4. Sumif function using indirect function and data from different sheet
    By pronky007 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-26-2013, 12:40 PM
  5. How do I use the TODAY function with the SUMIF function?
    By Lisa B. in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-30-2005, 04:05 PM
  6. [SOLVED] SUMIF Function Inside SUMPRODUCT Function
    By Abdul Waheed in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 09-19-2005, 12:05 PM
  7. Replies: 2
    Last Post: 01-11-2005, 07:06 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