Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Verlaesslichkeit
 
Posts: n/a
Default How do I do a sumif function not including hidden rows?

Pease, I need some help!

I want to sum a column with a criteria (in this case another column with
selective creiteria = 1) but I dont want hidden rows to be included. It
should be a function that is a subtotal yet taking in consideration a
criteria. Any ideas? Thanks a lot!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default How do I do a sumif function not including hidden rows?

Assuming that they are hidden via filter, this sums the values in E when C
is filtered, and D = Assigned

=SUMPRODUCT(SUBTOTAL(3,OFFSET(C1,ROW($C$2:$C$19)-ROW($C$1),,1)),--($D$2:$D$1
9="Assigned"),$E$2:$E$19)

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Verlaesslichkeit" wrote in
message ...
Pease, I need some help!

I want to sum a column with a criteria (in this case another column with
selective creiteria = 1) but I dont want hidden rows to be included. It
should be a function that is a subtotal yet taking in consideration a
criteria. Any ideas? Thanks a lot!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Verlaesslichkeit
 
Posts: n/a
Default How do I do a sumif function not including hidden rows?

Something didnt work... Ill try illustrating it better

A B C
0 15 0
1 15 1
0 18 0
1 18 1
1 21 0
0 23 0

Now I want the sumif when column A is filtered to 1 and column C =1 . In
this way, the result should be 15 + 18 = 33





"Bob Phillips" wrote:

Assuming that they are hidden via filter, this sums the values in E when C
is filtered, and D = Assigned

=SUMPRODUCT(SUBTOTAL(3,OFFSET(C1,ROW($C$2:$C$19)-ROW($C$1),,1)),--($D$2:$D$1
9="Assigned"),$E$2:$E$19)

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Verlaesslichkeit" wrote in
message ...
Pease, I need some help!

I want to sum a column with a criteria (in this case another column with
selective creiteria = 1) but I dont want hidden rows to be included. It
should be a function that is a subtotal yet taking in consideration a
criteria. Any ideas? Thanks a lot!




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default How do I do a sumif function not including hidden rows?

It simply needed adjusting the supplied formula to your data

=SUMPRODUCT(SUBTOTAL(3,OFFSET(A1,ROW($A$2:$A$19)-ROW($A$1),,1)),--(C$2:$C$19
=1),$B$2:$B$19)

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Verlaesslichkeit" wrote in
message ...
Something didnt work... Ill try illustrating it better

A B C
0 15 0
1 15 1
0 18 0
1 18 1
1 21 0
0 23 0

Now I want the sumif when column A is filtered to 1 and column C =1 . In
this way, the result should be 15 + 18 = 33





"Bob Phillips" wrote:

Assuming that they are hidden via filter, this sums the values in E when

C
is filtered, and D = Assigned


=SUMPRODUCT(SUBTOTAL(3,OFFSET(C1,ROW($C$2:$C$19)-ROW($C$1),,1)),--($D$2:$D$1
9="Assigned"),$E$2:$E$19)

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Verlaesslichkeit" wrote in
message ...
Pease, I need some help!

I want to sum a column with a criteria (in this case another column

with
selective creiteria = 1) but I dont want hidden rows to be included.

It
should be a function that is a subtotal yet taking in consideration a
criteria. Any ideas? Thanks a lot!






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CarlosAntenna
 
Posts: n/a
Default How do I do a sumif function not including hidden rows?

If your data is truly zeros and ones as in your example, you could add a
column D with the formula =A1*B1*C1 and sum column D. If your sample data
is a simplified version of the actual table, the formula could be changed to
=(A1="criteria")*B1*(C1="criteria"). This answer will be the same whether
the column is filtered or not.

--
Carlos

"Verlaesslichkeit" wrote in
message ...
Something didnt work... Ill try illustrating it better

A B C
0 15 0
1 15 1
0 18 0
1 18 1
1 21 0
0 23 0

Now I want the sumif when column A is filtered to 1 and column C =1 . In
this way, the result should be 15 + 18 = 33





"Bob Phillips" wrote:

Assuming that they are hidden via filter, this sums the values in E when

C
is filtered, and D = Assigned


=SUMPRODUCT(SUBTOTAL(3,OFFSET(C1,ROW($C$2:$C$19)-ROW($C$1),,1)),--($D$2:$D$1
9="Assigned"),$E$2:$E$19)

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Verlaesslichkeit" wrote in
message ...
Pease, I need some help!

I want to sum a column with a criteria (in this case another column

with
selective creiteria = 1) but I dont want hidden rows to be included.

It
should be a function that is a subtotal yet taking in consideration a
criteria. Any ideas? Thanks a lot!








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
paste excel sheet excluding hidden rows Bernie Excel Discussion (Misc queries) 3 March 5th 06 02:17 PM
Hidden rows rdrunner Excel Discussion (Misc queries) 2 October 26th 05 06:50 PM
Sum function which ignores hidden rows bucketheaduk Excel Worksheet Functions 2 October 12th 05 01:56 PM
deleting hidden rows so i can print only the rows showing?????? jenn Excel Worksheet Functions 0 October 6th 05 04:05 PM
Radom hidden rows Bamff Excel Discussion (Misc queries) 0 August 4th 05 12:55 AM


All times are GMT +1. The time now is 04:17 PM.

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

About Us

"It's about Microsoft Excel"