Count Query Excel 2010

philb99

Active Member
Joined
Feb 3, 2014
Messages
385
Office Version
  1. 2010
Platform
  1. Windows
Hi - Would like to know how you can count names in column please as I am struggling.
Thanks
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
if you have a list of all the names you can use COUNTIF
 
Upvote 0
Hi - thanks but I just have a random selection of names like, smith, brown, tom, frank with a heading OF Name-

Countif asks for a range (which is ok) but then Criteria which I am now stuck again
 
Upvote 0
Something like
=SUMPRODUCT(1/COUNTIF(A2:A11,A2:A11))
 
Upvote 0
thanks - the issue I can now see is - My names are in two separate columns for example - Col A = Mike and Col B = Smith.

SumProduct does a great job in counting different names but if I have a Mike Smith and a Mike Brown it will only count one Mike, likewise for the same surname.

Is there anyway to merge to the the two columns. Presently they are structures as

Col A = Either Jane Mrs / Mr
Col B = Either Smith or Smith, Jane
 
Upvote 0
Can you please supply some realistic samples of your data?
 
Upvote 0
First nameLast name
MrsBrown, Lisa
TomSmith
FredJones
MrDelph, Clive
StuartRound

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

Hi - does this help, the length of the list could be 1000's
 
Upvote 0
Maybe =SUMPRODUCT(1/COUNTIFS(A2:A7,A2:A7,B2:B7,B2:B7))
 
Upvote 0
Perfect - thank you for you help and support - any idea how I would merge the two columns in order that I can read Mrs Lisa Brown / Tom Smith / Fred Jones / Mr Clive Delph / Stuart Round in one cell please
 
Upvote 0
As that is a completely different question, you will need to start a new thread.
 
Upvote 0

Forum statistics

Threads
1,214,996
Messages
6,122,636
Members
449,092
Latest member
bsb1122

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