count of intervals within range at a given increment size>

cloobless

Board Regular
Joined
Jul 15, 2014
Messages
84
Office Version
  1. 2010
Platform
  1. Windows
I'm trying to find a formula to return a value that represents the count of intervals at a certain increment size within a range. For example:
RULEFROMTOBY
112906
2251.75
24503

<tbody>
</tbody>
Rules:
The returned value must include the starting point "FROM" value as a count of one interval.

If the "TO" rule is not evenly divisible by the "BY" increment, the last interval point inside of the range is counted. For example, in a range of 10 to 30 at increments of 3, the last possible point is at 28:

If it is evenly divisible, obviously the end of the range is included (30, if the range was 10 to 30 by 2).


10 to 30 by 3:
10
13
16
19
22
25
28

For a count of 7.

It is the count that I'm trying to write a formula for.

Any ideas?
 
Last edited:

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
cloudless,

Try...
Excel Workbook
BCDE
1FromToByCount
2103037
Sheet2


Hope that helps.
 
Upvote 0
Snakehips, this works perfectly. I truly appreciate your expertise and willingness to help. Thank you.
 
Upvote 0
You are welcome. I just noticed that the spellchecker had it's way with your forum name... 'cloudless' ....... not a 'cloob' in sight !
 
Last edited:
Upvote 0
I think "cloudless" would refer to the sunny, airy space between my ears. :)
 
Upvote 0

Forum statistics

Threads
1,214,780
Messages
6,121,525
Members
449,037
Latest member
tmmotairi

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