Array Formula explanation

Celticfc

Board Regular
Joined
Feb 28, 2016
Messages
153
I have a working array formula which pulls names of our admins fromTable1 but I would like to know how it works.

Code:
[SIZE=2]=INDEX(Table1,SMALL(IF(Table1[Job]="Admin",ROW(Table1[Name])),ROW(1:1))-1,1)[/SIZE]


I’m just trying to understand 2 sections:



1) Whenever I move Table1 (currently A1:H90), I have toplay with the “-1”, why is this? Does Excel not know where the row starts forthis table anyway? Code:
Code:
ROW(1:1))-1


2) Regardless of which table column I use for the firstrow, it seems to work. What is the purpose of this section? Do I have tospecify a column name? Can I not use Row(1:1) here either? Code:

Code:
ROW(Table1[Name]))


Thank you in advance.

 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
This formula is not robust because it uses ROW(1:1)

Try this (assumes the first formula is inserted in J2 and copied down)
=IFERROR(INDEX(Table1[Name],SMALL(IF(Table1[Job]="Admin",ROW(Table1[Name])-MIN(ROW(Table1[Name]))+1),ROWS(J$2:J2))),"")
Ctrl+Shift+Enter

M.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,097
Messages
6,123,076
Members
449,094
Latest member
mystic19

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top