0

I hv this format in excel (column):-

enter image description here

I wish to convert it into row:-

enter image description here

Is it possible ?

Thanks.

Bob
  • 865
  • 7
  • 20
  • 31

3 Answers3

0

Unpivot (eg as described here), drill down on the intersection of the two Grand Totals and move cells with blanks in ColumnB but values in third up to row two. Delete rows with blanks in ColumD. Change labels to suit.

Community
  • 1
  • 1
pnuts
  • 58,317
  • 11
  • 87
  • 139
0

It's simple with offsets:

Following your image you may write:

  • In cell B7: =$A$3

  • In cell C7: =OFFSET($A$3,0,(ROW(A7)-7)*2+1)

  • In cell D7: =OFFSET($A$3,0,(ROW(A7)-6)*2)

Then fill rows as necessary.

hstay
  • 1,439
  • 1
  • 11
  • 20
0

You can also unpivot using my unpivot add-in, after unmerging the top cells. You can use the below code to unmerge your top row first:

Sub UnmergeTopRow()

Dim lLastcol As Long, lcolLoop As Long

lLastcol = Cells(1, Columns.Count).End(xlUp).Column

Range("B1", Cells(1, lLastcol)).UnMerge

With Range("B1", Cells(1, lLastcol))
    .SpecialCells(xlCellTypeBlanks).FormulaR1C1 = "=RC[-1]"
    .Value = .Value
End With

End Sub
nutsch
  • 5,922
  • 2
  • 20
  • 35