Lowggy

New Member
Joined
Mar 3, 2018
Messages
39
I have and excel file with about 200 rows. Consecutive columns have cells with last name, first name but in between those pairs of couple there are single names. I want to sort the file in alphabetical order keeping all the couples together and listing the single names at the end and of course keeping all the other columns in tact.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
1. Just to be sure we are clear, could we have 5-10 rows of dummy sample data and the expected results?

2. Are you looking for a manual method, formula, macro do do this job?

3. What version of Excel are you using?
 
Upvote 0
1. Just to be sure we are clear, could we have 5-10 rows of dummy sample data and the expected results?

2. Are you looking for a manual method, formula, macro do do this job?

3. What version of Excel are you using?


<colgroup><col><col><col><col span="2"><col><col></colgroup><tbody></tbody>
-1166ALFORD, JIM109
-161ALFORD, RUTH19.516
-139ALMASI, CAROL*19.116
-1181ALMASI, DENNIS*5.65
-118ANDRIOLA, BETTY*20.217
-1750BADGER, JIM16.715
-1749BADGER, LYN13.111
-157BARNABY, BUTCH17.516
-144BAUER, RICHARD*16.815
-166BEIERLE, BOB9.28
-1210BEIERLE, CAROLYN20.117
-1130BELL, DON16.615
-199BERGER, RHONDA20.217
-197BERGER, TODD18.216
-1352BERGERON, LESLIE*9.48
-1353BERGERON, MAURICE*17.516

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

I want to sort so that just the rows with the couples that have the last names are listed in alphabetical order
with the remaining singular names like Barnaby, Bauer and Bell are added at the end.
Office for Windows 10, version 1016 I think.
 
Upvote 0
So, have you shown the original order or the sorted order? Whatever it is, could we see the other order too please so we know what we are starting with and what we are to finish with?

You have not addressed at all Q2.
 
Upvote 0
So, have you shown the original order or the sorted order? Whatever it is, could we see the other order too please so we know what we are starting with and what we are to finish with?

You have not addressed at all Q2.

This is the original file. I would want the finished product to list all of the couples ie the two cells with people who have the same last name. I want to list these in alphabetical order and then have the single names at the end of the file.
As for question 2, what ever method is the easiest I guess. I thought there would be a formula that I could put in the top cell and then do a repeat, not sure how this can be done.
Thanks for taking the time to respond.
 
Upvote 0
I would want the finished product to list all of the couples ie the two cells with people who have the same last name. I want to list these in alphabetical order and then have the single names at the end of the file.
1. What would that look like for the previous sample data?

2. What do the * after some of the names mean?

3. Is the original data always already in alphabetical order like the sample given?

4. If there are two couples, or one couple and a single, that have the same last name, how do we distinguish those?

5. Your original description indicated last name and surname in "consecutive columns". The sample data looks more like names combined in one column. What is the actual layout in that regard?
 
Upvote 0
1. What would that look like for the previous sample data?

2. What do the * after some of the names mean?

3. Is the original data always already in alphabetical order like the sample given?

4. If there are two couples, or one couple and a single, that have the same last name, how do we distinguish those?

5. Your original description indicated last name and surname in "consecutive columns". The sample data looks more like names combined in one column. What is the actual layout in that regard?

5. I will start with 5 and maybe that will clear some things up, sorry I meant to say consecutive rows.
4. If there are two couples or a couple and a single they should all be grouped together.
3. Yes
2. ?
1. All I really want is a way to take the file and sort it with the couples together and the singles at the end.
 
Upvote 0
is that what you want?

Column1Column2Column3Column4Column5Column1Column2MergedColumn4Column5
-1​
166​
ALFORD, JIM
10​
9​
-1​
166​
ALFORD, JIM
10​
9​
-1​
61​
ALFORD, RUTH
19.5​
16​
-1​
61​
ALFORD, RUTH
19.5​
16​
-1​
39​
ALMASI, CAROL*
19.1​
16​
-1​
39​
ALMASI, CAROL*
19.1​
16​
-1​
181​
ALMASI, DENNIS*
5.6​
5​
-1​
181​
ALMASI, DENNIS*
5.6​
5​
-1​
18​
ANDRIOLA, BETTY*
20.2​
17​
-1​
750​
BADGER, JIM
16.7​
15​
-1​
750​
BADGER, JIM
16.7​
15​
-1​
749​
BADGER, LYN
13.1​
11​
-1​
749​
BADGER, LYN
13.1​
11​
-1​
66​
BEIERLE, BOB
9.2​
8​
-1​
57​
BARNABY, BUTCH
17.5​
16​
-1​
210​
BEIERLE, CAROLYN
20.1​
17​
-1​
44​
BAUER, RICHARD*
16.8​
15​
-1​
99​
BERGER, RHONDA
20.2​
17​
-1​
66​
BEIERLE, BOB
9.2​
8​
-1​
97​
BERGER, TODD
18.2​
16​
-1​
210​
BEIERLE, CAROLYN
20.1​
17​
-1​
352​
BERGERON, LESLIE*
9.4​
8​
-1​
130​
BELL, DON
16.6​
15​
-1​
353​
BERGERON, MAURICE*
17.5​
16​
-1​
99​
BERGER, RHONDA
20.2​
17​
-1​
18​
ANDRIOLA, BETTY*
20.2​
17​
-1​
97​
BERGER, TODD
18.2​
16​
-1​
57​
BARNABY, BUTCH
17.5​
16​
-1​
352​
BERGERON, LESLIE*
9.4​
8​
-1​
44​
BAUER, RICHARD*
16.8​
15​
-1​
353​
BERGERON, MAURICE*
17.5​
16​
-1​
130​
BELL, DON
16.6​
15​
 
