• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Normalisation of data...

Hi ,

Can you explain what you want to do ? The title of the post uses the word normalization , but I am not able to understand.

Narayan
 
Maybe I am misunderstanding the terminology...

I've uploaded a spreadsheet with 2 tabs, one is the original data and the other is what I am trying to achieve

Thanks!
 

Attachments

Hi:

Try this macro
Code:
Sub test()

Application.ScreenUpdating = False

Dim myarray As Variant, myarray1 As Variant

i& = Sheet1.Cells(1, Columns.Count).End(xlToLeft).Column - 3
j& = Sheet2.Cells(Rows.Count, "E").End(xlUp).Row + 1

For c& = 2 To Sheet1.Cells(Rows.Count, "A").End(xlUp).Row
    myarray1 = Sheet1.Range("E1:AB1").Value
    Sheet2.Range("E" & j & ":E" & i).Value = Application.WorksheetFunction.Transpose(myarray1)
    myarray = Sheet1.Range("E" & c & ":AB" & c).Value
    Sheet2.Range("F" & j & ":F" & i).Value = Application.WorksheetFunction.Transpose(myarray)
    Sheet1.Range("A" & c & ":D" & c).Copy
    Sheet2.Range("A" & j & ":D" & i).PasteSpecial
    Application.CutCopyMode = False
    j& = Sheet2.Cells(Rows.Count, "E").End(xlUp).Row + 1
    i& = i + j - 2
Next

Application.ScreenUpdating = True

End Sub
 

Attachments

Back
Top