LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Ola
 
Posts: n/a
Default Array discoveries

I thought I'd share a few discoveries.
I've just started to learn about Array formulas.

Sumproduct rule:
=SUMPRODUCT(--MID("123",{1,2,3},1),--ISNUMBER({1,2,3})) -- 6
=SUMPRODUCT(MID("123",{1,2,3},1),ISNUMBER({1,2,3}) ) -- 0
=SUM(MID("123",{1,2,3},1)*ISNUMBER({1,2,3})) -- 6
="1"*True -- 1

Numerical arrays treated as text:
=SUM(--ISERROR(FIND("2";ROW(2:5)))) -- 3
=SUM(--ISERROR(FIND("2";COLUMN(B:E)))) -- 3

Text array
=SUM(--ISERROR(FIND("B";CHAR(COLUMN(B:E)+64)))) -- 3

A good tool to see what Excel is doing:
Mark a piece in a formula at the Function bar and press F9. Esc or Enter

Ola

 
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
Where is the bug in my array? Gail Gurman Excel Discussion (Misc queries) 1 January 25th 05 12:36 AM
Array Manipulation [email protected] Excel Worksheet Functions 4 December 25th 04 09:15 AM
Array Manipulation [email protected] Excel Worksheet Functions 0 December 22nd 04 09:33 PM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM
VBA Import of text file & Array parsing of that data Dennis Excel Discussion (Misc queries) 4 November 28th 04 10:20 PM


All times are GMT +1. The time now is 04:05 AM.

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"