Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Hiughs
 
Posts: n/a
Default Is there a command like subtotal but with a conditional?

I want to perform several calculations but using something like subtotal()
but taking consideration of certain conditions like sumif(), in others words,
sumif() works but doesn´t change when i manipulte the filters and subtotal()
works with the filters but not with the diferent conditions... What can i do?
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

One solution


=SUMPRODUCT(--($B$2:$B$2005),--($A$2:$A$200),--(SUBTOTAL(3,OFFSET($B$2,ROW(
$B$2:$B$200)-MIN(ROW($B$2:$B$200)),,))))

will sum values in a filtered list where B2:B200 5 and sum the
corresponding cells in A



--

Regards,

Peo Sjoblom



"Hiughs" wrote in message
...
I want to perform several calculations but using something like subtotal()
but taking consideration of certain conditions like sumif(), in others

words,
sumif() works but doesn´t change when i manipulte the filters and

subtotal()
works with the filters but not with the diferent conditions... What can i

do?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using more than one subtotal with same data set AuthorizedUserPF Excel Worksheet Functions 3 February 28th 05 02:05 PM
pivot table - hide details but show subtotal for calculated field tenneym Excel Discussion (Misc queries) 1 February 9th 05 03:07 AM
Subtotal by two columns at once Katherine Excel Discussion (Misc queries) 1 January 20th 05 08:19 PM
Subtotal of Subtotal displays Grand Total in wrong row Thomas Born Excel Worksheet Functions 5 January 6th 05 01:46 PM
Subtotal And Countif Sheryl Excel Discussion (Misc queries) 4 December 9th 04 07:18 PM


All times are GMT +1. The time now is 01:56 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"