Hi,
I am perplexed by what is likely a simple excel problem and would appreciate any help.
- I wish to calculate the simple statistics of:
a. the maximum,
b. the minimum, and
c. the total count,
..of values from the 'DH' column (table below) which correspond to a value of 'TSC' from the 'Code' column; for each unique value in the 'ID' column.
Subset of data I have:
ID, DH, Code
a 1 TSC
a 2 TAU
a 3 TSC
b 1 TMS
b 28 TMS
c 1 TSC
c 2 TSC
c 3 TSC
c 4 TLC
c 5 TLC
c 30 TCB
d 1 TLC
d 2 TLC
d 3 TSC
d 4 TLI
Required result: (unique values from 'ID' column corresponding to value of 'TSC' from within the 'Code' column):
ID, DH_max, DH_min, Code_count_TSC
a 3 1 2
c 3 1 3
d 3 3 1
Thanks for any help! (/useful equations..)
Bookmarks