Index Array Issues - PLEASE HELP!

UrbanJungleFashion

New Member
Joined
Oct 14, 2014
Messages
17
Hello All.

I can't for the life of me figure out how to do an index array. I have been all over YouTube and Chandoo and I can't figure it out and I have a very simple one.

In column B3 I want to enter the Region name in and in rows B8-B22 list the stores that fall under that region.

I tried to use the formula:
=INDEX($D$2:$D$27,SMALL(IF($E$2:$E$27=$B$3,ROW($E$2:$E$27)-ROW($E$2)+1),ROWS($B$8:B8)),"")

But that's not working correctly.

Can someone tell me what the correct formula should be and where I'm going wrong?

Example:
A


BC
Store
D
Region
0004212
2120008212
0012212
0016212
0020212
STORES0024212
1#VALUE!0003445
2#NUM!0007445
3#NUM!0011445
4#NUM!0015445
5#NUM!0019445
6#NUM!0023445
7#NUM!0002451
8#NUM!0006451
9#NUM!0010451
10#NUM!0014451
11#NUM!0018451
12#NUM!0022451
13#NUM!0026451
14#NUM!0001551
15#NUM!0005551
0009551
0013551
0017551
0021551
0025551

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

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Try:
Also, make sure you enter with CTRL-SHIFT-ENTER

Code:
=IFERROR(INDEX($D$2:$D$27,SMALL(IF($E$2:$E$27=$B$3,ROW($E$2:$E$27)-ROW($E$2)+1),ROWS($B$8:B8))),"")
 
Upvote 0
It's working for me. See below.
Make sure you enter the formula with CTRL-SHIFT-ENTER (command return on MAC). If done right Excel will place {} around the formula.
If you have just pressed ENTER then press F2 to edit and then CTRL-SHIFT-ENTER.
Excel Workbook
ABCDE
1StoreRegion
24212
32128212
412212
516212
620212
7STORES24212
8143445
9287445
1031211445
1141615445
1252019445
1362423445
1472451
1586451
16910451
171014451
181118451
191222451
201326451
21141551
22155551
239551
2413551
2517551
2621551
2725551
Sheet
 
Upvote 0
Thank you so much for this! I figured out was I was going wrong. I had half the numbers as text and the other half as numbers. So I formatted all the data to read as numbers and it worked.

Thank you so much for the formula!!!


It's working for me. See below.
Make sure you enter the formula with CTRL-SHIFT-ENTER (command return on MAC). If done right Excel will place {} around the formula.
If you have just pressed ENTER then press F2 to edit and then CTRL-SHIFT-ENTER.

*ABCDE
1***StoreRegion
2***4212
3*212*8212
4***12212
5***16212
6***20212
7*STORES*24212
814*3445
928*7445
10312*11445
11416*15445
12520*19445
13624*23445
147**2451
158**6451
169**10451
1710**14451
1811**18451
1912**22451
2013**26451
2114**1551
2215**5551
23***9551
24***13551
25***17551
26***21551
27***25551

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:64px;"><col style="width:67px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
B8{=IFERROR(INDEX($D$2:$D$27,SMALL(IF($E$2:$E$27=$B$3,ROW($E$2:$E$27)-ROW($E$2)+1),ROWS($B$8:B8))),"")}

<tbody>
</tbody>
Formula Array:
Produce enclosing
{ } by entering
formula with CTRL+SHIFT+ENTER!

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,895
Members
449,097
Latest member
dbomb1414

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