Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I am trying to get an array formula to sum up a set of terms.
=OFFSET(cll,0,1)+OFFSET(cll,0,2)+OFFSET(cll,0,3) where cll is a Named Range =SUM(OFFSET(cll,0,{1,2,3})) does not work -- Gary''s Student - gsnu200787 |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
This seems ok, normal Enter:
=SUM(N(OFFSET(cll,0,{1,2,3}))) -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "Gary''s Student" wrote: I am trying to get an array formula to sum up a set of terms. =OFFSET(cll,0,1)+OFFSET(cll,0,2)+OFFSET(cll,0,3) where cll is a Named Range =SUM(OFFSET(cll,0,{1,2,3})) does not work -- Gary''s Student - gsnu200787 |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
What's cll, a single column?
Try =SUM(OFFSET(cll,0,1,,3)) "Gary''s Student" wrote: I am trying to get an array formula to sum up a set of terms. =OFFSET(cll,0,1)+OFFSET(cll,0,2)+OFFSET(cll,0,3) where cll is a Named Range =SUM(OFFSET(cll,0,{1,2,3})) does not work -- Gary''s Student - gsnu200787 |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks - works just great - why is N() necessary??
-- Gary''s Student - gsnu2007xx "Max" wrote: This seems ok, normal Enter: =SUM(N(OFFSET(cll,0,{1,2,3}))) -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "Gary''s Student" wrote: I am trying to get an array formula to sum up a set of terms. =OFFSET(cll,0,1)+OFFSET(cll,0,2)+OFFSET(cll,0,3) where cll is a Named Range =SUM(OFFSET(cll,0,{1,2,3})) does not work -- Gary''s Student - gsnu200787 |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thank you - very neat.
-- Gary''s Student - gsnu2007xx "daddylonglegs" wrote: What's cll, a single column? Try =SUM(OFFSET(cll,0,1,,3)) "Gary''s Student" wrote: I am trying to get an array formula to sum up a set of terms. =OFFSET(cll,0,1)+OFFSET(cll,0,2)+OFFSET(cll,0,3) where cll is a Named Range =SUM(OFFSET(cll,0,{1,2,3})) does not work -- Gary''s Student - gsnu200787 |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
.. why is N() necessary??
Perhaps this is best explained by quoting from a past posting by Harlan: ".. OFFSET only returns Range references. OFFSET called with array 1st, 2nd or 3rd arguments returns something what seems to be an array of range references. Excel can't deal with such beasts when used as arithmetic operands or arguments to most functions. Fortunately, N() is one of the exceptions, and it effectively converts arrays of range references to arrays of numbers (note: it converts entries that aren't numeric into numeric zero). The T() function does the same for strings ... " An interesting obs about using the earlier struct is that it allows the omission of an intervening col in the sum, eg: =SUM(N(OFFSET(cll,0,{1,3}))) will omit the 2nd col's values in the sum, This is probably not possible with using the width param (daddy's suggestion) -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "Gary''s Student" wrote in message ... Thanks - works just great - why is N() necessary?? -- Gary''s Student - gsnu2007xx |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thank you.
-- Gary''s Student - gsnu200787 "Max" wrote: .. why is N() necessary?? Perhaps this is best explained by quoting from a past posting by Harlan: ".. OFFSET only returns Range references. OFFSET called with array 1st, 2nd or 3rd arguments returns something what seems to be an array of range references. Excel can't deal with such beasts when used as arithmetic operands or arguments to most functions. Fortunately, N() is one of the exceptions, and it effectively converts arrays of range references to arrays of numbers (note: it converts entries that aren't numeric into numeric zero). The T() function does the same for strings ... " An interesting obs about using the earlier struct is that it allows the omission of an intervening col in the sum, eg: =SUM(N(OFFSET(cll,0,{1,3}))) will omit the 2nd col's values in the sum, This is probably not possible with using the width param (daddy's suggestion) -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "Gary''s Student" wrote in message ... Thanks - works just great - why is N() necessary?? -- Gary''s Student - gsnu2007xx |
#8
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Welcome, GS
-- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "Gary''s Student" wrote in message ... Thank you. -- Gary''s Student - gsnu200787 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Array formula | Excel Discussion (Misc queries) | |||
3 Array Formula | Excel Discussion (Misc queries) | |||
Array Formula | Excel Discussion (Misc queries) | |||
meaning of : IF(Switch; Average(array A, array B); array A) | Excel Worksheet Functions | |||
Array Formula - using LEFT("text",4) in formula | Excel Worksheet Functions |