ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Counting ranges (https://www.excelbanter.com/excel-programming/402995-counting-ranges.html)

Luther

Counting ranges
 
Hello,

I have a range of numbers in 2 columns; 1st column are the observed values
and the 2nd column are the counts. What I need to do is create ranges for
those 2 columns and count them. The example below show this:

Duration Freq
2 4
3 4

So the result should be that

Column D = 2-3 (range of numbers)
Column E = 8 (sum of the counts for each)

Is there a formula that can accomplish this, please?

Thank you in advance,
Luther

merjet

Counting ranges
 
MIN(D:D), MAX(D:D), SUM(E:E)

Put row numbers after column letters if desired.

Hth,
Merjet


Luther

Counting ranges
 
Thank you for your response. However, I am looking at making this more
flexible; there are more ranges to account for, like 5-8 where the number of
values will not always be constant.

Example:
1. 5,6,7,8
2. 5,7,8



"merjet" wrote:

MIN(D:D), MAX(D:D), SUM(E:E)

Put row numbers after column letters if desired.

Hth,
Merjet




All times are GMT +1. The time now is 11:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com