LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default How to make array of noncontig cells for SUMPRODUCT?

I think I am making this more difficult than necessary ....

I want to do SUMPRODUCT where at least one array must
be composed of a "range" of non-contiguous cells -- namely,
one cell from each of N worksheets.

Ostensibly, I want
SUMPRODUCT(A1:Z1,ARRAY(Sheet1!A1,...,Sheet26!A1))

There is an ARRAY() function in VBA. But I do not find
any excel built-in function with the same capability. Did
I overlook it?

I created my own VBA function, myarray(). I also created
mytranspose() to handle the case when the first
SUMPRODUCT range is a column (A1:A26), not a row. It
obviates the need to enter SUMPRODUCT() as array formula.

These VBA functions are trivial to write. I cannot believe
"Bill's kids" cannot figure out how to do them as built-ins.
So I believe I "must be" overlooking the obvious.

Please help me. What simpler alternatives exist?
 
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
Return a cell value based on specific combinations of cells in an array rmcnam05 Excel Worksheet Functions 2 October 11th 05 03:28 AM
How do I convert a row of cells into a two-dimensional array? Glenn@stress Excel Worksheet Functions 7 October 10th 05 07:28 PM
Can a UDF be used on an array of cells? Paul D. Simon Excel Worksheet Functions 3 September 8th 05 06:23 PM
How do I merge cells in Excel, like just 2 cells to make one big . chattacat Excel Discussion (Misc queries) 2 January 19th 05 04:25 PM
Make pictures go behind cells. beefyme Excel Discussion (Misc queries) 2 January 14th 05 04:15 PM


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