Can I use sumproduct in numbers?

I gave a survey with some questions to a group of coworkers. There are 2 correct answer for each question. I would like to give a point for each correct answer. I have used the sum product on excel but it doesn't work in numbers. the formula that I sued was

=SUMPRODUCT(--(C6:AO6=$C$3:$AO$3)). Is there any other way how to so this. I tried COUNTIFS but it doesn't work, maybe I am doing something wrong

Thanks for your help

MacBook Pro (13-inch Mid 2012), iOS 7.1

Posted on May 13, 2014 10:17 AM

Reply
5 replies

May 13, 2014 1:36 PM in response to elclarinbrew

that is the incorrect syntax for sumproduct(). You can get function help by typing the "=" sign in any cell then enter the function name (or just a few letters):


User uploaded file


Information from this help:

The SUMPRODUCT function returns the sum of the products of corresponding numbers in one or more collections.

SUMPRODUCT(range, range…)

  • range: A collection of cells. rangecontains a reference to a single range of cells containing number values orduration values. If all values are duration values, SUMPRODUCT returns a number value. If one and only one cell in rangecontains a duration value while all others contain number values, SUMPRODUCT will return a duration value. If string values or boolean values are included inrange, they are ignored. If date/time values are included in range, SUMPRODUCT will return an error.
  • range…: Optionally include one or more additional collections of cells. The collections must all have the same dimensions.

Notes

The SUMPRODUCT function multiplies the corresponding numbers in each collection and then sums each of the products. If only one collection is specified, SUMPRODUCT returns the sum of the collection.



I suspect there is another way but without more context it will be hard to provide a specific solution. Post a screen shot without name, please.

May 13, 2014 1:59 PM in response to Wayne Contello

Wayne,


I had the same initial impression: surely this must be incorrect syntax. But it is indeed a valid formula in Excel! I pasted it in and tried it out. I *think* (though I haven't had time to investigate) that it may be a form of array formula, and of course Numbers can't handle array formulas the way Excel can.


What it produces in Excel is a count of the matches between a value in C6:AO6 and the corresponding value in the same column in C3:AO3. Presumably C2:AO3 contains the answer key and C6:AO6 contains the actual answers.


I was trying to think of formulas to count occurrences of either of two correct values (the Excel formula seems to check against one correct answer for each question), and I came up empty. Any ideas on how to do that with formulas?


SG

May 13, 2014 6:01 PM in response to elclarinbrew

There are 2 correct answer for each question. I would like to give a point for each correct answer.



Since SUMPRODUCT can't be an array function in Numbers, I think you need a less compact approach such as this one:


User uploaded file



The 'Answer Key' and 'Answers' tables hold input data. The question numbers are across the top.


The formula in D2 of the 'Scores' table, copied right and down, is:


=COUNTIF(Answer Key::D,Answers::D2)


The formula in B2, copied down, is:


=SUM(2:2)


Columns A and B are defined as Header Columns before entering the formula in column B.


SG

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Can I use sumproduct in numbers?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.