Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 153
Default SUBTOTAL in SUMIF formula

Greetings folks. I am trying to use SUMIF with a nested SUBTOTAL function
like so

=SUMIF(C10:C50000,C2,SUBTOTAL(9,D10:D50000)).

I only want the sum_range to sum based on a filter, and thus the SUBTOTAL.
I know this is not possible the way I have it , because it is not working,
but is it possible some other way? If not, does anyone have a suggstion?

Thank you
Greg


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 477
Default SUBTOTAL in SUMIF formula

What's in your Range C10:C50000 and also C2?

"Greg Snidow" wrote:

Greetings folks. I am trying to use SUMIF with a nested SUBTOTAL function
like so

=SUMIF(C10:C50000,C2,SUBTOTAL(9,D10:D50000)).

I only want the sum_range to sum based on a filter, and thus the SUBTOTAL.
I know this is not possible the way I have it , because it is not working,
but is it possible some other way? If not, does anyone have a suggstion?

Thank you
Greg


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 477
Default SUBTOTAL in SUMIF formula

What is in your C2 and your C10:C50000 (what type of data)?

"Greg Snidow" wrote:

Greetings folks. I am trying to use SUMIF with a nested SUBTOTAL function
like so

=SUMIF(C10:C50000,C2,SUBTOTAL(9,D10:D50000)).

I only want the sum_range to sum based on a filter, and thus the SUBTOTAL.
I know this is not possible the way I have it , because it is not working,
but is it possible some other way? If not, does anyone have a suggstion?

Thank you
Greg


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 153
Default SUBTOTAL in SUMIF formula

C2:C5 Contain the sum_criteria, text data. C10:C50000 has all cells filled
with one of the values from C2:C5.

"Jim May" wrote:

What is in your C2 and your C10:C50000 (what type of data)?

"Greg Snidow" wrote:

Greetings folks. I am trying to use SUMIF with a nested SUBTOTAL function
like so

=SUMIF(C10:C50000,C2,SUBTOTAL(9,D10:D50000)).

I only want the sum_range to sum based on a filter, and thus the SUBTOTAL.
I know this is not possible the way I have it , because it is not working,
but is it possible some other way? If not, does anyone have a suggstion?

Thank you
Greg


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 477
Default SUBTOTAL in SUMIF formula

the Sumproduct() function will likely solve your problem. see it in help or
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

"Greg Snidow" wrote:

C2:C5 Contain the sum_criteria, text data. C10:C50000 has all cells filled
with one of the values from C2:C5.

"Jim May" wrote:

What is in your C2 and your C10:C50000 (what type of data)?

"Greg Snidow" wrote:

Greetings folks. I am trying to use SUMIF with a nested SUBTOTAL function
like so

=SUMIF(C10:C50000,C2,SUBTOTAL(9,D10:D50000)).

I only want the sum_range to sum based on a filter, and thus the SUBTOTAL.
I know this is not possible the way I have it , because it is not working,
but is it possible some other way? If not, does anyone have a suggstion?

Thank you
Greg




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 153
Default SUBTOTAL in SUMIF formula

Jim, thanks for responding. I don't understand how SUMPRODUCT will help. If
I have in C2:C5, "Blue","Orange","Green","Brown","Slate" and in C10:C50000
all cells are filled with one of these five values, how will SUMPRODUCT help?
What I should have mentioned is that column A is populated with months in
'2007_10' format. I am able to get the SUMIF to work using C2:C5 as
criteria, but what I want to happen is that value to also only include values
within the range of data I have filtered in column A. So if I have column A
filtered to '2007_10', I only want to see values from the sum range for
October. Does that make sense?

Greg

"Jim May" wrote:

the Sumproduct() function will likely solve your problem. see it in help or
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

"Greg Snidow" wrote:

C2:C5 Contain the sum_criteria, text data. C10:C50000 has all cells filled
with one of the values from C2:C5.

"Jim May" wrote:

What is in your C2 and your C10:C50000 (what type of data)?

"Greg Snidow" wrote:

Greetings folks. I am trying to use SUMIF with a nested SUBTOTAL function
like so

=SUMIF(C10:C50000,C2,SUBTOTAL(9,D10:D50000)).

I only want the sum_range to sum based on a filter, and thus the SUBTOTAL.
I know this is not possible the way I have it , because it is not working,
but is it possible some other way? If not, does anyone have a suggstion?

Thank you
Greg


  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default SUBTOTAL in SUMIF formula

You can use the CSE formula

sum(if ($c$10:$c$50000=$C2,$D$10:$D$50000))

You must press CTRL+Shift+Enter together to enter this in the cell

put it in D2 and then copy it to D3,D4 and D5. You have to copy it one cell
at a time.
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default SUBTOTAL in SUMIF formula

nest it to make your date citeria work.

sum(if ($c$10:$c$50000=$C2,if($a$10:$a$50000=$A2,$D$10:$D $50000)))

put the date you want to filter for in A2:A5
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 sumif with subtotal Robert Excel Discussion (Misc queries) 8 June 17th 09 04:37 PM
Subtotal and sumif help Ellen G. Excel Discussion (Misc queries) 1 November 9th 06 04:32 PM
Sumif & subtotal Blackwar Excel Discussion (Misc queries) 5 December 8th 05 01:11 PM
Subtotal on SumIf Steven Excel Worksheet Functions 1 May 26th 05 12:25 AM
Can you combined the SUMIF and SUBTOTAL functions in a formula? [email protected] Excel Worksheet Functions 1 April 22nd 05 04:05 AM


All times are GMT +1. The time now is 10:02 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"