ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Need Help with this (https://www.excelbanter.com/excel-discussion-misc-queries/234336-need-help.html)

Need_Help

Need Help with this
 
I'm using a SUMPRODUCT that works but I want it to sum the hours when I use a
filter.
This is my SUMPRODUCT:
=SUMPRODUCT(--(sheet1!$a$1:$a$14=B3),--(sheet1!$b$1:$b$14=A3),--(sheet1!$c$1:$c$14))

I want to be able to filter on the year column and only get the sub-totals
for that year when my criteria matches.

YEAR Group Hours
2007 1 25
2007 2 20
2007 3 15
2008 1 35
2008 1 65
2008 2 21
2008 3 8
2008 3 5
2008 3 9
2009 1 45
2009 1 65
2009 2 25
2009 2 100
2009 2 10


T. Valko

Need Help with this
 
See your other post

--
Biff
Microsoft Excel MVP


"Need_Help" wrote in message
...
I'm using a SUMPRODUCT that works but I want it to sum the hours when I
use a
filter.
This is my SUMPRODUCT:
=SUMPRODUCT(--(sheet1!$a$1:$a$14=B3),--(sheet1!$b$1:$b$14=A3),--(sheet1!$c$1:$c$14))

I want to be able to filter on the year column and only get the sub-totals
for that year when my criteria matches.

YEAR Group Hours
2007 1 25
2007 2 20
2007 3 15
2008 1 35
2008 1 65
2008 2 21
2008 3 8
2008 3 5
2008 3 9
2009 1 45
2009 1 65
2009 2 25
2009 2 100
2009 2 10




Need_Help

Need Help with this
 
Got it. That worked.
Thank you very much.

"T. Valko" wrote:

See your other post

--
Biff
Microsoft Excel MVP


"Need_Help" wrote in message
...
I'm using a SUMPRODUCT that works but I want it to sum the hours when I
use a
filter.
This is my SUMPRODUCT:
=SUMPRODUCT(--(sheet1!$a$1:$a$14=B3),--(sheet1!$b$1:$b$14=A3),--(sheet1!$c$1:$c$14))

I want to be able to filter on the year column and only get the sub-totals
for that year when my criteria matches.

YEAR Group Hours
2007 1 25
2007 2 20
2007 3 15
2008 1 35
2008 1 65
2008 2 21
2008 3 8
2008 3 5
2008 3 9
2009 1 45
2009 1 65
2009 2 25
2009 2 100
2009 2 10






All times are GMT +1. The time now is 03:54 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com