Pulling specific info from one worksheet to another

export9

New Member
Joined
Apr 20, 2018
Messages
3
I have two worksheets.
One is old, one is new.
The new sheet needs the same info pulled in as the old sheet, but in a different order, by last name.

There are two columns of info associated with the last name, each will need pulled in separately. I have tried a couple different formula with no luck. Any ideas?
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Here's one way...

Here's my sheet "Old" with columns A to C in rows 1 to 18 containing my data:

First Name
SurnameCorporation
SusanSmithACME Widgets
BertJonesAltwood Bits
AlfCarruthersBridges Stuff
SarahPollardBlacks Things
ZoeGreenCarter PLC
VanessaAttwoodDry & Co.
HannahRossEasy Partners
JohnConnellyGreen & Son
LilySmithersHope & Sky Inc.
KeithJohnsonIndia Trading
BobGreenCarter PLC
StellaMitchellKrill Corp.
JohnTrippLily Interiors
JohnJacksonMint Trading
CharlieWhiteWhite Sky Inc.
NigelBlackWhites
ZoeZoomerZoe & Partners

<colgroup><col><col><col></colgroup><tbody>
</tbody>


On my "New" sheet I first want to figure out what the sequence (Seq.) should be alphabetically but also allowing for duplicate surnames. In E2 I enter
=COUNTIF(Old!$B$2:$B$18,"<"&Old!B2)+COUNTIF(Old!B$2:B2,Old!B2)
...and copy it down as many rows as I have data.

Now I can just INDEX into the columns I want to retrieve using the ROW()-1 (so I'm starting the formula in row 2 but want to retrieve the 1st entry) by matching the sequence number:
=INDEX(Old!$B$2:$B$18,MATCH(ROW()-1,$E$2:$E$18,0)) gets me the Surname
=INDEX(Old!$A$2:$A$18,MATCH(ROW()-1,$E$2:$E$18,0)) gets me the First Name and
=INDEX(Old!$C$2:$C$18,MATCH(ROW()-1,$E$2:$E$18,0)) gets me the Corporation

Surname
First NameCorporationSeq.
AttwoodVanessaDry & Co.13
BlackNigelWhites9
CarruthersAlfBridges Stuff3
ConnellyJohnGreen & Son11
GreenZoeCarter PLC5
GreenBobCarter PLC1
JacksonJohnMint Trading12
JohnsonKeithIndia Trading4
JonesBertAltwood Bits14
MitchellStellaKrill Corp.8
PollardSarahBlacks Things6
RossHannahEasy Partners10
SmithSusanACME Widgets15
SmithersLilyHope & Sky Inc.7
TrippJohnLily Interiors16
WhiteCharlieWhite Sky Inc.2
ZoomerZoeZoe & Partners17

<colgroup><col span="2"><col><col span="2"></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,412
Messages
6,119,369
Members
448,888
Latest member
Arle8907

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