+ Reply to Thread
Results 1 to 3 of 3

Count Values

  1. #1
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Count Values

    A B C D E
    Ple aDS Value Count C+F
    3 69 0 15 4
    8 33 1
    0 31 2
    2 66 3
    3 38 4
    4 49 5

    Hi all,

    In the above example Col B has values from 0 to 200. Col C lists those values in sequence. In Col D I want to be able to input the number of times "0" in Col C appears in Col B, the number of times "1" in Col C appears in Col B...etc etc

    I then want Col E to display how many times the "0" in Col C has a corresponding "1" in Col A.
    So in the above example Col C "0" had a total of 15 matches in Col B. Col E shows that 4 of those 15 matches had a corresponding "1" in Col A.

    Hope that makes sense.

    Cheers
    Last edited by hammer2; 03-20-2012 at 08:38 PM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,729

    Re: Count Values

    In D2 use this formula

    =COUNTIF(B:B,C2)

    and in E2

    =COUNTIFS(B:B,C2,A:A,1)

    copy those down

    I assume the 1 (in column A) persists for every row?
    Audere est facere

  3. #3
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Re: Count Values

    That works a treat!

    Thank you so much Sir!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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