Excel Formula

KristieH

New Member
Joined
Aug 14, 2011
Messages
4
Hello,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p> </o:p>
I’m hoping you can help me with a formula. I have multiple tabs in my excel spreadsheet; one is labelled ‘Selection Criteria’. This tab allows the user to list multiple names in column B. I need to input a formula on a different tab which calculates the number of names input into column B of the Selection Criteria tab. For example, if an individual was to list 20 names, I would like this formula to identify all 20 names and insert the number 20 in a different tab. Could you please advise what the formula to do this would be?<o:p></o:p>
<o:p> </o:p>
Thank you,<o:p></o:p>
<o:p> </o:p>
Kristie.<o:p></o:p>
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Hi ,

Welcome to MrExcel!!

Put the following formula into whatever cell you wish to see the result, just change the range [A2:A10] to suit:

=COUNTA('Selection Criteria'!A2:A10)

HTH

Robert
 
Upvote 0
Thanks again!

I just have one more question. I have two columns in the Selection Criteria tab. One is name; the other gender. I can use the COUNTIF formula to work out how many Johns there are; however, what formula would I use if I wanted to calculate the number of 'Johns' and the number of these Johns who are 'male'?

Hope that makes sense!
 
Upvote 0
Hi Kristie,

Assuming the names are in A1:10 and their gender are in B1:B10, (change to suit) try this:

=SUMPRODUCT(--('Selection Criteria'!A1:A10="John"),--('Selection Criteria'!B1:B10="Male"))

Regards,

Robert
 
Upvote 0
Hi Robert,

I tried using the sumproduct formula; however, it's returning a 0 (it should be returning an 8).

I had to leave out the - - as the system wouldn't allow it. Could this why?
 
Upvote 0
had to leave out the - - as the system wouldn't allow it. Could this why?

Yes, this is the issue and the system will allow it as "--" are simply two minuses :confused:
 
Upvote 0
Hi Robert,

I tried using the sumproduct formula; however, it's returning a 0 (it should be returning an 8).

I had to leave out the - - as the system wouldn't allow it. Could this why?
What system is that?

Are you using Excel or some other spreadsheet application (Google Docs, Open Office Calc)?
 
Upvote 0

Forum statistics

Threads
1,224,548
Messages
6,179,451
Members
452,915
Latest member
hannnahheileen

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