Multiple SUMIFS criteria with multiple criteria in a column

Joined
Jul 30, 2015
Messages
4
Dear all, I am confused about array in Sumifs formula and after browsing several thread about sumifs, i know we cannot use formula such as =SUM(SUMIFS(E3:E10;B3:B10;B14;C3:C10;{"dog";"cat"};D3:D10;{"male";"female"})) and should replace with sumproduct formula, but what if i still need the first criteria B3:B10;B14 (as a primary key of my database), because using sumproduct we use no reference cell like in vlookup and sumifs.

Hope someone can help me

Thank you for the help :)
 

Weazel

Well-known Member
Joined
Dec 24, 2011
Messages
3,155
try replacing one of your array constants ";" with ","

=SUM(SUMIFS(E3:E10;B3:B10;B14;C3:C10;{"dog","cat"};D3:D10;{"male";"female"}))
 
Joined
Jul 30, 2015
Messages
4
Wow I don't understand but it works. Well i try to use "," at the first time (as suggested), but it's not working, there is an error message. However when I type "\" it works... Thank you Sir! you the man!
 

Forum statistics

Threads
1,081,421
Messages
5,358,584
Members
400,505
Latest member
JacquiT

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top