I require a spreedsheet that count how many at a particular time.
It works in the newest version of excel but i cant seem to get it to work on excel prior to the newest version.
Ive tried various ways and still cant get the formula to work correctly.
It works in the newest version of excel but i cant seem to get it to work on excel prior to the newest version.
Ive tried various ways and still cant get the formula to work correctly.
Test Rota.xlsx | ||||
---|---|---|---|---|
G | H | |||
3 | ||||
4 | 0300 | 4 | ||
5 | 0400 | 4 | ||
6 | 0500 | 5 | ||
7 | 0600 | 8 | ||
8 | 0700 | 10 | ||
9 | 0800 | 10 | ||
10 | 0900 | 7 | ||
11 | 1000 | 5 | ||
12 | 1100 | 5 | ||
13 | 1200 | 5 | ||
14 | 1300 | 5 | ||
15 | 1400 | 2 | ||
16 | 1500 | 2 | ||
17 | 1600 | 2 | ||
18 | 1700 | 2 | ||
19 | 1800 | 2 | ||
20 | 1900 | 2 | ||
21 | 2000 | 2 | ||
22 | 2100 | 0 | ||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
H4 | H4 | =SUMPRODUCT(COUNT(IF(LEFT($A$2:$A$27,2)=LEFT(G4,2),1,""))-COUNT(IF(RIGHT($A$2:$A$27,2)=LEFT(G4,2),1,""))) |
H5:H22 | H5 | =SUMPRODUCT(COUNT(IF(LEFT($A$2:$A$27,2)=LEFT(G5,2),1,""))-COUNT(IF(LEFT(RIGHT($A$2:$A$27,4),2)=LEFT(G5,2),1,"")))+H4 |