+ Reply to Thread
Results 1 to 7 of 7

Sumproduct or countif with multiple criteria

  1. #1
    Registered User
    Join Date
    01-27-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    17

    Sumproduct or countif with multiple criteria

    HI I have a list of data in 2 columns and I want to count the number of times "NA" occurs when the corresponding column in also "NA"

    I had a countif function before I needed to add the corresponding column data.

    In the example.xls I need to count the total number of NA's in column Q but only if column 0 in the corresponding position is also NA.

    Cheers
    Attached Files Attached Files

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

    Re: Sumproduct or countif with multiple criteria

    Columns Q and O? In your example it looks like the answer would be zero but in any case you can use SUMPRODUCT like this

    =SUMPRODUCT((O2:O500="NA")*(Q2:Q500="NA"))
    Audere est facere

  3. #3
    Registered User
    Join Date
    01-27-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Sumproduct or countif with multiple criteria

    Thanks worked a treat. But now can I ask it to count anything other than NA ie: is not NA

  4. #4
    Registered User
    Join Date
    01-24-2009
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2003, 2007
    Posts
    61

    Re: Sumproduct or countif with multiple criteria

    use this.. (nothing but a modified version of daddylonglegs!)

    Please Login or Register  to view this content.

  5. #5
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Sumproduct or countif with multiple criteria

    Quote Originally Posted by navwelch View Post
    use this.. (nothing but a modified version of daddylonglegs!)

    Please Login or Register  to view this content.
    There is no need for the leading +, this is Excel not Lotus

  6. #6
    Registered User
    Join Date
    01-27-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Sumproduct or countif with multiple criteria

    Thanks all works

    Cheers

  7. #7
    Registered User
    Join Date
    01-24-2009
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2003, 2007
    Posts
    61

    Re: Sumproduct or countif with multiple criteria

    thanks bob for the information..

+ 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