Trying to match sort Sheet2 verse sheet1

zone709

Well-known Member
Joined
Mar 1, 2016
Messages
2,079
Office Version
  1. 365
Platform
  1. Windows
Hi i need to sort sheet2 rows by Id number in column D from Sheet1 order. So whatever order sheet1 is in by id number I need sheet2 to look the same. The reason why I cant sort sheet1 id numbers by numbers then sheet2 is because. The order that Sheet1 is in I need it in the same order on sheet2 whole row.

Sheet1

Excel 2016 (Windows) 32 bit
A
B
C
D
1
ORG UNITLAST NAMEFIRST NAMEID
2
39
3
149
4
26
5
10
6
30
7
Frank29
8
frank29
9
kenny62
10
6
11
6
12
john7
13
john7
14
11
15
11
16
1
17
1
18
14
19
14
20
4
21
4
22
3
23
3
Sheet: Sheet1


Now need sheet2 to look the same. Which you can see its not. If the numbers are the same its fine as long as it sorts the whole row by number to be exact from sheet1. Any help would be great.

Sheet2

Excel 2016 (Windows) 32 bit
A
B
C
D
1
ORG UNITLAST NAMEFIRST NAMEID
2
frank
29​
3
frank
29​
4
kenny
62​
5
john
7​
6
john
7​
7
6​
8
6​
9
11​
10
11​
11
14​
12
14​
13
1​
14
1​
15
3​
16
3​
17
4​
18
4​
19
30​
20
10​
21
39​
22
149​
23
26​
Sheet: Sheet2
 
Last edited:

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
You could put this in col E of sheet 2
=MATCH(D2,sheet1!D$2:D$23,0)

and then sort on that
 
Upvote 0
You could put this in col E of sheet 2
=MATCH(D2,sheet1!D$2:D$23,0)

and then sort on that

Thanks for the reply. Left my computer at the moment will try this later.
 
Upvote 0
Hi so this didn't work it was pulling from a different line and not returning the right numbers. I am trying to sort the whole row on sheet2 to match sheet1 the number order that sheet1 has in Column D. The match formula pulls in some random numbers.
 
Upvote 0
Using your data I get


Excel 2013/2016
ABCDE
1ORG UNITLAST NAMEFIRST NAMEID
2frank296
3frank296
4kenny628
5john711
6john711
769
869
91113
101113
111417
121417
13115
14115
15321
16321
17419
18419
19305
20104
21391
221492
23263
Sheet2
Cell Formulas
RangeFormula
E2=MATCH(D2,Sheet1!D$2:D$23,0)


Which when sorted becomes


Excel 2013/2016
ABCDE
1ORG UNITLAST NAMEFIRST NAMEID
2391
31492
4263
5104
6305
7frank296
8frank296
9kenny628
1069
1169
12john711
13john711
141113
151113
16115
17115
181417
191417
20419
21419
22321
23321
Sheet2
 
Upvote 0
ok i got it. I wasnt understanding how it was working. Thats my fault now i understand and get it. I build this into a small macro, but i have to fix something now so it can work off of this. May start a new post or come back thanks alot
 
Upvote 0
Glad it's working & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,970
Messages
6,122,514
Members
449,088
Latest member
RandomExceller01

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