Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default SUMIF with NAME RANGE

Really need some help with this one as I am stuck. I am trying to use a drop
down box and a name range to get monthly totals and can't figure it out. Here
is what I have:

2 Sheets:
Monthly Report
Sum By Month

On both sheets I have Agent IDs in Row $B. On my 'Sum By Month'! sheet I
have money earned in columns D:E, H:I, L:M, all the way through December. I
gave each pair of revenue columns a range name according to months. (SUM_JAN
(columns D:E), SUM_FEB (columns H:I), SUM_MAR (columns L:M) etc.) I want to
pull the sum of each range from 'Sum By Month'! that match the Agent ID in
Column $B.

I created a drop down list on the 'Monthly Report'! sheet in cell D5 so the
agent can select the month they wish to see revenue earned for, but I am only
getting the total from the first column in my name ranges. (ie: 'Sum by
Month'! column D revenue shows, but not E.)

Here is the formula I have so far, but I am missing something or using the
wrong formula.

=SUMIF('Summary by Month'!$B$6:$B$137,$B6,INDIRECT($D$5))

Again, D5 is where I have my NAME RANGE drop down list so if they select
SUM_FEB is should show the total for February in cell D6, adding columns D:E
from 'Sum by Month'!

Any help or thoughts is VERY much appreciated?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 834
Default SUMIF with NAME RANGE

Try this alternative

=SUMPRODUCT(('Summary By Month'!$B$6:$B$37=$B6)*(INDIRECT($D$5)))

--

HTH

Bob

"Big_Tater" wrote in message
...
Really need some help with this one as I am stuck. I am trying to use a
drop
down box and a name range to get monthly totals and can't figure it out.
Here
is what I have:

2 Sheets:
Monthly Report
Sum By Month

On both sheets I have Agent IDs in Row $B. On my 'Sum By Month'! sheet I
have money earned in columns D:E, H:I, L:M, all the way through December.
I
gave each pair of revenue columns a range name according to months.
(SUM_JAN
(columns D:E), SUM_FEB (columns H:I), SUM_MAR (columns L:M) etc.) I want
to
pull the sum of each range from 'Sum By Month'! that match the Agent ID in
Column $B.

I created a drop down list on the 'Monthly Report'! sheet in cell D5 so
the
agent can select the month they wish to see revenue earned for, but I am
only
getting the total from the first column in my name ranges. (ie: 'Sum by
Month'! column D revenue shows, but not E.)

Here is the formula I have so far, but I am missing something or using the
wrong formula.

=SUMIF('Summary by Month'!$B$6:$B$137,$B6,INDIRECT($D$5))

Again, D5 is where I have my NAME RANGE drop down list so if they select
SUM_FEB is should show the total for February in cell D6, adding columns
D:E
from 'Sum by Month'!

Any help or thoughts is VERY much appreciated?



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
How do I enter formula sum(range+range)*0.15 sumif(range=3) tkw Excel Discussion (Misc queries) 2 October 1st 09 09:17 PM
SumIf - when I fill down the Range, Criteria & sum range changes markholt Excel Worksheet Functions 3 October 28th 08 12:37 AM
SUMIF within a range Alonso[_2_] Excel Worksheet Functions 11 September 5th 08 05:41 PM
How to use a range in SUMIF? bdddd Excel Worksheet Functions 7 February 14th 06 06:44 PM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM


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