#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default Array Formulas

How do you know when to use ctrl+shift+enter to create an array formula vs
just hitting enter?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Array Formulas

It mostly comes with experience.

See if this helps:

http://www.cpearson.com/Excel/ArrayFormulas.aspx

--
Biff
Microsoft Excel MVP


"Jon Dow" wrote in message
...
How do you know when to use ctrl+shift+enter to create an array formula vs
just hitting enter?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Array Formulas

An Array formula always need Ctrl+shift+enter.
So what are array formula?
a) if the formula returns more than one value (formula using functions like
LINEST, FREQUENCY, etc come to mine) must be entered as an array.
and
b) when you use an 'ordinary function but add something that makes an array
of data. For example =AVERAGE(IF(A1:A50,A1:A5,FALSE)). The IF generates an
array of five values. If you enter this with just Enter you get a #Value!
error.

Note that using Ctrl+shift+enter when a simple Enter is needed has not
dreadful effect. So the formula SUM(A1:A10) gives the same answer with
either form of commitment.

Chip has lots on array formulas at
http://www.cpearson.com/excel/ArrayFormulas.aspx
best wishes

--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Jon Dow" wrote in message
...
How do you know when to use ctrl+shift+enter to create an array formula vs
just hitting enter?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default Array Formulas

"Bernard Liengme" wrote...
....
So what are array formula?
a) if the formula returns more than one value (formula using functions like
LINEST, FREQUENCY, etc come to mine) must be entered as an array.


Any formula that would return multiple values needs to be entered INTO
A MULTIPLE CELL RANGE as an array formula, e.g.,
={0,1,2,3,4,5}*{0;1;2;3;4;5}.

b) when you use an 'ordinary function but add something that makes an array
of data. For example =AVERAGE(IF(A1:A50,A1:A5,FALSE)). The IF generates an
array of five values. If you enter this with just Enter you get a #Value!
error.

....

OK, but try

=AVERAGE(IF({0;1;2;3;4;5}2,{0;1;2;3;4;5}))

It's A LOT MORE SUBTLE AND COMPLICATED than you've put it.

A better but still incomplete rule of thumb is that most (but not all)
formulas that use single are multiple cell ranges where single cells
or values would normally be used require array entry, but formulas
using array constants as the only multiple value arguments usually
don't require array entry in formulas that would always return single
values, e.g., AVERAGE, SUM, MAX, MIN.
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 formulas Ray S. Excel Discussion (Misc queries) 0 August 8th 08 08:15 PM
Formulas with-an an array Dave Excel Worksheet Functions 2 December 12th 07 03:24 PM
Array Formulas Peledon Excel Worksheet Functions 4 February 9th 07 12:55 PM
array formulas R.VENKATARAMAN Excel Worksheet Functions 7 June 16th 05 10:25 PM
Array formulas SimonT Excel Worksheet Functions 1 February 10th 05 06:54 AM


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