Countif Formula doesn't appear to working properly

Damian37

Active Member
Joined
Jun 9, 2014
Messages
301
Office Version
  1. 365
Hello all,
I'm trying to use a countif formula to identify when something is > 7 days, however the same results are coming up whether the object is > 7 days or not. The formula that I'm using is:
=countif(B4:B1104, ">7")/count(B4:B1104)

Ex.
[TABLE="width: 386"]
<tbody>[TR]
[TD]TCD_c_Serial
[/TD]
[TD]Average of Days Aged
[/TD]
[TD]> 7 Days
[/TD]
[/TR]
[TR]
[TD]0000310998260036
[/TD]
[TD="align: right"]1.694375
[/TD]
[TD="align: right"]14%
[/TD]
[/TR]
[TR]
[TD]00938841502705
[/TD]
[TD="align: right"]7.617731481
[/TD]
[TD="align: right"]14%
[/TD]
[/TR]
[TR]
[TD]0B71J34002023
[/TD]
[TD="align: right"]11.45951389
[/TD]
[TD="align: right"]14%
[/TD]
[/TR]
</tbody>[/TABLE]

Any ideas on what I might be doing wrong would be greatly appreciated.
D.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Based on your example, your formula returns 0.66667, which is correct, as 2 out of the 3 records exceed 7.
What does your formula return on those three records?
 
Upvote 0
Your formula would just tell you what % of rows have values greater than 7 in column B (ignores blanks)

what else should it do? not sure what you mean to do... are you trying to calculate something on each row and drag down?

this will tell you if a row is greater than 7... =B4>7 then you get true and false... that would do what you said... identify which rows are greater than 7... you need to explain a little more ;)
 
Last edited:
Upvote 0
Your formula would just tell you what % of rows have values greater than 7 in column B (ignores blanks)

what else should it do? not sure what you mean to do... are you trying to calculate something on each row and drag down?

this will tell you if a row is greater than 7... =B4>7 then you get true and false... that would do what you said... identify which rows are greater than 7... you need to explain a little more ;)

Thank you cerfani. After going over the data with my manager, just the % of instances where the data was > 7 days was what they were looking for.

D.
 
Upvote 0
Thank you cerfani. After going over the data with my manager, just the % of instances where the data was > 7 days was what they were looking for.
That is what your formula currently does. So what exactly seems to be the issue?
If there is still an issue, please explain it in detail and answer the question I posted in my earlier response.
 
Upvote 0

Forum statistics

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