Sorting by cell component?

Sfinally

Board Regular
Joined
Oct 9, 2009
Messages
71
I have a large spreadsheet of data, which includes a column of email addresses. I want to sort the sheet by the domain names of the email addresses, but they are all different lengths (if I can't sort I want to at very least isolate by domain name). Is there a way to sort the column by just looking for "@yahoo.com", "@gmail.com", "@hotmail.com" etc?
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
You will need a helper column to sort on. It can be created with: =MID(A1,FIND("@",A1),999) where A1 contains the email address. Note this assumes that nothing follows the domain name.
 
Upvote 0
You are welcome. The 999 is the length of the returned text. I made it very long to be safe. The actual length is determined by the number of characters following the @.
 
Upvote 0

Forum statistics

Threads
1,224,526
Messages
6,179,322
Members
452,906
Latest member
Belthazar

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