Need to count the number of FirstNames in a column

jimdandy745

New Member
Joined
Jun 19, 2014
Messages
2
I have a spreadsheet that I would like to get a "headcount" for our membership. Example:

A B C D
1 LastName FirstName email address
2 Doe Jon and Mary jondoe@yahoo.com 2
3 Doe Harry harry@gmail.com 1
4 Jones Jim and Judy jandj@Hotmail.com 2
5 Smith Elizabeth Elizabeth@outlook.com 1
6 Smith Ralph ralph@msn.com 1

This is my thought.
A formula that IF cells B2:B6 contains the word "and" then that cell = a count of 2, else count = 1
"Total Headcount" based on above example should report 7.

OR I could create a column (D) with formula to do:
IF B(x) contains the word "and" then count=2, else count = 1 and then
total
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Maybe:

This is an array formula and must be entered with CTRL-SHIFT-ENTER.

Excel Workbook
ABCDE
1LastNameFirstNameemail addressMembers
2DoeJon and Maryjondoe@yahoo.com7
3DoeHarryharry@gmail.com
4JonesJim and Judyjandj@Hotmail.com
5SmithElizabethElizabeth@outlook.com
6SmithRalphralph@msn.com
Sheet2
 
Upvote 0
Here is a normally-entered formula that should also work...

=COUNTA(B2:B6)+COUNTIF(B2:B6,"*and*")
 
Upvote 0

Forum statistics

Threads
1,214,632
Messages
6,120,655
Members
448,975
Latest member
sweeberry

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