Automatically sorting columns of names alphabetically

taffmorgan7274

New Member
Joined
Aug 29, 2021
Messages
16
Office Version
  1. 365
Platform
  1. Windows
Good morrow,

I have a list of names that need to be added to/subtracted from on a regular basis. The list of names run into the 200's and the sheet is formatted so that the names fit on the length of an A4 sheet.

Is there any way that I can use a formula, table, device that will allow me to add or subtract a name and the columns would automatically be organised in alphabetical order?

Thank you

I couldn't upload an image as the file 12kb was to large.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Difficult without some data to work with - did you try using the XL2BB add in, or alternatively perhaps you could share your file via Google Drive, Dropbox or similar file sharing platform? (You could easily disguise the names).
Anyhow, I see you have 365 listed on your profile, so if you're willing to use a second sheet to return your values then the Sort() function combined with the Filter() function could work for you.
Otherwise, you're probably looking at a VBA solution based on a worksheet change event. With a formula approach, if your 'sheet1' looked like this:
Book1
AB
1SurnameFirst Name
2BakerAlex
3SmithBob
4AdamsSue
5JohnsonWendy
6JohnsonAmy
7AdamsAmy
8
Sheet1


Your second sheet could look like this (use the formula in A2 if you only need to sort by surname - use the formula in D2 if you need to sort by First then surname). When you add additional names to sheet1, they will automatically appear on sheet2 in alphabetical order.
Book1
ABCDE
1SurnameFirst NameSurnameFirst Name
2AdamsSueAdamsAmy
3AdamsAmyAdamsSue
4BakerAlexBakerAlex
5JohnsonWendyJohnsonAmy
6JohnsonAmyJohnsonWendy
7SmithBobSmithBob
8
Sheet2
Cell Formulas
RangeFormula
A2:B7A2=SORT(FILTER(Sheet1!$A$2:$B$301,Sheet1!$A$2:$A$301<>""),1,1)
D2:E7D2=SORT(SORT(FILTER(Sheet1!$A$2:$B$301,Sheet1!$A$2:$A$301<>""),2,1),1,1)
Dynamic array formulas.
 
Upvote 0
Solution

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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