Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default Return data sorted min to max

I have data of parts (col a) and qty (col b) and I'd like to return a list
(other place on the worksheet) to show what parts have the min all the way to
the max. I'm using SMALL to return the part quantity, but I cannot figure
how to get the part ID next to the qty.
I have
Part A 2
Part B 0
Part C 0
Part D 2
Part E 3

I cannot sort this part of the spreadsheet, but I use Small and get
0
0
2
2
3

I'd like to get
0 Part B
0 Part C
2 Part A
2 Part D
3 Part E


--
Thanx
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 265
Default Return data sorted min to max

Use AutoFilter and sort the data by Column B, in ascending order.
Alternatively, by formula, assuming that A2:B6 contains the data, try...

E2, copied down:

=SMALL($B$2:$B$6,ROWS(E$2:E2))

F2, confirmed with CONTROL+SHIFT+ENTER, and copied down:

=INDEX($A$2:$A$6,SMALL(IF($B$2:$B$6=E2,ROW($A$2:$A $6)-ROW($A$2)+1),COUNTI
F($E$2:E2,E2)))

Hope this helps!

In article ,
BCNU wrote:

I have data of parts (col a) and qty (col b) and I'd like to return a list
(other place on the worksheet) to show what parts have the min all the way to
the max. I'm using SMALL to return the part quantity, but I cannot figure
how to get the part ID next to the qty.
I have
Part A 2
Part B 0
Part C 0
Part D 2
Part E 3

I cannot sort this part of the spreadsheet, but I use Small and get
0
0
2
2
3

I'd like to get
0 Part B
0 Part C
2 Part A
2 Part D
3 Part E

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorted Data Norm[_3_] Excel Worksheet Functions 1 August 24th 08 05:34 PM
transfering data in another column entering more sorted data Kevin - Corporate Services Excel Worksheet Functions 0 August 6th 08 09:23 PM
How to keep column headings from being sorted with data? oldockbunny New Users to Excel 2 October 26th 06 07:46 PM
Trying to have data from one sheet to another sorted.... WMB Excel Discussion (Misc queries) 1 March 12th 06 12:53 PM
Print sorted data Joseph Solis Excel Discussion (Misc queries) 1 May 29th 05 12:08 PM


All times are GMT +1. The time now is 04:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"