Finding the 6 lowest + referance to text

drag-driver

Board Regular
Joined
Feb 18, 2002
Messages
91
This is what i need to do ---- I have a row which i haved search to find the lowest numbers in. Now that i have found that number i dont want it printed in this cell i want the name of that row printed in the cell, ie the product name. i.e. what i have is a row of products with a row of numbers underneath i want the 6 products with the lowest number to be displayed on a sepearate colume, ie the most important ones.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
On 2002-03-20 07:19, drag-driver wrote:
This is what i need to do ---- I have a row which i haved search to find the lowest numbers in. Now that i have found that number i dont want it printed in this cell i want the name of that row printed in the cell, ie the product name. i.e. what i have is a row of products with a row of numbers underneath i want the 6 products with the lowest number to be displayed on a sepearate colume, ie the most important ones.

Lets say your price in in A1:A10 and product in B1:B10. I would add a column you could hide in and use the formula
=RANK(A1,$A$1:$A$10,1)+COUNTIF($A$1:A1,A1)-1
and copy it down.

Then below you could use index and match to capture your six lowest. For example, use
=INDEX($A$1:$C$10,MATCH(ROW(1:1),$C$1:$C$10,0),2)

and copy it 5 lines below.

I originally thought just a vlookup such as
=VLOOKUP(SMALL(A1:A10,1),$A$1:$B$10,2,0)

may work, but with this you would miss different products that have the same price.

good luck
 
Upvote 0
I just noticed you've already posted this identical question a bit below and have already had this type solution suggested. Just wasted my time and yours...

:mad:
This message was edited by IML on 2002-03-20 07:42
 
Upvote 0
On 2002-03-20 07:43, drag-driver wrote:
This will not work as my dat is in rows not colums any other sugestions

same formula for rows.
assumes price in A1:J1
assumes product in A2:J2
formula for a3 (copy through j3)
=RANK(A1,$A$1:$J$1,1)+COUNTIF($A$1:A1,A1)-1

assuming you copy your formulas down still.

The lowest priced would be
=INDEX($A$1:$J$3,2,MATCH(ROW(1:1),$A$3:$J$3,0))

copy down five more rows.
This message was edited by IML on 2002-03-20 08:03
 
Upvote 0

Forum statistics

Threads
1,214,416
Messages
6,119,384
Members
448,889
Latest member
TS_711

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