I have data that looks like this:
Group: Class: Value:
A 1 51
A 2 60
B 1 55
B 2 67
B 3 70
C 1 53
C 3 65
Need the data to look like this:
Group: 1: 2: 3:
A 51 60 0
B 55 67 70
C 53 0 65
The code I am trying is doing two things wrong: 1. Skipping rows 2. not matching value to class column which causes an issue for Group C since it puts the 65 value into class 2 not and not in class 3 for the final row (row 3 in this example).
=IFERROR(IF(AND($B2=1,COLUMN()<3+MATCH($B2,$B3:$B11000,0)),OFFSET(B2,COLUMN()-3,2-COLUMN()),""),"")


