I dont understand how this part work SMALL(IF($A$1:$A$7=$A$10;ROW($A$1:$A$7));ROW(1:1))

userwords

New Member
Joined
Aug 29, 2014
Messages
7
In =INDEX($A$1:$B$7;SMALL(IF($A$1:$A$7=$A$10;ROW($A$1:$A$7));ROW(1:1));2)

Entered as an array. From this page:

Creating a List of All Non-Blank Cells in a Column | Excel Array Formulas

A B C
123
fruitpapayapotato
vegetablecauliflowerplates
potatotable
crockerytomato#NUM!
plates#NUM!
furnituresofa#NUM!
table#NUM!
#NUM!
0#NUM!

<colgroup><col span="2"><col></colgroup><tbody>
</tbody>



I understand it gets the row number of each empty cell to put with in the index with the column number of the second column 2. But i dont understand the steps the array takes to make it.

Any explanation on your part may help me.

I dont like use functions i dont understand at all.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi.

Actually that's not a very rigorous construction at all.

Firstly, as it stands it is not flexible enough to work should your data not actually begin in row 1. Much better than:

ROW($A$1:$A$7)

is either:

ROW($A$1:$A$7)-MIN(ROW($A$1:$A$7))+1

or:

ROW($A$1:$A$7)-ROW($A$1)+1.

Secondly, the use of ROW(1:1) for the k parameter is not the best choice, since row insertions within the sheet would cause this set-up to give incorrect results. Much better is ROWS($1:1).

Regards
 
Upvote 0

Forum statistics

Threads
1,215,704
Messages
6,126,321
Members
449,308
Latest member
Ronaldj

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