+ Reply to Thread
Results 1 to 3 of 3

can countif function look at 2 separate columns for criteria

  1. #1
    blake7
    Guest

    can countif function look at 2 separate columns for criteria

    I want to use the countif function in excel to look at one criteria in one
    column and another criteria in another before summing up, can this be done ?

  2. #2
    Peo Sjoblom
    Guest

    Re: can countif function look at 2 separate columns for criteria

    No but you can use SUMPRODUCT,

    assume you want to count values in A1: A10 that are greater than 5 and has
    the colour red in B1: B10

    =SUMPRODUCT(--(A1:A10>5),--(B1:B10="red"))

    --

    Regards,

    Peo Sjoblom

    Northwest Excel Solutions

    www.nwexcelsolutions.com

    (remove ^^ from email address)

    Portland, Oregon




    "blake7" <[email protected]> wrote in message
    news:[email protected]...
    >I want to use the countif function in excel to look at one criteria in one
    > column and another criteria in another before summing up, can this be done
    > ?



  3. #3
    Daniel CHEN
    Guest

    Re: can countif function look at 2 separate columns for criteria

    try to use the following array function:
    (array function end with Ctrl+Shift+Enter)

    =COUNT(IF((($A$2:$A$8)="A")*(($B$2:$B$8)="A"),$C$2:$C$8))

    --
    Best regards,
    ---
    Yongjun CHEN
    XLDataSoft - Data Analysis Expert, Excel/VBA Specialist
    - - - - www.XLDataSoft.com - - - -
    Free Excel-Based Data Processing Tool is Available for Download

    "blake7" <[email protected]> wrote in message
    news:[email protected]...
    >I want to use the countif function in excel to look at one criteria in one
    > column and another criteria in another before summing up, can this be done
    > ?




+ 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