Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default auto change sumproduct range

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!

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default auto change sumproduct range

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" wrote in message
...
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!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default auto change sumproduct range

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" wrote in message
...
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!




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default auto change sumproduct range

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"acyakos" wrote in message
...
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" wrote in message
...
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
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 sumproduct in a dynamic range? [email protected] Excel Discussion (Misc queries) 9 January 1st 08 07:03 PM
SUMPRODUCT With External Range Name? RayportingMonkey Excel Worksheet Functions 3 October 5th 07 10:35 PM
Sumproduct with #N/A in range Deeds Excel Worksheet Functions 7 May 18th 06 06:01 PM
How do I change a range name back to the underlying data range? Colin Excel Worksheet Functions 1 September 26th 05 05:55 PM
sumproduct in a range Tat Excel Worksheet Functions 9 June 12th 05 08:31 PM


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