An Excel Formula know how to re-arrange the data

  • Thread starter wilchong via OfficeKB.com
  • Start date
W

wilchong via OfficeKB.com

The 2 data sets are assumed running in A3 and in B3 down, viz.:
In A3 down is: A, B, C, D and E
In B3 down is: 35, 45, 13, 8 and 3.

The result which I want is to list the data E, D, C, A and B from the cell C3
to C7. I want a formula which know how to rank the data in which the Excel
formula know B has the highest value of 45 and E has the lowest value of 3.

Many thanks,

Wilchong
 
T

T. Valko

Try this entered in C3 and copied down:

=INDEX(A$3:A$7,MATCH(SMALL(B$3:B$7,ROWS(C$3:C3)),B$3:B$7,0))

If there are duplicate numbers then a different approach will be needed.
 
W

wilchong via OfficeKB.com

Dear T. Valko,
Many thanks for your suggested formular!

Really appreciate it!
Wilchong



T. Valko said:
Try this entered in C3 and copied down:

=INDEX(A$3:A$7,MATCH(SMALL(B$3:B$7,ROWS(C$3:C3)),B$3:B$7,0))

If there are duplicate numbers then a different approach will be needed.
The 2 data sets are assumed running in A3 and in B3 down, viz.:
In A3 down is: A, B, C, D and E
[quoted text clipped - 10 lines]
 
W

wilchong via OfficeKB.com

Dear T. Valko
I have use your suggested formula and it has proven very efficient if there
is no repeat value in B col. May I ask how to revise your suggested formula
if A and B have the same value of 45?

Many thanks,
Wilson





T. Valko said:
Try this entered in C3 and copied down:

=INDEX(A$3:A$7,MATCH(SMALL(B$3:B$7,ROWS(C$3:C3)),B$3:B$7,0))

If there are duplicate numbers then a different approach will be needed.
The 2 data sets are assumed running in A3 and in B3 down, viz.:
In A3 down is: A, B, C, D and E
[quoted text clipped - 10 lines]
 
T

T. Valko

You're welcome!

--
Biff
Microsoft Excel MVP


wilchong via OfficeKB.com said:
Dear T. Valko,
Many thanks for your suggested formular!

Really appreciate it!
Wilchong



T. Valko said:
Try this entered in C3 and copied down:

=INDEX(A$3:A$7,MATCH(SMALL(B$3:B$7,ROWS(C$3:C3)),B$3:B$7,0))

If there are duplicate numbers then a different approach will be needed.
The 2 data sets are assumed running in A3 and in B3 down, viz.:
In A3 down is: A, B, C, D and E
[quoted text clipped - 10 lines]
 
T

T. Valko

Try this array formula** :

=INDEX(A$3:A$7,MATCH(SMALL(B$3:B$7+ROW(B$3:B$7)/10^10,ROWS(C$3:C3)),B$3:B$7+ROW(B$3:B$7)/10^10,0))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


wilchong via OfficeKB.com said:
Dear T. Valko
I have use your suggested formula and it has proven very efficient if
there
is no repeat value in B col. May I ask how to revise your suggested
formula
if A and B have the same value of 45?

Many thanks,
Wilson





T. Valko said:
Try this entered in C3 and copied down:

=INDEX(A$3:A$7,MATCH(SMALL(B$3:B$7,ROWS(C$3:C3)),B$3:B$7,0))

If there are duplicate numbers then a different approach will be needed.
The 2 data sets are assumed running in A3 and in B3 down, viz.:
In A3 down is: A, B, C, D and E
[quoted text clipped - 10 lines]
 
W

wilchong via OfficeKB.com

Dear T.Valko,
Many thanks for your advice!

Wilchong



T. Valko said:
Try this array formula** :

=INDEX(A$3:A$7,MATCH(SMALL(B$3:B$7+ROW(B$3:B$7)/10^10,ROWS(C$3:C3)),B$3:B$7+ROW(B$3:B$7)/10^10,0))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)
Dear T. Valko
I have use your suggested formula and it has proven very efficient if
[quoted text clipped - 17 lines]
 
T

T. Valko

You're welcome!

--
Biff
Microsoft Excel MVP


wilchong via OfficeKB.com said:
Dear T.Valko,
Many thanks for your advice!

Wilchong



T. Valko said:
Try this array formula** :

=INDEX(A$3:A$7,MATCH(SMALL(B$3:B$7+ROW(B$3:B$7)/10^10,ROWS(C$3:C3)),B$3:B$7+ROW(B$3:B$7)/10^10,0))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)
Dear T. Valko
I have use your suggested formula and it has proven very efficient if
[quoted text clipped - 17 lines]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top