Hi - I'm trying to write a formula that will count the number of subs below a sub but failing. Need some help pls on how to do this.
An extract of my data sample is below.
For line 1 it will be all records i.e. 27 as below
For line 2 it should return only 1 as it only has 1 sub as line 4 is a 2 and therefore not a sub of line 2
For line 3 no subs so should return a 'nil'
For line 4 there are 24 records counted before the next record of 2 or lower
I need a formula I can drag down the page (col. 3) that can calculate the count of subs.
thanks
An extract of my data sample is below.
For line 1 it will be all records i.e. 27 as below
For line 2 it should return only 1 as it only has 1 sub as line 4 is a 2 and therefore not a sub of line 2
For line 3 no subs so should return a 'nil'
For line 4 there are 24 records counted before the next record of 2 or lower
I need a formula I can drag down the page (col. 3) that can calculate the count of subs.
thanks
Sub | Sub Check | Count of Subs | Logic |
1 | Yes | 27 | = count number of items > 1 |
2 | Yes | 1 | = count number of items > 2 |
3 | No | ||
2 | Yes | 24 | = count number of items > 2 |
3 | No | ||
3 | No | ||
3 | No | ||
3 | No | ||
3 | No | ||
3 | No | ||
3 | No | ||
3 | No | ||
3 | No | ||
3 | No | ||
3 | No | ||
3 | No | ||
3 | No | ||
3 | No | ||
3 | No | ||
3 | No | ||
3 | Yes | 2 | = count number of items > 3 |
4 | Yes | 1 | = count number of items > 4 |
5 | No | ||
3 | No | ||
3 | No | ||
3 | No | ||
3 | Yes | 1 | = count number of items > 4 |
4 | No |