Produce a new list based on values in a range

bj6264

Board Regular
Joined
May 23, 2010
Messages
50
Hello,

I have a very long list of products and values and I need to produce another list that list products by a range of quantity. My list looks similar to this:-

Potatoes199
Peas152
Carrots1901
Cabbage576
Turnip800
Cucumber100

<colgroup><col><col></colgroup><tbody>
</tbody>

I then need to produce a list that has headers of "less than 100", "101 to 200" etc and under each header the product would appear

Less than 100100-199200-299500 - 599etc
CucumberCabbage
Peas

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>

Can I use a formula to do this? Thought of nested ifs but as my values go up to about 3000 not sure if this would fit. Think offset may work but not sure of how.

Hope this makes sense!
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
How about


Book1
ABCDEFGHIJK
1Less than 100100-199200-299300-399400-499500-599
2Potatoes199 PotatoesCabbage
3Peas152Peas
4Carrots1901
5Cabbage576
6Turnip800
7Cucumber100
Lists
Cell Formulas
RangeFormula
F2=IFERROR(INDEX($A$2:$A$100,AGGREGATE(15,6,(ROW($A$2:$A$100)-ROW($A$2)+1)/(($B$2:$B$100A1)*100)*($B$2:$B$100>=COLUMN(A1)*100-99)),ROWS(F$2:F2))),"")


Fill formula down & across
 
Upvote 0
How about

ABCDEFGHIJK
1Less than 100100-199200-299300-399400-499500-599
2Potatoes199PotatoesCabbage
3Peas152Peas
4Carrots1901
5Cabbage576
6Turnip800
7Cucumber100

<colgroup><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Lists

Worksheet Formulas
CellFormula
F2=IFERROR(INDEX($A$2:$A$100,AGGREGATE(15,6,(ROW($A$2:$A$100)-ROW($A$2)+1)/(($B$2:$B$100<COLUMN(A1)*100)*($B$2:$B$100>=COLUMN(A1)*100-99)),ROWS(F$2:F2))),"")

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>



Fill formula down & across

Thank you Fluff you're a genius! You've helped me again. Many, many thanks. Bj
 
Upvote 0
You're wlecome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,213,490
Messages
6,113,956
Members
448,535
Latest member
alrossman

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