Excel 2010
I want to move the following data from it's vertical state to horizontal data. I would like a solution in VBA please. (I already have a formula).
Order = (A10) Result = (B10) runs over 1000 rows
| Order1 | result
| line1 | result 1
| line2 | result 1
| line3 | result 1
| line4 | result 1
| line5 | result 1
| line6 | result 1
| line7 | result 1
| line8 | result 1
| br |
| Order2 | result
| line1 | result 1
| line2 | result 1
| line3 | result 1
| line4 | result 1
| line5 | result 1
| line6 | result 1
| line7 | result 1
| line8 | result 1
I want it to resolve as:
Order 1 | result1 | result2 | result3 | result4 | result5 | result6 | result7 | result8 |
Order 2 | result1 | result2 | result3 | result4 | result5 | result6 | result7 | result8 |
Thanks in advance
EDIT
My current formula is this:
(C10) =IF(A3="Order1 ",1,0)
(result: 1)
(D10) =IF($C3=1,B3,0)
(result: result from line1)
(E10) =IF($C3=1,B10,0)
(result: result from line2)
and so on.
I then copy and autofill the entire sheet of data and it fills it all in. And I build the new table this way.
When I macro record it doesn't record the actual formulas that I have in the cells.