CHOOSE() Question

bmwbykrydr

New Member
Joined
Dec 29, 2020
Messages
4
Office Version
  1. 2013
Platform
  1. Windows
I have a table with two columns, an index (A) and text (B). The index numbers can change.

AB
1115Apple
2143Tree
3221Apple
4244Apple
5322Carrot
6345Horse
7423Cow
8451Apple

These will not always be grouped like I show them above, they will have other text values randomly mixed in and the order can change as can the index.

I need the smallest index of all of the "Apples" in a cell, then down one the next smallest. There will be 4 or less values for Apple, never more than 4.

115
221
244
451

I can't seem to get the formula's to account for changing values in either column and always choose the lowest value, then the next lowest, etc.

Don
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Excel Formula:
=SMALL(IF($B$1:$B$8="Apple",$A$1:$A$8),ROWS($A$1:$A1))
array entered with Ctrl+Shift+Enter, then fill down another 3 cells.
 
Upvote 0
2 solutions
Map1
ABCDEFGH
1AB451451Apple
21115Apple244244Apple
32143Tree221221Apple
43221Appleno more115Apple
54244Appleno more
65322Carrotno more
76345Horseno more
87423Cowno more
98451Appleno more
10
Blad1
Cell Formulas
RangeFormula
G1:H4G1=SORT(FILTER(B2:C9,C2:C9="apple"),1,-1)
E1:E9E1=IFERROR(AGGREGATE(14,6,B2:B9/(C2:C9="apple"),ROW()),"no more")
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,957
Messages
6,122,466
Members
449,086
Latest member
kwindels

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