Lux Aeterna
Board Regular
- Joined
- Aug 27, 2015
- Messages
- 191
- Office Version
- 2019
- Platform
- Windows
Hello everyone!
It's a bit messy in my head so I'll put up an example for you.
Lets say than in the past 4 months, I had 10 tests. I would like my excel to count how many As, Bs, Cs, and Ds I had in January, how many in February etc.
However I'd like to specify the end range of numbers by myself. For January, for example, the countif range would be A6 (that's fixed) to A8. For February A9 to A10, for March A11 to A13, and for April A14 to A15.
So, I'd like my excel to modify the countif function (or any other function you think is appropriate) according to the last test number (F7:F10 range).
For example, G7 cell should have =COUNTIF(C6:C8;"A"), because F7 is 3.
If F7 was 5, I'd like the countif function to auto-change to =COUNTIF(C6:C10;"A")
Accordingly, the G8 cell should have =COUNTIF(C9:C10;"A"), because F8 is 2. And so on.
Overall, I'd like to be able to modify the countif range according to the values I manually insert in F column.
Hope I you can understand it the way I tried to describe it.
PS. If there's a better function to use, I am fine with it. But I'd like to avoid VBAs since I already use some in my file.
It's a bit messy in my head so I'll put up an example for you.
Lets say than in the past 4 months, I had 10 tests. I would like my excel to count how many As, Bs, Cs, and Ds I had in January, how many in February etc.
However I'd like to specify the end range of numbers by myself. For January, for example, the countif range would be A6 (that's fixed) to A8. For February A9 to A10, for March A11 to A13, and for April A14 to A15.
So, I'd like my excel to modify the countif function (or any other function you think is appropriate) according to the last test number (F7:F10 range).
For example, G7 cell should have =COUNTIF(C6:C8;"A"), because F7 is 3.
If F7 was 5, I'd like the countif function to auto-change to =COUNTIF(C6:C10;"A")
Accordingly, the G8 cell should have =COUNTIF(C9:C10;"A"), because F8 is 2. And so on.
Overall, I'd like to be able to modify the countif range according to the values I manually insert in F column.
Hope I you can understand it the way I tried to describe it.
PS. If there's a better function to use, I am fine with it. But I'd like to avoid VBAs since I already use some in my file.