PC Review


Reply
Thread Tools Rate Thread

auto change sumproduct range

 
 
acyakos
Guest
Posts: n/a
 
      17th Jun 2008
I have the following formula:

SUMPRODUCT(--('IS Data'!$D$3:$D$11072=$A6)*('IS
Data'!$B$3:$B$11072=$C$3),(Act1))


Where I am summing all of the data in the named range "Act1" on the IS Data
tab which meets the criteria that the data in column D = A6 (or 1) and the
data in column B = C3, or "Oklahoma". How do I make the reference to the
name range "Act1" dynamic; i.e. I want to be able to use a dropdown menu or
something like that to change Act1 to Act2, Act 3, Act4, etc. and have the
formula return the correct sum. I have tried referencing a dropdown menu
with these values and I get a #VALUE error.

Any ideas?

Thanks!

 
Reply With Quote
 
 
 
 
T. Valko
Guest
Posts: n/a
 
      17th Jun 2008
Try this:

Assume your drop down list is in cell A1.

SUMPRODUCT(--('IS Data'!$D$3:$D$11072=$A6)*('IS
Data'!$B$3:$B$11072=$C$3),INDIRECT(A1))

However, if your named ranges are dynamic themselves, this may not work.


--
Biff
Microsoft Excel MVP


"acyakos" <(E-Mail Removed)> wrote in message
news:BF5630E5-5D3E-406E-862E-(E-Mail Removed)...
>I have the following formula:
>
> SUMPRODUCT(--('IS Data'!$D$3:$D$11072=$A6)*('IS
> Data'!$B$3:$B$11072=$C$3),(Act1))
>
>
> Where I am summing all of the data in the named range "Act1" on the IS
> Data
> tab which meets the criteria that the data in column D = A6 (or 1) and the
> data in column B = C3, or "Oklahoma". How do I make the reference to the
> name range "Act1" dynamic; i.e. I want to be able to use a dropdown menu
> or
> something like that to change Act1 to Act2, Act 3, Act4, etc. and have the
> formula return the correct sum. I have tried referencing a dropdown menu
> with these values and I get a #VALUE error.
>
> Any ideas?
>
> Thanks!
>



 
Reply With Quote
 
acyakos
Guest
Posts: n/a
 
      17th Jun 2008
Perfect! That worked like a charm. Thank you so much!

"T. Valko" wrote:

> Try this:
>
> Assume your drop down list is in cell A1.
>
> SUMPRODUCT(--('IS Data'!$D$3:$D$11072=$A6)*('IS
> Data'!$B$3:$B$11072=$C$3),INDIRECT(A1))
>
> However, if your named ranges are dynamic themselves, this may not work.
>
>
> --
> Biff
> Microsoft Excel MVP
>
>
> "acyakos" <(E-Mail Removed)> wrote in message
> news:BF5630E5-5D3E-406E-862E-(E-Mail Removed)...
> >I have the following formula:
> >
> > SUMPRODUCT(--('IS Data'!$D$3:$D$11072=$A6)*('IS
> > Data'!$B$3:$B$11072=$C$3),(Act1))
> >
> >
> > Where I am summing all of the data in the named range "Act1" on the IS
> > Data
> > tab which meets the criteria that the data in column D = A6 (or 1) and the
> > data in column B = C3, or "Oklahoma". How do I make the reference to the
> > name range "Act1" dynamic; i.e. I want to be able to use a dropdown menu
> > or
> > something like that to change Act1 to Act2, Act 3, Act4, etc. and have the
> > formula return the correct sum. I have tried referencing a dropdown menu
> > with these values and I get a #VALUE error.
> >
> > Any ideas?
> >
> > Thanks!
> >

>
>
>

 
Reply With Quote
 
T. Valko
Guest
Posts: n/a
 
      17th Jun 2008
You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"acyakos" <(E-Mail Removed)> wrote in message
news:8405BC64-CB1D-47B4-B52C-(E-Mail Removed)...
> Perfect! That worked like a charm. Thank you so much!
>
> "T. Valko" wrote:
>
>> Try this:
>>
>> Assume your drop down list is in cell A1.
>>
>> SUMPRODUCT(--('IS Data'!$D$3:$D$11072=$A6)*('IS
>> Data'!$B$3:$B$11072=$C$3),INDIRECT(A1))
>>
>> However, if your named ranges are dynamic themselves, this may not work.
>>
>>
>> --
>> Biff
>> Microsoft Excel MVP
>>
>>
>> "acyakos" <(E-Mail Removed)> wrote in message
>> news:BF5630E5-5D3E-406E-862E-(E-Mail Removed)...
>> >I have the following formula:
>> >
>> > SUMPRODUCT(--('IS Data'!$D$3:$D$11072=$A6)*('IS
>> > Data'!$B$3:$B$11072=$C$3),(Act1))
>> >
>> >
>> > Where I am summing all of the data in the named range "Act1" on the IS
>> > Data
>> > tab which meets the criteria that the data in column D = A6 (or 1) and
>> > the
>> > data in column B = C3, or "Oklahoma". How do I make the reference to
>> > the
>> > name range "Act1" dynamic; i.e. I want to be able to use a dropdown
>> > menu
>> > or
>> > something like that to change Act1 to Act2, Act 3, Act4, etc. and have
>> > the
>> > formula return the correct sum. I have tried referencing a dropdown
>> > menu
>> > with these values and I get a #VALUE error.
>> >
>> > Any ideas?
>> >
>> > Thanks!
>> >

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sumproduct of date range roy.okinawa Microsoft Excel Worksheet Functions 9 24th Jul 2009 07:43 PM
SUMPRODUCT in a range FirstVette52 Microsoft Excel Worksheet Functions 2 18th Dec 2008 11:22 PM
SUMPRODUCT between date range =?Utf-8?B?Q2VsaWE=?= Microsoft Excel New Users 1 9th Nov 2006 06:39 PM
Sumproduct with #N/A in range =?Utf-8?B?RGVlZHM=?= Microsoft Excel Worksheet Functions 7 18th May 2006 06:01 PM
sumproduct in a range =?Utf-8?B?VGF0?= Microsoft Excel Worksheet Functions 9 12th Jun 2005 08:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:01 PM.