Countif

johns99

Board Regular
Joined
Jun 11, 2013
Messages
223
Office Version
  1. 365
Platform
  1. Windows
Trying to setup a formula that will count the amount of bonuses that fall within a specific range...for example

Count if the bonus ranges from $0-$4999...suggestions?

thanks in advance.

Range</SPAN>
$0.00 </SPAN>$4,999.00 </SPAN>
$5,000.00 </SPAN>$9,999.00 </SPAN>
$10,000.00 </SPAN>$14,999.00 </SPAN>
$15,000.00 </SPAN>$19,999.00 </SPAN>
$20,000.00 </SPAN>$24,999.00 </SPAN>
$25,000.00 </SPAN>$29,999.00 </SPAN>
$30,000.00 </SPAN>$34,999.00 </SPAN>
$35,000.00 </SPAN>$39,999.00 </SPAN>
$40,000.00 </SPAN>$44,999.00 </SPAN>
$45,000.00 </SPAN>$49,999.00 </SPAN>
$50,000.00 </SPAN>$54,999.00 </SPAN>
$55,000.00 </SPAN>$59,999.00 </SPAN>
$60,000.00 </SPAN>$64,999.00 </SPAN>
$65,000.00 </SPAN>$69,999.00 </SPAN>
$70,000.00 </SPAN>$74,999.00 </SPAN>
$75,000.00 </SPAN>$79,999.00 </SPAN>
$80,000.00 </SPAN>$84,999.00 </SPAN>
$85,000.00 </SPAN>$89,999.00 </SPAN>
$90,000.00 </SPAN>$94,999.00 </SPAN>
$95,000.00 </SPAN>$99,999.00 </SPAN>
$100,000.00 </SPAN>

<TBODY>
</TBODY><COLGROUP><COL span=2></COLGROUP>
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
One more thing...the ranges are in columns G and H...so $0 is in G and $4999 is in H.

is there a way to do a COUNTIF >= G3 <=H3?

thanks,
 
Upvote 0
I was looking for something that looked at the range between 0 - 4999, and that references the cells that their in...for instance $0 is in G3 and 4999 is in H3.

How would I be able to setup a formula that takes a count if >= G3 and <= H3? This way I can drag down and not have to manually type "4999"
 
Upvote 0
I tried doing this and it didn't work....

=COUNTIF($E$2:$E$179,AND($E$2:$E$179>=$G3,$E$2:$E$179<=$H3))
 
Upvote 0
What are you counting, the number of bonuses in column E that fit in a range?
 
Upvote 0
Hi Johns99,

I think I've found solution using helper columns (which can be hidden)

Excel Workbook
ABCDEFGHIJKL
104999From:To:Total column BDifferenceFrom:To:
2500099993600050000=32071310
31000014999
41500019999
52000024999
62500029999
73000034999
83500039999
94000044999
104500049999
115000054999
125500059999
136000064999
146500069999
157000074999
167500079999
178000084999
188500089999
199000094999
209500099999
21100000
Sheet1



Hopefully you can follow whats going on.

Regards,

AP
 
Upvote 0

Forum statistics

Threads
1,215,372
Messages
6,124,531
Members
449,169
Latest member
mm424

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