This seems like it would be simple...I'm trying to find a way to use a the results of a function as a cell reference in a range. For instance, if I have a column of 25 numbers, say B1:B25, and I want to select a range from B1 to a row specified by another function--let's say the result from C1--then how do I use that in my reference? What I want to do, in other words, is have Excel perform a function on the range from B1:B(result in C1). So if C1 is 14, the range is B1:B14; if C1 is 18, the range is B1:B18, etc.
I've tried using various ADDRESS, LOOKUP and OFFSET functions, but it doesn't seem to matter. Things like SUM B1:ADDRESS(14,11,4) and COUNTIF(B1:B(LOOKUP K13, K1:K6),3) don't work; of course the obvious and intuitive COUNTIF(B1:B(C1)) doesn't work, either. It seems as though this would not be this hard, and it probably isn't...I just can't find an answer in any of the "help" files.
I've tried using various ADDRESS, LOOKUP and OFFSET functions, but it doesn't seem to matter. Things like SUM B1:ADDRESS(14,11,4) and COUNTIF(B1:B(LOOKUP K13, K1:K6),3) don't work; of course the obvious and intuitive COUNTIF(B1:B(C1)) doesn't work, either. It seems as though this would not be this hard, and it probably isn't...I just can't find an answer in any of the "help" files.