JamieErvin
New Member
- Joined
- Aug 4, 2016
- Messages
- 2
Hi Everyone,
I'm struggling with an excel issue that I'm sure there's a simply solution to. I've got a series of long lists of numbers (ex. 1.23423, 1.34535, 1.256588, etc...) that I'm hoping to condense into a shorter series numeric classes. I'm hoping for a final product where a column (column C below) contains the number of total values from the original list that fall into a certain range, or class. For example, in the table below, Class 1.1 would contain all values that fall between 1.1 and 1.2:
Row # Column A Column B Column C
Original List Classes Number in Class
1 1.123 1 0
2 1.243 1.1 1
3 1.256 1.2 1
4 1.333 1.3 3
5 1.345 1.4 2
6 1.367
7 1.432
8 1.456
I've found a COUNTIFS formula that will accomplish this. For example, if I wanted the values between 1.1 and 1.2, I would use:
=COUNTIFS($O$6:$O$959, ">=1.2", $O$6:$O$959, "<1.3")
The problem is, I need to do this hundreds of times, and so it's really inefficient to alter the formula each time manually. When I try to copy the formula downward, it restarts the criteria numbering and so my values are off. Does anybody know the best way to write the formula above so that I can copy it and have criteria ranges increase to reflect the values in the list? I'd like for the formula to copy in the following way:
=COUNTIFS($O$6:$O$959, ">=1.2", $O$6:$O$959, "<1.3")
=COUNTIFS($O$6:$O$959, ">=1.3", $O$6:$O$959, "<1.4")
=COUNTIFS($O$6:$O$959, ">=1.4", $O$6:$O$959, "<1.5")
Any clues? I've experimented with a bunch of things but nothing seems to work.
Thanks!
Jamie
I'm struggling with an excel issue that I'm sure there's a simply solution to. I've got a series of long lists of numbers (ex. 1.23423, 1.34535, 1.256588, etc...) that I'm hoping to condense into a shorter series numeric classes. I'm hoping for a final product where a column (column C below) contains the number of total values from the original list that fall into a certain range, or class. For example, in the table below, Class 1.1 would contain all values that fall between 1.1 and 1.2:
Row # Column A Column B Column C
Original List Classes Number in Class
1 1.123 1 0
2 1.243 1.1 1
3 1.256 1.2 1
4 1.333 1.3 3
5 1.345 1.4 2
6 1.367
7 1.432
8 1.456
I've found a COUNTIFS formula that will accomplish this. For example, if I wanted the values between 1.1 and 1.2, I would use:
=COUNTIFS($O$6:$O$959, ">=1.2", $O$6:$O$959, "<1.3")
The problem is, I need to do this hundreds of times, and so it's really inefficient to alter the formula each time manually. When I try to copy the formula downward, it restarts the criteria numbering and so my values are off. Does anybody know the best way to write the formula above so that I can copy it and have criteria ranges increase to reflect the values in the list? I'd like for the formula to copy in the following way:
=COUNTIFS($O$6:$O$959, ">=1.2", $O$6:$O$959, "<1.3")
=COUNTIFS($O$6:$O$959, ">=1.3", $O$6:$O$959, "<1.4")
=COUNTIFS($O$6:$O$959, ">=1.4", $O$6:$O$959, "<1.5")
Any clues? I've experimented with a bunch of things but nothing seems to work.
Thanks!
Jamie