Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 111
Default Quasi array formula

Hi Dave


"Dave" skrev i en meddelelse
...
I've played around a fair bit with array formulas and arry formulas
using SUMPRODUCT. Today I mucked about a bit with SUM wondering if I
could return an array with entering it with CTRL-Shift-Enter


I guess, you mean "without" entering??



If I enter =SUM({1;2;3;4;5;6;7;8;9;10}) the formula returns 55


Here you have entered an array as argument, so Excel works on that array.


, If I
enter =SUM((ROW(1:10)<"")*(ROW(1:10))) as a normal formula it returns
1, the first element of the array.

Yet if I highlight the =((ROW(1:10)<"")*(ROW(1:10)) part in the formula
bar it shows ({1;2;3;4;5;6;7;8;9;10}) and the Fx builder shows 55 as the
answer. Why and how does the SUM formula return 1 not 55?


Since the SUM function (in contrast to the SUMPRODUCT *function*) doesn't
expect
an array as argument, you must explicitly tell it, if you want that to be
the case (by
using <Shift<Ctrl<Enter or by using an array of constants).

--
Best Regards
Leo Heuser
MVP Excel

Followup to newsgroup only, please.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Quasi array formula

Hi Leo,

Yes, without entering as CTRL-Shift-Enter, was what I intended to write.
:)

I thought it was curious that SUM evaluates an explicit array but not an
implied one. Its also interesting that the function builder returns the
result of the implied array but the final function does not.

I guess as you say that is the design, but I feel that its inconsistent.
Back to SUMPRODUCT I go.

Cheers

Dave


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
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
Array formula SUMIF with 2D sum_range array Rich_84 Excel Worksheet Functions 3 April 3rd 09 10:46 PM
Array formula: how to join 2 ranges together to form one array? Rich_84 Excel Worksheet Functions 2 April 1st 09 06:38 PM
Find specific value in array of array formula DzednConfsd Excel Worksheet Functions 2 January 13th 09 06:19 AM
meaning of : IF(Switch; Average(array A, array B); array A) DXAT Excel Worksheet Functions 1 October 24th 06 06:11 PM
Quasi Transpose / Stacking Columns Mike Excel Worksheet Functions 10 April 26th 05 08:04 PM


All times are GMT +1. The time now is 12:42 PM.

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"