Countif help

kanddo2

New Member
Joined
Aug 20, 2008
Messages
29
I have a document that has a range of values. I want to be able to complete a countif scenario where I can count all the values less than the median (varies as you move from result sets). I have to do this across several categories, so I would like to paste this formula without having to adjust the criteria manually each time. I already have the value of the median for the range in a cell.

For example one range is H100:H343. The median forumla result is in J343.

I would like something that would work like this:

=countif(H100:H343,<J343)<J343)<J343)<J343)<J343)< p>
This doesn't work because it has to be a hardcoded criteria value in the countif formula. It won't accept the cell reference.

Also tried:

=COUNT(IF(H100:H343,j343,h100:h343,))<?xml:namespace prefix = j343,H343 /><j343,H343:h343,))< p>
Any advice would be helpful. Using 2007, but have to save to xls format for most users.
</j343,H343:h343,))<>
 
Last edited:

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Hi,

The formulas in your post got cut off.

Did you try either of these?
Code:
=COUNTIF(H100:H343,"<"&J343)

Code:
=COUNTIF(H100:H343,"<"&MEDIAN(H100:H343))

HTH
Colin
 
Upvote 0
I tried to edit my post after seeing it cut off after I subtmitted, but it wouldn't update for some reason.

Either solution works perfectly. I had failed to put the & in. I knew I missing something but couldn't remember what it was.

Thanks.
 
Upvote 0

Forum statistics

Threads
1,216,156
Messages
6,129,188
Members
449,492
Latest member
steveg127

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