• 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.

Remove Duplicates and Transpose ROWS to COLUMNS

Hello,

Attached is the excel file with a column (column name: Account) highlighted in YELLOW. There are repetitions of Account name column. The requirement is to create a data model with these Account names in column instead of rows by removing duplicate rows.

Could you please help in creating this model?

Thank You and Regards,
Pavan.
 

Attachments

  • Data Modeling.xlsx
    11.8 KB · Views: 6
Hi ,

Can you upload your workbook showing how the first 10 rows of data in the Sheet1 tab will look like after they have been processed , removing duplicates and transposing the Account names to columns instead of rows ?

Narayan
 
Hi Narayana,

Thank you for the reply. Here is the updated file with sample in 1st sheet.

Kindly suggest as I have thousands of rows of data of this sort. Do we need to use Power Query/Power Pivot/Pivot Table or any VBA code.

Please suggest.

Thank You and Regards,
Pavan.
 

Attachments

  • Data Modeling.xlsx
    12.7 KB · Views: 7
Hi ,

Can you confirm one point - will the duplicates be together throughout your data , or is it possible that they can be dispersed ?

Narayan
 
Hello John,

Thank you very much. I could do it with some extra time in normal Pivot Table.

However, Power Query can do it faster I guess. Could you please throw some light on how you achieved this task using Power Query which would be helpful.

Thank You and Regards,
Pavan.
 
I'll try to explain (english is not my native language):

1. Convert the basis range into a table (Select any cell of your data, and later press Ctrl + T, or go to Insert - Table).

2. Go to Data - From Table/Range. This show you the Data into Power Query.

3. In Power Query, Select Account Column, and later go to Transform - Pivot Column. In Column Value, put Amount Column.

4. Later, you can rearrange Salaries and Additional Pay Columns, like you need the columns.

5. In Home, Go to on Close and Load. Done!

I hope it helps. Blessings!
 
Back
Top