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
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
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
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,214,605
Messages
6,120,476
Members
448,967
Latest member
visheshkotha

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