Write a formula in cell X1 that will firstly check Row 1 for K,D,S,0,1 and 2, then find their corresponding values from Row A (along their columns) i.e. 19, 12, 11, 5 & 23, and finally return the highest number from these (i.e. 23). The formula can be pulled down in the subsequent yellow cells but all other rows must get corresponding values from Row A using the same criteria.
Bookmarks