Excluding cells within an CountIF function.

oosag23

New Member
Joined
Dec 11, 2018
Messages
9
I have a client tracker where I track the work done throughout the year for each month.
I set up a count if statement to calculate the percentage of work completed for all clients for each month. (X = Complete)
There are monthly and annual clients which I included in the calc.
However I want the calc to exclude the annual clients (Frequency = 1).
I tried working an IF statement into it but couldn’t figure it out.
Any assistance would be much appreciated.

Client Tracker.xlsx
ABCDEFGHIJKLMNO
1List of Business ClientsMarked Completed: X28%28%28%25%18%13%3%0%0%0%0%99%
2
3
4
5MONTHLY ACCOUNTING UPDATES
6FREQUENCYJanFebMarchAprilMayJuneJulyAugSeptOctNovDec
7Client 11X
8Client 21X
9Client 312XXXXXXXX
10Client 41X
11Client 512XXXXXXXX
12Client 612XXXXXXX
13Client 712XXXX
14Client 812XXXXXXXX
15Client 912XXXXXX
16Client 1012XXXXXXX
17Client 1112XXXXXX
18Client 1212XXXXXXX
19Client 1312XXXXX
20Client 1412XXXXXXX
21Client 1512XXXXX
22Client 1612XXXXXXXX
23Client 1712XXXXXXX
24Client 181X
25Client 1912XXXXXXX
26Client 2012XXXXXXX
27Client 2112XXXX
28Client 221X
29Client 2312XXXXXXX
30Client 2412XXX
31Client 2512XXXXXXX
32Client 2612XXXXX
33Client 2712XXXXXX
34Client 2812XXXXXXX
35Client 291X
36Client 301X
37Client 3112XXXX
38Client 3212XXXXXXXX
39Client 3312XXXXXXXX
40Client 341X
41Client 3512XXXXXX
42Client 3612XXXXXXX
43Client 3712XXXXX
44Client 381X
45Client 391X
46Client 4012XXXXXXX
47Client 4112XXXXX
48Client 4212XXXXXXX
49Client 431X
50Client 441X
51Client 451X
52Client 461X
53Client 471X
54Client 481X
55Client 4912XXXXXXX
56Client 5012XXXXXXX
57Client 511X
58Client 5212XXXXXX
59Client 531X
60Client 541XXXXX
61Client 5512XXXXX
62Client 5612XXXXXXX
63Client 5712XXXXXXXX
64Client 5812XXXXX
65Client 5912XXXXXX
66Client 6012XXXXXX
67Client 6112XXXX
68Client 6212XXXXX
69Client 6312XXXXXXX
70Client 6412XXXX
71Client 6512XXXXXXX
72Client 6612XXXXXX
73Client 671X
74Client 6812XXXXXXX
75Client 6912XXXXXX
76Client 7012XXXXXXX
77Client 7112XXXX
78Client 7212XXXXXXX
79Client 7312XXXX
80Client 7412XXXXX
81Client 751X
82Client 7612XXXXXXX
83Client 7712XXXXXXX
84Client 781X
85Client 791XXXX
86Client 801X
87Client 811X
88Client 821XXXXXX
89Client 8312XXXXXXX
90Client 8412XXXXX
91Client 8512XXXXXX
92Client 8612XXXXXXXX
93Client 8712XXXXXXX
94Client 881X
95Client 8912XXXXXXX
96Client 901X
97Client 9112XXXXX
98Client 9212XXXX
99Client 9312XXXXX
100Client 941X
101Client 951X
102Client 961X
103Client 971X
104Client 9812XXXXX
105Client 9912XXXXXX
106Client 1001X
MASTER LIST (3)
Cell Formulas
RangeFormula
D1:O1D1=COUNTIF(D$7:D$266,"X")/(COUNTIF(D$7:D$266,"")+COUNTIF(D$7:D$266,"X"))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D1:O1,D4Cell Valuecontains "Prepared"textNO
D1:O1,D4Cell Valuecontains "In Process"textNO
D1:O1,D4Cell Valuecontains "Not Started"textNO
C2:C3Cell Valuecontains "Reviewed"textNO
C2:C3Cell Valuecontains "In Process"textNO
C2:C3Cell Valuecontains "Not Started"textNO
C2:C3Cell Valuecontains "Prepared"textNO
C1Cell Valuecontains "Reviewed"textNO
C1Cell Valuecontains "In Process"textNO
C1Cell Valuecontains "Not Started"textNO
C1Cell Valuecontains "Prepared"textNO
C4Cell Valuecontains "Reviewed"textNO
C4Cell Valuecontains "In Process"textNO
C4Cell Valuecontains "Not Started"textNO
C4Cell Valuecontains "Prepared"textNO
D1:O1,D4Cell Valuecontains "Reviewed"textNO
D1:O1,D4Cell Valuecontains "In Process"textNO
D1:O1,D4Cell Valuecontains "Not Started"textNO
D1:O1,D4Cell Valuecontains "Prepared"textNO
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Try

=COUNTIFS(D$7:D$266,"X",B$7:B$266,"<>"&1)/COUNTIFS(D$7:D$266,"")+COUNTIFS(D$7:D$266,"X",B$7:B$266,"<>"&1)
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,327
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