Counting specific criteria involving two columns...

kbaucher

New Member
Joined
Sep 26, 2011
Messages
3
I am having a hard time trying to figure out how do the following... Need a total number of the below specific criteria.

Column B (count any repeating number only once)
Column C (specific word)

Right now we are counting only column C, but the problem lies in the column B data. B is boxes that are numbered, and we only wish to count each number once... There may be 24 instances in C, but after assessing column B, there are really only 5. How can I make my formula show this?

I have tried SUM with FREQUENCY, and cannot get the sum to equal anything but 0!
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Welcome to the board...

Try sumproduct

=SUMPRODUCT(--(C1:C100="Specific word"),--(B1:B100=number))


Hope that helps.
 
Upvote 0
Thanks jonmo, but my problem comes with the frequency of the number. I am not looking for a specific number in Column B, but making sure that each different number (based on the criteria from Column C) is counted only once.
 
Upvote 0
OK, I see...

Try this array formula entered with CTRL + SHIFT + ENTER

=SUM(IF(FREQUENCY(IF(C1:C100="SpecificWord",B1:B100),B1:B100),1))
 
Upvote 0
I am having a hard time trying to figure out how do the following... Need a total number of the below specific criteria.

Column B (count any repeating number only once)
Column C (specific word)

Right now we are counting only column C, but the problem lies in the column B data. B is boxes that are numbered, and we only wish to count each number once... There may be 24 instances in C, but after assessing column B, there are really only 5. How can I make my formula show this?

I have tried SUM with FREQUENCY, and cannot get the sum to equal anything but 0!
Try this...

Book1
ABCDE
1No11Yes4
2No32No6
3No43__
4No4___
5No4___
6No54__
7No85__
8No8___
9No106__
10No10___
11No10___
12Yes31__
13Yes42__
14Yes73__
15Yes7___
16Yes104__
17Yes10___
18Yes10___
19Yes10___
20Yes10___
Sheet1

I have the data sorted just to make it easy to see the results.

This array formula** entered in E1 and copied down to E2:

=SUM(IF(FREQUENCY(IF(A$1:A$20=D1,B$1:B$20),B$1:B$20),1))

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,289
Members
452,902
Latest member
Knuddeluff

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