Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default How to determine the value?

There are a list of value under column A & B
236 [A1] 1 [B1]
242 [A2] 5 [B2]
236 [A3] 1 [B3]
236 [A4] 5 [B3]

I would like to sort the list into column C & D based the the maximum value
of B column, and
236 [C1] 5 [D1]
242 [C2] 5 [D2]
236 [C3] 1 [D3]
236 [C4] 1 [D3]

Firstly, sorting the B column in descending order and then sorting the A
column based on B column order ascending order. I prefer to use Excel coding
rather than Filter function.

Does anyone have any suggestions?
Thank for any suggestions?
Eric
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default How to determine the value?

One play ..

Presuming you mean to autosort cols A and B by col B, descending
and that col B will house only numbers

In C1:
=IF(B1="","",B1+ROW()/10^10)

In D1:
=IF(ROW()COUNT($C:$C),"",INDEX(A:A,MATCH(LARGE($C :$C,ROW()),$C:$C,0)))
Copy D1 to E1. Select C1:E1, copy down to cover the max expected extent of
source data. Hide away col C. Cols D and E will return the required results.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Eric" wrote:
There are a list of value under column A & B
236 [A1] 1 [B1]
242 [A2] 5 [B2]
236 [A3] 1 [B3]
236 [A4] 5 [B3]

I would like to sort the list into column C & D based the the maximum value
of B column, and
236 [C1] 5 [D1]
242 [C2] 5 [D2]
236 [C3] 1 [D3]
236 [C4] 1 [D3]

Firstly, sorting the B column in descending order and then sorting the A
column based on B column order ascending order. I prefer to use Excel coding
rather than Filter function.

Does anyone have any suggestions?
Thank for any suggestions?
Eric

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
How to determine the value from a list? Eric Excel Discussion (Misc queries) 6 May 22nd 07 06:51 PM
How to determine the value? Eric Excel Discussion (Misc queries) 1 February 13th 07 04:20 AM
How to determine the value? Eric Excel Worksheet Functions 1 February 13th 07 04:17 AM
How to determine the value? Eric Excel Discussion (Misc queries) 0 February 13th 07 03:26 AM
How to Determine 1st, 2nd & 3rd for a PWD Pete n PWD Land Excel Discussion (Misc queries) 3 February 17th 05 09:25 PM


All times are GMT +1. The time now is 06:36 AM.

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"