I would like to be able to create a function that would be able to tally up the number of values in columns L2, L3, and L4 that are greater than 0 as a function of some name.
Name L1 L2 L3 L4
Carl 1 1 0 2
Carl 0 1 4 1
Joe 3 0 3 1
Joe 2 2 1 0
For example, someFunction(Carl) = 5 and someFunction(Joe) = 4
I do not want to sum up the values, for example someFunction(Joe) = 7 is incorrect. I hope this makes sense, I am pretty stuck on this. Thanks!