Count

limo2088

Board Regular
Joined
Feb 10, 2006
Messages
53
Office Version
  1. 2019
What formula can I use to count the following? In Column C3 I have values XL, SM, CDV 14', CDV 16'
I need the formula in Column D3 to count the Values in Column H based on the vales that are in Column G.
I have it added manually now to show what it should add up to. Column D3 has a value of 42, this is based on that there are 42 "YES" in column G, anything but a "YES" does not get counted. I need this for each criteria in Column C
Thanks for the help



Book5
CDEFGH
3XL42YESXL
4SM1YESXL
5CDV 14'2OOSXL
6CDV 16'1YESXL
7YESXL
8YESXL
9YESXL
10YESXL
11YESXL
12YESXL
13YESXL
14YESXL
15YESXL
16YESXL
17OOSXL
18YESXL
19YESXL
20YESXL
21YESXL
22YESXL
23YESXL
24YESCDV 14'
25YESXL
26YESXL
27YESCDV 14'
28YESXL
29OOSXL
30YESXL
31YESXL
32YESXL
33YESXL
34OOSXL
35YESXL
36YESXL
37YESXL
38YESCDV 16'
39YESXL
40YESXL
41YESXL
42YESSmall
43EmptyXL
44YESXL
45YESXL
46YESXL
47YESXL
48YESXL
49YESXL
50YESXL
51YESXL
52YESXL
53YESXL
Sheet1
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
As long as the values in C are an exact match for H you can use
Excel Formula:
=COUNTIFS(G:G,"yes",H:H,C3)
 
Upvote 1
Check this and revert -

Book1
CDEFGH
3XL42YESXL
4SM0YESXL
5CDV 14'2OOSXL
6CDV 16'1YESXL
7YESXL
8YESXL
9YESXL
10YESXL
11YESXL
12YESXL
13YESXL
14YESXL
15YESXL
16YESXL
17OOSXL
18YESXL
19YESXL
20YESXL
21YESXL
22YESXL
23YESXL
24YESCDV 14'
25YESXL
26YESXL
27YESCDV 14'
28YESXL
29OOSXL
30YESXL
31YESXL
32YESXL
33YESXL
34OOSXL
35YESXL
36YESXL
37YESXL
38YESCDV 16'
39YESXL
40YESXL
41YESXL
42YESSmall
43EmptyXL
44YESXL
45YESXL
46YESXL
47YESXL
48YESXL
49YESXL
50YESXL
51YESXL
52YESXL
53YESXL
Sheet1
Cell Formulas
RangeFormula
D3:D6D3=COUNTIFS($H:$H,C3,$G:$G,"Yes")
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,444
Messages
6,124,892
Members
449,194
Latest member
JayEggleton

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