Why does this Sumifs expression get an error?

JenniferMurphy

Well-known Member
Joined
Jul 23, 2011
Messages
2,537
Office Version
  1. 365
Platform
  1. Windows
I need to calculate the average ratio of a set of numbers. This minisheet is a simple example.

In P11, I want to calculate the average ratio of the values in L/K for each value in J. The expression in O11 works, but the one in P11 does not. Can anyone tell me why? And what do I need to do to make it work. The values in J11:L16 are sorted on J, but I need the expression to work no matter how they are sorted.

Average Ratings.xlsx
JKLMNOP
11a24a2=sumifs(L11:L16/K11:K16,J11:J16,N11)
12a36b3
13a48
14b26
15b39
16b412
Test
Cell Formulas
RangeFormula
O11O11=SUM(L11:L13/K11:K13)/3
O12O12=SUM(L14:L16/K14:K16)/3


Thanks
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
All of the xxxIF(s) function will allow an array for the criteria, but not the ranges which must be a valid range.

Aha! "A1:A10" is a range, but "A1:A10/B1:B10" is an array, right?

Ok, but then why does it put up this error message asking me if I don't know what a formula is, rather than one saying that the first argument cannot be an array?

1665848874934.png


I swear the m$ft "developers" are clueless, lazy, or just have a really mean sense of humor. 😒😫
 
Upvote 0
Ok, but then why does it put up this error message asking me if I don't know what a formula is, rather than one saying that the first argument cannot be an array?
There is no way that the developers could create an error message for each and every possible scenario, so they use a few generic messages.
"A1:A10/B1:B10" is an array, right?
That's right.
 
Upvote 0

Forum statistics

Threads
1,215,730
Messages
6,126,529
Members
449,316
Latest member
sravya

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