Not sure if i need macro or vlookup

dlw2671

New Member
Joined
Dec 18, 2016
Messages
2
I need to send nameS from one sheet to another and put them in numeric order. i would like to take the name that correspondes with the numbers and put them in numerical order on sheet 2

example


A1 A2
MARY 5
JOE 12
DON 3
HARRY 8


SECOND SHEET

A1
DON
MARY
HARRY

any help is appreciated thank you
 

Some videos you may like

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

dlw2671

New Member
Joined
Dec 18, 2016
Messages
2
Im sorry i dont want to sort alphabetically. i would like to put them in order according to the number in the second colum. My example was bad. On sheet 1 "A" colum is a list of names and colum "B" is a list of numbers. I would like to take the names and put them on sheet 2 in order numerically by the number that is in colum "b" in sheet 1. I can cut and paste them in order but i was hoping there was a fast way. thank you
 

James006

Well-known Member
Joined
Apr 4, 2009
Messages
3,680
Hi,

In sheet 2, you can test following formula:
Code:
=INDEX(Sheet1!$A$1:$A$5,MATCH(SMALL(Sheet1!$B$1:$B$5,ROW()),Sheet1!$B$1:$B$5,0))

HTH
 

Watch MrExcel Video

Forum statistics

Threads
1,123,398
Messages
5,601,440
Members
414,450
Latest member
Cassy_sn

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
Top