Count instances of an e-mail domain name across multiple e-mail addresses

Alice1

New Member
Joined
Nov 5, 2007
Messages
8
Hi, so Row A contains lots of different but unique individual e-mail addresses, thousands in fact in the format :

Alan.Smith@MrExcel.com
Karen.Jones@MrExcel.com
Clive.Bloggs@Microsoft.com
Brenda.Forbes@MrExcel.com

what I need to do is count the instances that an e-mail Domain Name appears so in the above example :

MrExcel.com = 3
Microsoft.com = 1

I don't have a clue how to do this though, without first separating the cell into two different cells which I don't really want to do.

Hopefully someone can help me please ?
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Hi, how about?

In B2: =MID(A2,FIND("@",A2),LEN(A2))
In C2: =COUNTIF(B:B,B2)

*Not sure if this is against the splitting of the cell criteria
 
Last edited:
Upvote 0
I'd be interested in how it could be done without VBA and splitting the cells as well.
 
Upvote 0
Still needs a helper column


Excel 2013/2016
ABC
2Alan.Smith@MrExcel.comMrExcel.com4
3Karen.Jones@MrExcel.comMicrosoft.com1
4Clive.Bloggs@Microsoft.comadomain.co.uk1
5Brenda.Forbes@MrExcel.com
6JoeBloggs@adomain.co.uk
7Fluff@mrexcel.com
Sheet1
Cell Formulas
RangeFormula
C2=SUMPRODUCT(--(ISNUMBER(SEARCH($B2,$A$2:$A$7))))
B2{=INDEX((RIGHT($A$2:$A$7,LEN($A$2:$A$7)-FIND("@",$A$2:$A$7))),MATCH(0,COUNTIF($B$1:$B1,(RIGHT($A$2:$A$7,LEN($A$2:$A$7)-FIND("@",$A$2:$A$7)))),0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,522
Messages
6,120,022
Members
448,939
Latest member
Leon Leenders

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