Attached is a sample data set. The primary issue is that this is quite the process in excel and while a few times would not be that big of a deal, I have in excess of 100 data series to transform like this. Trying to find a way to speed this up. I am wanting to get a single row that would look like this. To give some context, the period field is for the quarter and month1, month2, month3 are the 3 months that make up the individual quarter. It would the indcode following by the period 1 values (month1, month2,month3) arranged left to right by periodyear with left being the min and so on. I do not need someone to do all the work but some clues as to what has to go in the query would be nice.
2002 34 36 38 38 40 42 44 46 48 50 50 50 42 44 46