Share via

Pivot Table Data

Anonymous
2025-01-30T12:01:40+00:00

Hi,

I receive orders from a customer in the highlighted green section attached. In order to import the data into our Order System - we need to convert the data into the format in orange - columns J-M

How can this be done faster please as opposed to manually? It needs to incorporate their Customer PO (column H) too - as product codes appear more than once in the file.

Microsoft 365 and Office | Excel | For business | MacOS

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2025-01-30T17:17:58+00:00

This one should work. I missed “*5” in third formula.

=HSTACK(INDEX(H2:H38,ROUNDUP(SEQUENCE(COUNTA(H2:H38)*5)/5,0)),INDEX(A2:A38,ROUNDUP(SEQUENCE(COUNTA(A2:A38)*5)/5,0)),INDEX(C1:G1,MOD(SEQUENCE(COUNTA(A2:A38)*5)-1,5)+1),TOCOL(C2:G38))

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

7 additional answers

Sort by: Most helpful
  1. Anonymous
    2025-01-30T16:54:25+00:00

    Or you can use formula to convert it.

    =HSTACK(INDEX(H2:H38,ROUNDUP(SEQUENCE(COUNTA(H2:H38)*5)/5,0)),INDEX(A2:A38,ROUNDUP(SEQUENCE(COUNTA(A2:A38)*5)/5,0)),INDEX(C1:G1,MOD(SEQUENCE(COUNTA(A2:A38))-1,5)+1),TOCOL(C2:G38))

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2025-01-30T16:45:00+00:00

    Is it possible to share a test file? Then I can make changes on it and send it back to you?

    For sharing file, you may upload it to OneDrive or any other cloud drive and then post the link here.  *Please make sure you have removed any sensitive or private information in the sample file before uploading.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2025-01-30T16:29:18+00:00

    Hmm I am doing this on a Mac - I cannot see these options.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2025-01-30T16:20:01+00:00

    Try Power query unpivot function.

    1.Select your data range, Data>from table/Range.

    1. Remove unit column, Press Ctrl to select Vendor Style column and PO column

    Go to Tranfrom Tab>Unpivot other columns

    1. Adjust the column location renname the header and Load result to Excel.

    Was this answer helpful?

    0 comments No comments