How to implement mySum(Sheet1:Sheet3!B1)?
If you had called it a reference, not a range, I'd have no problem.
But excel can handle those 3 dimensional references nicely. I think you'll have
much more irritation in your UDF.
On 12/27/2010 15:27, joeu2004 wrote:
On Dec 27, 9:51 am, Dave wrote:
Yes. That's what I'm saying.
Thanks for the clarification.
A range belongs to a single sheet -- excel doesn't have 3D ranges.
Perhaps I'm using the wrong term.
SUM(Sheet1:Sheet3!A1) does work in XL2003 and later, although I have
found that its interpretation is error-prone.
For example, if our worksheets have are Sheet100, Sheet99,..., Sheet1,
Sheet2, Sheet3 in tab order and we write SUM(Sheet100:Sheet1!A1)[*],
XL2003 fails to include Sheet2 and Sheet3 presumably because Sheet1 is
encountered first.
-----
Endnotes
[*] If we enter SUM(Sheet1:Sheet100!A1) with the tab order indicated,
XL2003 changes it to SUM(Sheet100:Sheet1!A1).
--
Dave Peterson
|