+ Reply to Thread
Results 1 to 5 of 5

IF & COUNTIF or SUMPRODUCT

  1. #1
    Forum Contributor
    Join Date
    05-30-2013
    Location
    France
    MS-Off Ver
    2010
    Posts
    260

    IF & COUNTIF or SUMPRODUCT

    Hi,

    It's probably simple but I can't get this to work.
    IF(Z17="Close");*(COUNTIF(AB17:AB3199;"AP");"")
    I've also tried SUMPRODUCT but no luck there either. Any help would be appreciated !

    amphinomos
    Last edited by amphinomos; 06-27-2013 at 08:10 AM.

  2. #2
    Forum Guru Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,067

    Re: IF & COUNTIF or SUMPRODUCT

    How about..

    =IF(Z17="Close";COUNTIF(AB17:AB3199;"AP");"")
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Contributor
    Join Date
    05-30-2013
    Location
    France
    MS-Off Ver
    2010
    Posts
    260

    Re: IF & COUNTIF or SUMPRODUCT

    Thanks for your help. However the formula did make me realize that I don't just want to find if Z17 has "close" but the whole array Z17:Z3199. I think that might call for a sumproduct.

  4. #4
    Forum Guru Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,067

    Re: IF & COUNTIF or SUMPRODUCT

    Try..

    =SUMPRODUCT((Z17:Z3199="Close")*(AB17:AB3199="AP"))
    or
    =COUNITFS(z17:z3199;"Close";AB17:AB3199;"AP")

  5. #5
    Forum Contributor
    Join Date
    05-30-2013
    Location
    France
    MS-Off Ver
    2010
    Posts
    260

    Re: IF & COUNTIF or SUMPRODUCT

    Thanks that worked great.

+ 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