Hi guys
I have Exel 2016
Im trying to use the CountIf function. It works well here: =COUNTIF($A$1:$A$5,"<="&$A1)
but the issue is It uses $A$1:$A$5 for everything. if i change the code to COUNTIF($A1:$A5,"<="&$A3) and remove the dollar symbol then it doesnt preserve the range at all and produces different results for every single row.
I need it to isolate a1 to a5 range while im working with any row that goes with 1-5. otherwise i will have to create new formulas for every range.
When i use a6 i need it to change the range to a6 - a 11 and so forth..
I tried to use the INDIRECT feature but I just get endless errors.
Any help is appreciated.
EDIT:
The issue is it goes to a7-a10 right after that and changes with every row
I wanted to isolate each range and treat a1-a5 as a group.
I wanted to sort all the values of a1-a5 into consecutive order and so I needed a1-a5 to remain focused on a1-a5 until it reaches a6.
So im pretty much trying to isolate each group and sort the values from smallest to largest. If it changes with each row then its not doing the right comparisons with all available values. So im struggling with that
So Im pretty much trying to get eg:
a1-a5 in consecutive order
a6-a10 in consecutive order
a11-a15 in consecutive order
and so forth.
I was going to use =INDEX($A$1:$A$5,MATCH(ROWS($C$1:C4),$C$1:$C$5,0)) to help me organise everything afterwards. but yeah i got stuck.
Bookmarks