Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index



csanyipal wrote

Hi Gérard,


Gérard Fargeot wrote

Hi Pal,

Did you forget the "magic" function SUMPRODUCT ?

=SUMPRODUCT('O.tanácsi f.év'.Y7:Y26;'O.tanácsi
f.év'.Y7:Y26>25;'O.tanácsif.év'.Y7:Y26<=384)

Gérard (again)

No, I didn't forget it, but it seems that that I didn't understand it
well. Sorry.



So if I understand well, SUMPRODUCT in this case will summarize values of
cells in an array if we gives the formula:
=SUMPRODUCT('O.tanácsi f.év'.Z7:Z26;'O.tanácsi f.év'.Z7:Z26>=8;'O.tanácsi
f.év'.Z7:Z26<=17)

*=SUMPRODUCT(array;condition1;condition2)*

but will only count cells with the given conditions if we gives the formula:
=SUMPRODUCT('O.tanácsi f.év'.Z7:Z26>=8;'O.tanácsi f.év'.Z7:Z26<=17)

* =SUMPRODUCT(condition1;condition2)*

condition1 and condition2 are arrays too.

As one can see in the LO Help,  SUMPRODUCT multiplies corresponding elements
in the given arrays, and returns the sum of those products. 

I'm trying to understand SUMPRODUCT considering this case abowe. Is there
something more to be added to this explanation?

Thanks!
Pál

--
View this message in context: 
http://nabble.documentfoundation.org/To-sum-only-those-values-in-a-range-that-are-between-two-number-tp3616470p3616853.html
Sent from the Users mailing list archive at Nabble.com.

-- 
For unsubscribe instructions e-mail to: users+help@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.