Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 187
Default when to use array formulas

The following formula works if it is entered as an array formula, but
it also works if it is entered conventionally:

=SUMPRODUCT(--(U$1:U$382=A390),--(ISBLANK(AL$1:AL$382)))

However, this formula ONLY works if it is entered as an array formula:

=SUM(--ISBLANK(AL2:AL382))

Presumably there is some logic to this distinction.

What am I missing here?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7,247
Default when to use array formulas

Basically, you use an array formula when you want a function that normally
returns only a single value to return an array of values. In the example you
cite, SUMPRODUCT works without being entered as an array formula because
SUMPRODUCT is designed to work with arrays already. There is no reason to
force it to do so with CTRL+SHIFT+ENTER. However, the ISBLANK function
normally returns only a single value. Thus, you must use CTRL+SHIFT+ENTER to
tell Excel to return an array of values from ISBLANK. When array entered,
ISBLANK returns an array of results rather than a single result.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting
www.cpearson.com
(email on the web site)


"Dave F" wrote in message
ups.com...
The following formula works if it is entered as an array formula, but
it also works if it is entered conventionally:

=SUMPRODUCT(--(U$1:U$382=A390),--(ISBLANK(AL$1:AL$382)))

However, this formula ONLY works if it is entered as an array formula:

=SUM(--ISBLANK(AL2:AL382))

Presumably there is some logic to this distinction.

What am I missing here?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 187
Default when to use array formulas

That's very helpful, thanks.

On Jul 5, 9:05 am, "Chip Pearson" wrote:
Basically, you use an array formula when you want a function that normally
returns only a single value to return an array of values. In the example you
cite, SUMPRODUCT works without being entered as an array formula because
SUMPRODUCT is designed to work with arrays already. There is no reason to
force it to do so with CTRL+SHIFT+ENTER. However, the ISBLANK function
normally returns only a single value. Thus, you must use CTRL+SHIFT+ENTER to
tell Excel to return an array of values from ISBLANK. When array entered,
ISBLANK returns an array of results rather than a single result.

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consultingwww.cpearson.com
(email on the web site)

"Dave F" wrote in message

ups.com...



The following formula works if it is entered as an array formula, but
it also works if it is entered conventionally:


=SUMPRODUCT(--(U$1:U$382=A390),--(ISBLANK(AL$1:AL$382)))


However, this formula ONLY works if it is entered as an array formula:


=SUM(--ISBLANK(AL2:AL382))


Presumably there is some logic to this distinction.


What am I missing here?- Hide quoted text -


- Show quoted text -



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
Help With Array Formulas... Carl Excel Discussion (Misc queries) 6 February 12th 07 07:51 PM
Array Formulas Peledon Excel Worksheet Functions 2 February 9th 07 12:21 PM
array formulas Nader Excel Worksheet Functions 16 November 14th 06 03:32 PM
Array formulas Brad Excel Worksheet Functions 2 December 31st 05 02:12 AM
array formulas johnT Excel Worksheet Functions 14 March 29th 05 08:35 AM


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