Countif

JackDanIce

Well-known Member
Joined
Feb 3, 2010
Messages
9,922
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a table of data where column E contains various words and column O contains positive and negative values

I'd like a COUNTIF formula that counts any row where the value in E = "Total" and the absolute value in O is above 0.1 (or 10%)

Unsure how to define this in my criteria, should I be using a COUNTIF or SUMPRODUCT formula?

Tips/pointers/solutions, all welcome.

Thanks in advance,
Jack
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Which version of Excel are you using?
If 2007 or higher, check out the COUNTIFS function, which allows more than one criteria.
Otherwise, I would recommend using SUMPRODUCT.
 
Upvote 0
It should look something like this (adjust your range accordingly):
Code:
=SUMPRODUCT(--(E1:E8="Total"),--(ABS(O1:O8)>0.1))
 
Upvote 0
Not quite working. Have specified the range exactly and used ABS(O18:O440)>0.001 (i.e. above 0.1%) but answer is zero and there are definitely values above 0.1%

Any thoughts?
 
Upvote 0
Are you sure the cells in E contain just Total (no leading or trailing spaces) and that the values in O are actually numbers?
 
Upvote 0
Rorya, really!

Yes in column E, value is definitely "Total", double checked in a separate column with
Code:
=And(LEN(E18)=5,E18="Total")

It may be because of how values in column O are created, they're formula's, i.e.
In O18
Code:
=T18/$B$9
 
Upvote 0
Should be fine then. Though I note you did initially say 10%, now you say 0.1% - do you have enough decimals displayed to be sure your values actually are greater than the criterion?
 
Upvote 0
Turns TRUE, FALSE values in the test into 0s and 1s so they can be numerically evaluated, rather than a logical test
 
Upvote 0

Forum statistics

Threads
1,224,584
Messages
6,179,687
Members
452,938
Latest member
babeneker

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