+ Reply to Thread
Results 1 to 4 of 4

Compare 2 Columns and get a count

  1. #1
    Registered User
    Join Date
    02-17-2005
    Posts
    2

    Compare 2 Columns and get a count

    I need a formula that will count up how many people meet certain criteria based on specific information in 2 different columns.

    Jack

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Try the following...

    =SUMPRODUCT(--(Range1=Cond1),--(Range2=Cond2))

    Hope this helps!

    Quote Originally Posted by hilton
    I need a formula that will count up how many people meet certain criteria based on specific information in 2 different columns.

    Jack

  3. #3
    Registered User
    Join Date
    02-17-2005
    Posts
    2
    That doesn't seem to work
    Maybe I need to give you more information, the report asks for the number of single families at the beginning of the project year.

    Col A Col B
    Date Single/Family
    1/1/05 s
    1/10/05 s
    1/1/05 F

    So the answer should be 1.

    Jack

  4. #4
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Try the following...

    =SUMPRODUCT(--(A1:A3="1/1/05"+0),--(B1:B3="s"))

    OR

    =SUMPRODUCT(--(A1:A3=C1),--(B1:B3=D1))

    ...where C1 contains the date of interest and D1 contains the status of interest.

    Hope this helps!

    Quote Originally Posted by hilton
    That doesn't seem to work
    Maybe I need to give you more information, the report asks for the number of single families at the beginning of the project year.

    Col A Col B
    Date Single/Family
    1/1/05 s
    1/10/05 s
    1/1/05 F

    So the answer should be 1.

    Jack

+ 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