Hi
I want to complete this style of logic in Excel but am not sure how. \\
values in a table B2:M2, they will contain either 3 types of values M100, H100 or NA. After M there may be any different number result between 0 and 100. So (M80, M82, M64 are valid).
H stands for Home and M stands for Motor. In O2 I am trying to calculate the average of Home and P2 the average of Motor.
So In my head the logic is.
But I can never figure out VBA very well to know how to do this.
I want to complete this style of logic in Excel but am not sure how. \\
values in a table B2:M2, they will contain either 3 types of values M100, H100 or NA. After M there may be any different number result between 0 and 100. So (M80, M82, M64 are valid).
H stands for Home and M stands for Motor. In O2 I am trying to calculate the average of Home and P2 the average of Motor.
So In my head the logic is.
Code:
If cell value begins M then:
strip the M:
sumMotor =+ cell
avg(sumMotor) into P2
strip the H:
sumHome =+ cell
avg(sumHome) into P2
else:
next Cell
if blank:
break.