Upvote 0
Thanks for the various clarifications.
.. what ever method is the easiest I guess.
Here is a fairly simple manual method.
1. Copy the formula shown down.
2. Select all the data, including this additional column.
3. Sort the data based on the additional column

Excel Workbook
ABCDEF
1
2-1166ALFORD, JIM1091
3-161ALFORD, RUTH19.5161
4-139ALMASI, CAROL*19.1161
5-1181ALMASI, DENNIS*5.651
6-118ANDRIOLA, BETTY*20.2172
7-1750BADGER, JIM16.7151
8-1749BADGER, LYN13.1111
9-157BARNABY, BUTCH17.5162
10-144BAUER, RICHARD*16.8152
11-166BEIERLE, BOB9.281
12-1210BEIERLE, CAROLYN20.1171
13-1130BELL, DON16.6152
14-199BERGER, RHONDA20.2171
15-197BERGER, TODD18.2161
16-1352BERGERON, LESLIE*9.481
17-1353BERGERON, MAURICE*17.5161
Sheet2



Results after performing the steps above.
You could then deleted column F if you want.

Excel Workbook
ABCDEF
1
2-1166ALFORD, JIM1091
3-161ALFORD, RUTH19.5161
4-139ALMASI, CAROL*19.1161
5-1181ALMASI, DENNIS*5.651
6-1750BADGER, JIM16.7151
7-1749BADGER, LYN13.1111
8-166BEIERLE, BOB9.281
9-1210BEIERLE, CAROLYN20.1171
10-199BERGER, RHONDA20.2171
11-197BERGER, TODD18.2161
12-1352BERGERON, LESLIE*9.481
13-1353BERGERON, MAURICE*17.5161
14-118ANDRIOLA, BETTY*20.2172
15-157BARNABY, BUTCH17.5162
16-144BAUER, RICHARD*16.8152
17-1130BELL, DON16.6152
Sheet2
 
Last edited:
Upvote 0
is that what you want?

[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]Column1[/COLOR][COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]Column2[/COLOR][COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]Column3[/COLOR][COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]Column4[/COLOR][COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]Column5[/COLOR][COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]Column1[/COLOR][COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]Column2[/COLOR][COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]Merged[/COLOR][COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]Column4[/COLOR][COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]Column5[/COLOR]
-1​
166​
ALFORD, JIM
10​
9​
-1​
166​
ALFORD, JIM
10​
9​
-1​
61​
ALFORD, RUTH
19.5​
16​
-1​
61​
ALFORD, RUTH
19.5​
16​
-1​
39​
ALMASI, CAROL*
19.1​
16​
-1​
39​
ALMASI, CAROL*
19.1​
16​
-1​
181​
ALMASI, DENNIS*
5.6​
5​
-1​
181​
ALMASI, DENNIS*
5.6​
5​
-1​
18​
ANDRIOLA, BETTY*
20.2​
17​
-1​
750​
BADGER, JIM
16.7​
15​
-1​
750​
BADGER, JIM
16.7​
15​
-1​
749​
BADGER, LYN
13.1​
11​
-1​
749​
BADGER, LYN
13.1​
11​
-1​
66​
BEIERLE, BOB
9.2​
8​
-1​
57​
BARNABY, BUTCH
17.5​
16​
-1​
210​
BEIERLE, CAROLYN
20.1​
17​
-1​
44​
BAUER, RICHARD*
16.8​
15​
-1​
99​
BERGER, RHONDA
20.2​
17​
-1​
66​
BEIERLE, BOB
9.2​
8​
-1​
97​
BERGER, TODD
18.2​
16​
-1​
210​
BEIERLE, CAROLYN
20.1​
17​
-1​
352​
BERGERON, LESLIE*
9.4​
8​
-1​
130​
BELL, DON
16.6​
15​
-1​
353​
BERGERON, MAURICE*
17.5​
16​
-1​
99​
BERGER, RHONDA
20.2​
17​
-1​
18​
ANDRIOLA, BETTY*
20.2​
17​
-1​
97​
BERGER, TODD
18.2​
16​
-1​
57​
BARNABY, BUTCH
17.5​
16​
-1​
352​
BERGERON, LESLIE*
9.4​
8​
-1​
44​
BAUER, RICHARD*
16.8​
15​
-1​
353​
BERGERON, MAURICE*
17.5​
16​
-1​
130​
BELL, DON
16.6​
15​

<tbody>
</tbody>
Yes this is exactly what I want, so I just add another column and flag all the individuals that are not part of a couple and the run the formula. Thanks again, your website and you individuals are extremely helpful. Randy
 
Upvote 0

Forum statistics

Threads
1,214,925
Messages
6,122,303
Members
449,078
Latest member
nonnakkong

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