+ Reply to Thread
Results 1 to 13 of 13

Using SUMPRODUCT instead of COUNTIFS

Hybrid View

SymphonyTomorrow Using SUMPRODUCT instead of... 11-18-2011, 03:50 PM
Whizbang Re: Using SUMPRODUCT instead... 11-18-2011, 03:55 PM
arthurbr Re: Using SUMPRODUCT instead... 11-18-2011, 04:00 PM
SymphonyTomorrow Re: Using SUMPRODUCT instead... 11-18-2011, 04:30 PM
daddylonglegs Re: Using SUMPRODUCT instead... 11-18-2011, 04:50 PM
SymphonyTomorrow Re: Using SUMPRODUCT instead... 11-18-2011, 04:52 PM
Whizbang Re: Using SUMPRODUCT instead... 11-18-2011, 04:34 PM
SymphonyTomorrow Re: Using SUMPRODUCT instead... 11-18-2011, 04:36 PM
NBVC Re: Using SUMPRODUCT instead... 11-18-2011, 04:49 PM
Whizbang Re: Using SUMPRODUCT instead... 11-18-2011, 04:42 PM
NBVC Re: Using SUMPRODUCT instead... 11-18-2011, 04:54 PM
  1. #1
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Using SUMPRODUCT instead of COUNTIFS is causing me pain

    You can add a helper column in D3:

    =A3&"_"&B3&"_"&C3

    copied down, then in H4:

    =COUNTIF($D$3:$D$20,$G4&"_"&H$3&"_"&$F$3)+COUNTIF($D$3:$D$20,$G4&"_"&H$3&"_"&$F$4)+COUNTIF($D$3:$D$20,$G4&"_"&H$3&"_"&$F$5)

    copied down and across...

    if you had XL2007 or later, H4 would be:

    =SUMPRODUCT(COUNTIFS($A$3:$A$20,$G4,$B$3:$B$20,H$3,$C$3:$C$20,$F$3:$F$5))

    copied down and across...
    Last edited by NBVC; 11-18-2011 at 04:53 PM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 4 users browsing this thread. (0 members and 4 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