Count Same Number in three ranges

RJB

Board Regular
Joined
Jul 22, 2002
Messages
149
Need a formula that will count the number of occurrences of that same number in three different ranges. The number that is to be compared to is in a cell that is a result of a formula. Example:
Lowest number found in three ranges: 30 (Answer is in A1)
Question: how many times does that number appear in the three ranges?
Syntax:
=Countif(Range1,range2,range3=A1)
Has to equal the cell reference value (A1), not a plain number (like 30)
 
On 2002-11-20 02:16, RJB wrote:
Heh, pretty sharp, more than one way to skin a cat

You mean what Juan suggests... Well, that should be the way you should skin your cat. Forget the other ways.
 
Upvote 0

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
On 2002-11-20 15:53, PaddyD wrote:
JPG,

=SUM(COUNTIF(INDIRECT({"Rng1","Rng2","Rng3"}),2))


Excellent :smile:

paddy

Also:

Array entered

=SUM(COUNTIF(INDIRECT("Rng"&ROW($A$1:$A$3)),2))

you can also use this to sum different sheets.
 
Upvote 0
I have 5 sheets that I need to count the number of time a names is listed.
I have tried the following
=SUM(COUNTIF(INDIRECT({"Over8","Over14","Over21"}),C57))
Over8, Over14 and Over21 are named ranges
C57 is the name
the above calc work if all names = C57
I also have two other sheets with names ranged Missingdata and DataInconsitent and I need to look for names on all 5 sheets
Issue format of the name is different between reports.
1 report will have a space before name, the next report will have a space after name and others will have no spaces.
Is there a formula I can use that will look for name that is "like" or "contains"

Example
Sheet 1 has "Sam Spade" no spaces
Sheet 2 has " Sam Spade" space before
Sheet 3 has "Sam Spade " space after
 
Upvote 0
I have 5 sheets that I need to count the number of time a names is listed.
I have tried the following
=SUM(COUNTIF(INDIRECT({"Over8","Over14","Over21"}),C57))
Over8, Over14 and Over21 are named ranges
C57 is the name
the above calc work if all names = C57
I also have two other sheets with names ranged Missingdata and DataInconsitent and I need to look for names on all 5 sheets
Issue format of the name is different between reports.
1 report will have a space before name, the next report will have a space after name and others will have no spaces.
Is there a formula I can use that will look for name that is "like" or "contains"

Example
Sheet 1 has "Sam Spade" no spaces
Sheet 2 has " Sam Spade" space before
Sheet 3 has "Sam Spade " space after

Does the following...

=SUMPRODUCT(COUNTIF(INDIRECT({"Over8","Over14","Over21"}),"*"&C57&"*"))

which requires just enter, meets your needs?
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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