Countif Question

gmazza76

Well-known Member
Joined
Mar 19, 2011
Messages
769
Office Version
  1. 365
Platform
  1. Windows
Good afternoon all,

I think I am going a bit mad, running round in circles here.
But how do I get the sumif if section to add up if its above or equal to 90% as I think I am going mad.
I would normally just calculate against the cell but I need to do this as a sum as the cell it would reference shows like 91% (10) showing the % and the checks done as a concatenated calc.

Code:
SUM(COUNTIF(G12,">="&G3,countif(SUMIFS(Data!AE:AE,Data!Y:Y,D12)/SUMIFS(Data!AD:AD,Data!Y:Y,D12),">="&0.90)
[code/]

thanks in advance
Gavin
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
(I'm ignoring the G12,G3 count if for now)
Are you asking to sum the individual rows where the percentage of AE/AD is greater than 90%?
So, I've changed the second COUNTIF this:

Excel Formula:
=SUM(IF(Y2:Y9<>D12,0,(AE2:AE9/AD2:AD9)>0.9))

Excel Formula:
=SUM(COUNTIF(G12,">="&G3,SUM(IF(Y2:Y9<>D12,0,(AE2:AE9/AD2:AD9)>0.9)))

But, it would really help if you'd share some sample data and expected results.
 
Upvote 0
(I'm ignoring the G12,G3 count if for now)
Are you asking to sum the individual rows where the percentage of AE/AD is greater than 90%?
So, I've changed the second COUNTIF this:

Excel Formula:
=SUM(IF(Y2:Y9<>D12,0,(AE2:AE9/AD2:AD9)>0.9))

Excel Formula:
=SUM(COUNTIF(G12,">="&G3,SUM(IF(Y2:Y9<>D12,0,(AE2:AE9/AD2:AD9)>0.9)))

But, it would really help if you'd share some sample data and expected results.
I omitted a -- in the formula.
Excel Formula:
=SUM(--IF(Y2:Y9<>D12,0,(AE2:AE9/AD2:AD9)>0.9))

Excel Formula:
=SUM(COUNTIF(G12,">="&G3,SUM(--IF(Y2:Y9<>D12,0,(AE2:AE9/AD2:AD9)>0.9)))

Book1
ABCDEFGHIJKLYZAAABACADAE
1
2ignored161113
33131114
4181317
5141217
6111214
7151214
8111113
9151414
10
11ignored
121162
Sheet1
Cell Formulas
RangeFormula
J12J12=SUM(--IF(Y2:Y9<>D12,0,(AE2:AE9/AD2:AD9)>0.9))
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,631
Latest member
a_potato

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