+ Reply to Thread
Results 1 to 9 of 9

Counting of items with two conditions in two areas

  1. #1
    Registered User
    Join Date
    04-30-2019
    Location
    Maastricht, Netherlands
    MS-Off Ver
    Office 365
    Posts
    5

    Counting of items with two conditions in two areas

    Hello,

    I want to find the maximum amount of the same number for the same ID in a dataset of many different IDs.

    I will attach an Excel File that encompasses my question.

    Thank you!

    Best,
    Daniel
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    09-23-2010
    Location
    Cape Town, South Africa
    MS-Off Ver
    2007
    Posts
    14

    Re: Counting of items with two conditions in two areas

    Hi Dane,

    You can enter the following into cell D2.

    =MAX(IF(A:A=A2,B:B))

    please note that you need to submit this formula by hitting CNTRL+SHIFT+ENTER

    You can then drag the formula down.

    If this helps please hit the Star at the bottom

    regards,
    Murtadau

  3. #3
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: Counting of items with two conditions in two areas

    can you enter expected result for some of the entries?
    What do you mean by Max of same SITEID for Player 1? You have this repeated three times. Are you expecting three different results?
    1. Click on the * Add Reputation if you think this helped you
    2. Mark your thread as SOLVED when question is resolved

    Modytrane

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Counting of items with two conditions in two areas

    Try this formula in C2 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-30-2019
    Location
    Maastricht, Netherlands
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Counting of items with two conditions in two areas

    No I repeated it 3 times because the 3 first lines are for player 1. It should be the same for Player 1 then.

  6. #6
    Registered User
    Join Date
    04-30-2019
    Location
    Maastricht, Netherlands
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Counting of items with two conditions in two areas

    Murtadau: Your function gave me the SITEID of the site with the most mentions for each player seperately. But I don't want to know the ID itself but the number of times it appears for each Player. So Player 1 would have a 1 as all three IDs only appear once but for Player 2 it should be 2, as 2 and 3 appear twice.

  7. #7
    Registered User
    Join Date
    09-23-2010
    Location
    Cape Town, South Africa
    MS-Off Ver
    2007
    Posts
    14

    Re: Counting of items with two conditions in two areas

    Hi Dane123,

    I think a simple COUNTIFS will do the trick here then.

    Use the following in C2 and drag down.

    =COUNTIFS($A:$A,$A2,$B:$B,$B2)

    regards,
    Murtadau

  8. #8
    Registered User
    Join Date
    04-30-2019
    Location
    Maastricht, Netherlands
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Counting of items with two conditions in two areas

    Well, that was easy! Thank you!

  9. #9
    Registered User
    Join Date
    09-23-2010
    Location
    Cape Town, South Africa
    MS-Off Ver
    2007
    Posts
    14

    Re: Counting of items with two conditions in two areas

    Your welcome. Glad I could help.

+ 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. Counting items based on a list of items
    By jbaumrind in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-01-2015, 12:56 PM
  2. [SOLVED] Count rows between two areas in a collection/selection of multiple areas
    By JTwrk in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-02-2012, 10:38 AM
  3. Replies: 6
    Last Post: 04-18-2011, 11:53 AM
  4. Macro to list out items with conditions
    By Saky in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-03-2011, 10:26 AM
  5. Counting the items
    By Tyrone Lopez in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-25-2006, 02:51 AM
  6. Count if with several areas/conditions
    By Marielle in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-11-2006, 09:55 AM
  7. Help counting items please
    By Dave \Doc\ Corio in forum Excel General
    Replies: 5
    Last Post: 08-20-2005, 09:05 AM

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