+ Reply to Thread
Results 1 to 7 of 7

Count occurrences for IDs and matching criteria

  1. #1
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Count occurrences for IDs and matching criteria

    Hi guys,

    I have 2 tabs and an urgent questiom

    On sheet 1 tab, i want to count an ID i.e 780 which if it is on my first tab ('Main'), in column D AND it has a corresponding value in column H I want this to be reflected in sheet1 tab

    For example, 780 exists on my first tab ('Main'), in column D, cell D7 and has a value in column H: reviewer_does_not_have_product. I want this to be counted on sheet1 where it should say in cell G19 '1') - it counts the amount of times from 'main' tab that 780 had been mentioned in column D and had a final decision (column H) which needs to be counted

    Hope this makes sense.

    thank you!
    Attached Files Attached Files
    Thanks,

    R.



  2. #2
    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,780

    Re: Count occurrences for IDs and matching criteria

    Don't tell us that it is URGENT, please. To you it may be, but to us it isn’t. If it’s urgent, you should be calling on a consultant, not a volunteer who is giving their free time.

    I will have a look.
    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.

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Count occurrences for IDs and matching criteria

    Please try at E2
    =COUNTIFS(Main!$H:$H,$A2,Main!$D:$D,E$1)
    Attached Files Attached Files

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

    Re: Count occurrences for IDs and matching criteria

    In E2 copied across and down:

    =COUNTIFS(Main!$H:$H,Sheet1!$A2,Main!$D:$D,Sheet1!E$1)

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,033

    Re: Count occurrences for IDs and matching criteria

    E2, copied across and dnown.

    =COUNTIFS(Main!$H:$H,$A2,Main!D:D,E$1)
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: Count occurrences for IDs and matching criteria

    thank you all!

  7. #7
    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,780

    Re: Count occurrences for IDs and matching criteria

    You're welcome.

+ 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 Occurrences using multiple criteria
    By Rbooth in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-25-2014, 09:55 PM
  2. Count occurrences, from last 10 which meet criteria
    By mikka23 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-22-2013, 09:32 PM
  3. Count occurrences of text with various criteria
    By ludgirardi in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 12-20-2012, 05:31 AM
  4. Count occurrences of text with various criteria
    By ludgirardi in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 12-18-2012, 07:50 PM
  5. Count of occurrences until a criteria met
    By dazlan in forum Excel General
    Replies: 0
    Last Post: 02-12-2011, 09:27 AM
  6. Count occurrences based on criteria
    By Justinmih in forum Excel General
    Replies: 2
    Last Post: 01-05-2011, 09:07 AM
  7. Count unique occurrences with criteria
    By Alaina Readman in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-01-2007, 04:41 PM
  8. trying to COUNT occurrences when certain criteria is met
    By Allan from Melbourne in forum Excel General
    Replies: 4
    Last Post: 08-02-2006, 06:05 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