+ Reply to Thread
Results 1 to 4 of 4

Excel - solution to (quickly) remove duplicate and change format

  1. #1
    Registered User
    Join Date
    09-17-2020
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    18

    Excel - solution to (quickly) remove duplicate and change format

    Hello,

    I currently have an Excel sheet which contains the data of order numbers, account name, service, productname (orderitem) and price per orderitem.
    Is there a way to change the data and format to remove the order number duplicates and spread out the order line items (and price) over different columns in a fast way?

    Please see attached Excel document for an example. In the first tab 'Current format' you can see how it's currently existing in the datasheet.
    On the second tab 'Req. format' you can find an example of how I would like the document/ data to be.

    Manual adjusting wouldn't be practical, since the original document contains thousands of records.
    (Btw, I don't even know if it's possible to make a quick solution for this. If this isn't possible you can tell me as well and I will try to find a different solution instead).

    Thanks in advance!

    ~ Niels
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Excel - solution to (quickly) remove duplicate and change format

    In A2, copied down:
    =IFERROR(INDEX('Current format'!$A$2:$A$14,MATCH(0,INDEX(COUNTIF($A$1:$A1,'Current format'!$A$2:$A$14),0),0)),"")

    In B2, copied acriss and dnown:
    =IF($A3="","",VLOOKUP($A2,'Current format'!$A:$C,COLUMNS($A:B),FALSE))

    In D2, copied across and dnown:
    =IFERROR(IF($A2="","",INDEX('Current format'!$E:$F,AGGREGATE(15,6,ROW('Current format'!$E$2:$E$14)/('Current format'!$A$2:$A$14=$A2),1+INT((COLUMNS($D:D)-1)/2)),1+MOD((COLUMNS($D:D)-1),2))),"")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    09-17-2020
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    18

    Re: Excel - solution to (quickly) remove duplicate and change format

    Quote Originally Posted by Glenn Kennedy View Post
    In A2, copied down:
    =IFERROR(INDEX('Current format'!$A$2:$A$14,MATCH(0,INDEX(COUNTIF($A$1:$A1,'Current format'!$A$2:$A$14),0),0)),"")

    In B2, copied acriss and dnown:
    =IF($A3="","",VLOOKUP($A2,'Current format'!$A:$C,COLUMNS($A:B),FALSE))

    In D2, copied across and dnown:
    =IFERROR(IF($A2="","",INDEX('Current format'!$E:$F,AGGREGATE(15,6,ROW('Current format'!$E$2:$E$14)/('Current format'!$A$2:$A$14=$A2),1+INT((COLUMNS($D:D)-1)/2)),1+MOD((COLUMNS($D:D)-1),2))),"")

    Thanks a lot!

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Excel - solution to (quickly) remove duplicate and change format

    You're welcome and thanks for the rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Macro to change formulas quickly on several worksheets.
    By taylorsm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-14-2017, 12:12 PM
  2. Excel format to CSV? need a solution
    By bcrockett101 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-17-2016, 05:59 PM
  3. How can I quickly change the Series names in the legend?
    By dmasters4919 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 11-13-2015, 09:50 AM
  4. Quickly Change Report Data Source
    By tampaC66 in forum Access Tables & Databases
    Replies: 11
    Last Post: 03-31-2015, 09:21 PM
  5. Replies: 1
    Last Post: 02-21-2014, 12:11 PM
  6. how to change sheets quickly
    By anthonycharles in forum Excel General
    Replies: 6
    Last Post: 03-16-2013, 04:10 PM
  7. How do I quickly change text case in Excel?
    By Llawler in forum Excel General
    Replies: 3
    Last Post: 01-18-2006, 12:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1