Index with small limitations

mbarbera83

New Member
Joined
Feb 17, 2015
Messages
27
Hi all.
I am trying to create a list of products by brand, using the Index function with Small, but it seems that my data base is too big for the memory. when i index only to row 21, then it works, but when i take it to row 1500 which I need, i get an error

=IF(ROWS(E$3:E3)>E$2,"",INDEX($A$2:$A$21,SMALL(IF($B$2:$B$21=E$1,ROW($B$2:$B$21)-ROW($B$2)+1),ROWS(E$3:E3))))

is there any way to get around this?


<tbody>
</tbody>


ProductBrandBrand1Brand2
product1Brand1=count Brand1 in column B=count Brand2 in column
product2Brand2FUNCTION GOES HERE
product3Brand1

<tbody>
</tbody>
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Why don't you use filter or advance filter
those are two great tools
 
Upvote 0
Row\Col
A​
B​
C​
D​
E​
F​
1​
ProductBrandBrand1Brand2
2​
product1Brand1
2
1
3​
product2Brand2product1product2
4​
product3Brand1product3
5​

E2, just enter and copy across:
Rich (BB code):

=COUNTIF($B$2:$B$4,E$1)

E3, control+shift+enter, not just enter, copy acsoss, and down:
Rich (BB code):

=IF(ROWS(E$3:E3)<=E$2,INDEX($A$2:$A$4,SMALL(IF($B$2:$B$4=E$1,
   ROW($B$2:$B$4)-ROW($B$2)+1),ROWS(E$3:E3))),"")
 
Upvote 0
I am aware of the Array cntrl shift enter function, the problem is that as soon as the data in column A goes over 22 lines, (my data is 1400 lines long) the array does not work
 
Upvote 0
apologies - i did not realize that there was a change in the formula. but even with your formula - as soon as i extend the array further down the column, then i get #VALUE
 
Upvote 0

Forum statistics

Threads
1,214,893
Messages
6,122,118
Members
449,066
Latest member
Andyg666

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