Ask Your Question
0

Subtotal function acts weird

asked 2012-10-12 23:44:25 +0200

sulliwane gravatar image sulliwane flag of France
31 1 1 5

updated 2012-10-12 23:48:13 +0200

Hi all,

I have two columns : first one for incomes et second for people. I activated the auto-filter thus I can display all incomes for a particular person. (see attached C:\fakepath\subtotal-example.ods).

My question : I tried to use the subtotal function to track the total amount of incomes for each person...but as soon as my display filter parameters change, the subtotal change :o(

Do I use the subtotal function the wrong way or simply misunderstood it ? and above all, how would you achieve this goal (total based on display filter results)

Thank you !

delete close flag offensive retag edit

1 Answer

Sort by » oldest newest most voted
0

answered 2012-10-13 02:02:09 +0200

mariosv gravatar image mariosv flag of Spain
5039 23 51

Because SUBTOTAL() works taking only the visible cells.

You can use SUMIF() to get what you want. =SUMIF($B$1:$B$8;"brigitte";$A$1)

link delete flag offensive edit

Comments

thanks a lot ! that was exactly what I was looking for....nice to get the right awser so quicky :)

sulliwane ( 2012-10-13 07:40:58 +0200 )edit

Login/Signup to Answer

Donate

LibreOffice is made available by volunteers around the globe, backed by a charitable Foundation. Please support our efforts: Your donation helps us to deliver a better product!

Question tools

Follow

subscribe to rss feed

Stats

Asked: 2012-10-12 23:44:25 +0200

Seen: 131 times

Last updated: Oct 13 '12