+ Reply to Thread
Results 1 to 3 of 3

multiple counts

  1. #1
    Registered User
    Join Date
    01-25-2004
    Posts
    30

    multiple counts

    Hi all.

    I need help on a (basic ?) problem I'm not able to solve with the basic functions of excel
    I need to count rows in a worksheet where "col A = "a value"" AND "col B = "another value", and then sum the values of col. "C" I was supposed to use COUNTIF but I think it doesn't help

    To make clear, if this is my spreadsheet,

    Col A Col B Col C

    Row1 blocked Y 5
    Row2 blocked 8
    Row3 blocked Y 8
    Row4 blocked 4
    Row5 blocked Y 3
    Row6 blocked 2
    Row7 blocked 4
    Row8 working Y 4
    Row9 working 2
    Row10 working Y 9


    then I want to know
    1) how many rows where col A = blocked and Col B=Y (result = 3)
    2) the total of values in Col 5 for rows that meet the criteria 1 (result = 16)


    Any idea?
    thanks in advance
    *pimar

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    1) how many rows where col A = blocked and Col B=Y (result = 3)
    =SUMPRODUCT(--(A1:A10="blocked"),--(B1:B10="Y"))

    2) the total of values in Col 5 for rows that meet the criteria 1 (result = 16)
    =SUMPRODUCT(--(A1:A10="blocked"),--(B1:B10="Y"),C1:C10)

    Hope this helps!

  3. #3
    Registered User
    Join Date
    01-25-2004
    Posts
    30
    Yes it really helped -
    thanks a lot
    *pimar

+ 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