Hi,
I'm trying to calculate the total/sum of the number of times an event occurred for a particular ID. For example, in the data sample below, in Column 4 I need to find the total number of times Column 3 is equal to 1 for a particular driverid from Column 1.
I've tried using various combinations of countifs and vlookup but was unsuccessful. Any solutions? TIA!
I'm trying to calculate the total/sum of the number of times an event occurred for a particular ID. For example, in the data sample below, in Column 4 I need to find the total number of times Column 3 is equal to 1 for a particular driverid from Column 1.
I've tried using various combinations of countifs and vlookup but was unsuccessful. Any solutions? TIA!
driverid | distance | ITC Flag | Total ITC by Driver |
27029 | 0.88 | 0 | |
27029 | 4.85 | 1 | |
27029 | 5 | 0 | |
27029 | 3.82 | 0 | |
27029 | 1.83 | 1 | |
27029 | 3.88 | 0 | |
27029 | 0.06 | 1 | |
34295 | 1.6 | 0 | |
34295 | 6.84 | 0 | |
34295 | 1.6 | 1 | |
34295 | 3.31 | 1 | |
34295 | 6.84 | 1 | |
34295 | 5.1 | 0 | |
53863 | 3.15 | 0 | |
53863 | 5.17 | 0 | |
53863 | 2.47 | 1 | |
53863 | 5.62 | 0 | |
53863 | 6.09 | 0 | |
53863 | 0.99 | 1 |