Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default index function without row & col (comma only)

Can someone explain what it does - index(array,)

e.g.
INDEX(($A$2:$A$100=L1)*($B$2:$B$100=M1),)

Thanks.
--
Barry
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default index function without row & col (comma only)

INDEX(($A$2:$A$100=L1)*($B$2:$B$100=M1),)
Can someone explain what it does


It returns a vertical array of 1s and 0s.

Let's assume L1 = x and M1 = y.

......A.....B
2...x......y
3...z......z
4...x.....y
5...x.....x

(A2=L1)*(B2=M1)
(A3=L1)*(B3=M1)
(A4=L1)*(B4=M1)
(A5=L1)*(B5=M1)

TRUE*TRUE = 1
FALSE*FALSE = 0
TRUE*TRUE = 1
FALSE*FALSE = 0

INDEX({1;0;1;0},)

The comma means the row_num argument has been omitted so it defaults to 0
which means to return the entire array. Why the formula is written that way
depends on how it's being used.

--
Biff
Microsoft Excel MVP


"loba" wrote in message
...
Can someone explain what it does - index(array,)

e.g.
INDEX(($A$2:$A$100=L1)*($B$2:$B$100=M1),)

Thanks.
--
Barry



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default index function without row & col (comma only)

TRUE*TRUE = 1
FALSE*FALSE = 0
TRUE*TRUE = 1
FALSE*FALSE = 0


Actually, the array would be:

TRUE*TRUE = 1
FALSE*FALSE = 0
TRUE*TRUE = 1
TRUE*FALSE = 0

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
INDEX(($A$2:$A$100=L1)*($B$2:$B$100=M1),)
Can someone explain what it does


It returns a vertical array of 1s and 0s.

Let's assume L1 = x and M1 = y.

.....A.....B
2...x......y
3...z......z
4...x.....y
5...x.....x

(A2=L1)*(B2=M1)
(A3=L1)*(B3=M1)
(A4=L1)*(B4=M1)
(A5=L1)*(B5=M1)

TRUE*TRUE = 1
FALSE*FALSE = 0
TRUE*TRUE = 1
FALSE*FALSE = 0

INDEX({1;0;1;0},)

The comma means the row_num argument has been omitted so it defaults to 0
which means to return the entire array. Why the formula is written that
way depends on how it's being used.

--
Biff
Microsoft Excel MVP


"loba" wrote in message
...
Can someone explain what it does - index(array,)

e.g.
INDEX(($A$2:$A$100=L1)*($B$2:$B$100=M1),)

Thanks.
--
Barry





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
Comma in Function Argument name treated as separator Error trying to sort in a Macro Excel Worksheet Functions 1 September 25th 08 06:40 PM
Extract the text between last comma and last but one comma. Sreedevi Excel Worksheet Functions 2 March 5th 08 11:12 PM
Comma Delimited-need comma at beginnng & end Tattoo Excel Discussion (Misc queries) 2 December 11th 07 04:39 PM
Extra comma at the end of a function SYerby Excel Discussion (Misc queries) 3 July 14th 06 04:53 PM
Emulate Index/Match combo function w/ VBA custom function Spencer Hutton Excel Worksheet Functions 2 May 2nd 05 05:26 PM


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