Nesting Sumproduct and Sumifs not working

Siyanna

Well-known Member
Joined
Nov 7, 2011
Messages
1,146
Hi

I am trying to change this formula to use Sumifs to make it faster (trying to use better formulas to speed up my spreadsheet) but i cant seem to get it to work

I am trying to do a multiple or with sumproduct

my current formula

=SUMPRODUCT(--(A2:A7=F7),--ISNUMBER(MATCH(B2:B7,Condition_List,0))),(D2:D7))

trying to change to

=SUMPRODUCT(--(A2:A7=F7),Sumifs(B2:B7,Condition_List),(D2:D7))

what am i doing wrong
 

Some videos you may like

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Glove_Man

Well-known Member
Joined
Feb 20, 2005
Messages
578
SUMIFS() is returning a single value.

--ISNUMBER() is returning an array of 6 values.....

The two formulas are doing completely different things. SUMIFS() is already adding up the cells, before applying the second criteria. A = F criteria
 

Siyanna

Well-known Member
Joined
Nov 7, 2011
Messages
1,146
Im sure i read i can encorporate Sumifs to make it quicker

i may be wrong though
 

steve the fish

Well-known Member
Joined
Oct 20, 2009
Messages
8,080
Office Version
365
Platform
Windows
You can do that with a sumproduct sumifs:

=SUMPRODUCT(SUMIFS(D2:D7,A2:A7,F7,B2:B7,Condition_List))
 

Watch MrExcel Video

Forum statistics

Threads
1,102,844
Messages
5,489,221
Members
407,681
Latest member
HoneyBadger914

This Week's Hot Topics

  • Timer in VBA - Stop, Start, Pause and Reset
    [CODE=vba][/CODE] Option Explicit Dim CmdStop As Boolean Dim Paused As Boolean Dim Start Dim TimerValue As Date Dim pausedTime As Date Sub...
  • how to updates multiple rows in muliselect listbox
    Hello everyone. I need help with below code. code is only chaning 1st row in mulitiselect list box. i know issue with code...
  • Delete Row from Table
    I am trying to delete a row from a table using VBA using a named range to find what I need to delete. My Range is finding the right cell. In the...
  • Assigning to a variable
    I have a for each block where I want to assign the value in column 5 of the found row to the variable Serv. [CODE=vba] For Each ws In...
  • Way to verify information
    Hi All, I don't know what to call this formula, and therefore can't search. I have a spreadsheet with information I want to reference...
  • Active Cell Address – Inactive Sheet
    How to use VBA to get the cell address of the active cell in an inactive worksheet and then place that cell address in a location on the current...
Top