Forum Discussion

Ryan Hilton's avatar
Ryan Hilton
Copper Contributor
Aug 31, 2018

Duplicate Data

I have a spreadsheet with 4,000 lines. When I am extracting the data from the original source, its in a 1 to 1 relationship. How do I get it from a 1 to 1 relationship to 1 to many relationship in excel. Or is there a way to just remove the duplicates in column A without losing the data in the same row in column B & C. Now I could be saying all of the previous statement wrong. I created a sample spreadsheet with what the data looks like and how I want it to look. Columns A,B,C is the data in its current step. I want the data to look like columns J,K,L. Any ideas?

5 Replies

  • SergeiBaklan's avatar
    SergeiBaklan
    Diamond Contributor

    Hi Ryan,

     

    You may add helper column D with formula

    =IF(COUNTIF($A$1:A1,A1)>1,"",A1)

    drag it down till end of the range.

    Filter column D and select only blank cells. On filtered range select column A except header row and press Delete. Remove the filter and helper column if not needed.

     

    Attached.

    • Ryan Hilton's avatar
      Ryan Hilton
      Copper Contributor

      Great, this is exactly what I was looking for. Is it possible to do this is power BI before I load the formula into excel?

      • SergeiBaklan's avatar
        SergeiBaklan
        Diamond Contributor

        Ryan, do you mean to do that transformation with Power Query into separate table?

        If you publish that workbook on Power BI services you may do what you want with it at any time.

Resources