combine countifs and percentage in the same cell

Godders199

Active Member
Joined
Mar 2, 2017
Messages
313
Office Version
  1. 2013
Hello, I am trying to work out the formula which counts if criteria is met, and then calculates the % of the total in the same cell, for example

cell C6 is the total , currently 15
Cell d6 displays total matching criteria in first part of formula 3

so in cell d6 i want to display 3 (20%)
I have tried various formulas i have found on the internet, for the % but can get none to work, SO the countifs bit is fine, its just after the & i cannot work out.

=COUNTIFS('QA Checks'!$C:$C,"QA Check",'QA Checks'!$D:$D,"mpm-fc",'QA Checks'!$E:$E,">="&'Monthly MI'!$A1,'QA Checks'!$E:$E,"<="&'Monthly MI'!$A2,'QA Checks'!F:F,"suitable")&" sum(D6/C6)*100&"%)"

Any help would be appreciated.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,214,980
Messages
6,122,563
Members
449,088
Latest member
Motoracer88

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