One dynamic array works and the other does not.

kweaver

Well-known Member
Joined
May 12, 2009
Messages
2,934
Office Version
  1. 365
  2. 2010
In the sheet, K2 : K1001 contain dates.

M2 : M1001 contain payment types for corresponding invoices (e.g., cash, paypal, etc.).
O2 contains paypal, for example.

J2 : J1001 contain amounts paid.

N2 : N1001 contain =MONTH(M2:M1001)
P1 is a 1

This works:
Code:
=SUMIFS($J$2:$J$1001,$M$2:$M$1001,$O2,$N$2#,P$1)

Why doesn't this and why is it not an acceptable statement [error says: there's a problem with this formula]?

Code:
=SUMIFS($J$2:$J$1001,$M$2:$M$1001,$O2,MONTH(K2:K1001),P$1)
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Criteria ranges have to be real sheet ranges instead of a calculated array

Same goes for countifs,minifs and maxifs
 
Upvote 0
Solution
I don't like it though, Microsoft has to fix that in my opinion. This however, is working; (used one criteria for this example)

Excel Formula:
=LET(r,A2:B9,COUNTIFS(INDEX(r,,1),"<>"))
 
Upvote 0

Forum statistics

Threads
1,215,315
Messages
6,124,213
Members
449,148
Latest member
sweetkt327

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top