Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Multiple dynamic ranges in a Sumproduct

I have been keeping track of my call log in excel. Since the nature of a
call log grows, i want to put dynmaic ranges in my formulas. I have been
using SUMPRODUCT to see how many calls have been by phone from all the other
offices.

Old
=SUMPRODUCT((MONTH(Data!$A$5:$A$683)=MONTH($A25))* (YEAR(Data!$A$5:$A$683)
=YEAR($A25))*(Data!$J$5:$J$683=J$18))

So now i have defined these ranges with
=OFFSET(Data!$J$5,0,0,COUNTA(Data!$J:$J),1)

New
=SUMPRODUCT((MONTH(Dates)=MONTH($A25))*(YEAR(Dates )=YEAR($A25))*(HelpDesk=J
$18))


This new formula works fine if i only use one dynamic range. I get a N/A
error when i add the HelpDesk range.

Another problem is when i am defining my dynamic range, i click on the
formula and the range is highlighted. When i scoll down to the bottom of my
range, there is an empty blank cell that is part of this range. Is that
giving me the error?

Thank you!

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200608/1

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Multiple dynamic ranges in a Sumproduct

Hi!

You should base all range sizes on the "key" column. For example:

.............A............B.............C
1..........X...........10............20
2..........X...........................10
3..........X...........50................
4..........X...............................

The "key" column has an entry in every cell and defines the vertical size of
the entire table.

So, if you used a dynamic range for each of those columns:

A = Rng1
B = Rng2
C = Rng3

Rng1 =OFFSET($A$1,,,COUNTA($A:$A))
Rng2 =OFFSET($B$1,,,COUNTA($A:$A))
Rng3 =OFFSET($C$1,,,COUNTA($A:$A))

If the "key" column might contain blank or empty cells it can get really
complicated!

Biff

"mmartens12 via OfficeKB.com" <u24614@uwe wrote in message
news:6425841798b31@uwe...
I have been keeping track of my call log in excel. Since the nature of a
call log grows, i want to put dynmaic ranges in my formulas. I have been
using SUMPRODUCT to see how many calls have been by phone from all the
other
offices.

Old
=SUMPRODUCT((MONTH(Data!$A$5:$A$683)=MONTH($A25))* (YEAR(Data!$A$5:$A$683)
=YEAR($A25))*(Data!$J$5:$J$683=J$18))

So now i have defined these ranges with
=OFFSET(Data!$J$5,0,0,COUNTA(Data!$J:$J),1)

New
=SUMPRODUCT((MONTH(Dates)=MONTH($A25))*(YEAR(Dates )=YEAR($A25))*(HelpDesk=J
$18))


This new formula works fine if i only use one dynamic range. I get a N/A
error when i add the HelpDesk range.

Another problem is when i am defining my dynamic range, i click on the
formula and the range is highlighted. When i scoll down to the bottom of
my
range, there is an empty blank cell that is part of this range. Is that
giving me the error?

Thank you!

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200608/1



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Multiple dynamic ranges in a Sumproduct

Brilliant!!!! Thank you! It works great!

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200608/1

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Multiple dynamic ranges in a Sumproduct

You're welcome. Thanks for the feedback!

Biff

"mmartens12 via OfficeKB.com" <u24614@uwe wrote in message
news:642f76466a892@uwe...
Brilliant!!!! Thank you! It works great!

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200608/1



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
SumProduct for multiple WORKBOOKS chanbrig Excel Worksheet Functions 10 July 7th 06 03:28 PM
Need help with sumproduct and dynamic ranges Bill_S Excel Worksheet Functions 2 March 19th 06 01:19 AM
Dynamic range names, multiple criteria, sumproduct [email protected] Excel Discussion (Misc queries) 1 September 20th 05 02:58 AM
How to Link named ranges from multiple Workbooks into a single Wo. PMAP_HELP Excel Discussion (Misc queries) 1 December 14th 04 05:51 PM
compare unique identifiers in multiple ranges bawilli_91125 Charts and Charting in Excel 1 November 30th 04 06:34 PM


All times are GMT +1. The time now is 06:08 AM.

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"