+ Reply to Thread
Results 1 to 4 of 4

Vlookup Data Scrambled.

  1. #1
    Registered User
    Join Date
    04-15-2008
    Posts
    17

    Vlookup Data Scrambled.

    Good Evening

    I have a large amount of data from a client that I need to unscramble, I have attached a screenshot of a simplified sample version of what I am looking at.

    Capture.PNG

    What I am wanting to do is to Put all the P-001, etc references down a column (that is my line identifier) for the A, B, C references across the top and create a grid. The reason for this is because some references are missing in the source information, ie 1 line has information for A, B, C, E (D is missing), whilst another line only has A, B, F. The problem is there are no gaps as the source info is a CSV and there is no accommodation made in the file for the missing values, they are just not there.

    So I need to sort out the information so all the data is kept together. in a grid and I am comparing apples to apples on a per line basis.

    The information I received is about 500 lines down and probably 32 columns across. In previous years I have manually sorted it (and I felt my brain cells die as I did it). I think the answer lies between index, match, offset and a vlookup - but I have been wracking my brain for a while now and all I have gotten is a headache.

    I have attached an excel file with the simplified source information in 1 tab and the grid pattern of how I would like it.

    Any help would be much appreciated.

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,714

    Re: Vlookup Data Scrambled.

    Put this formula in cell C4 of the Result sheet:

    =IFERROR(INDEX(Source!$C$3:$N$27,MATCH($B4,Source!$B$3:$B$27,0),MATCH(C$3,Source!$C3:$N3,0)+1),"")

    Then copy across and down.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    04-15-2008
    Posts
    17

    Re: Vlookup Data Scrambled.

    You, sir, are an absolute saviour.

    Thank you.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,714

    Re: Vlookup Data Scrambled.

    Glad to help, and thanks for the rep.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post and mark this thread as SOLVED.

    Pete

+ 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. [SOLVED] Email signature is scrambled.
    By lapot in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-18-2014, 11:47 AM
  2. Letters getting scrambled when moved down a row
    By Larbec in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-20-2014, 12:17 AM
  3. Data in table is not sorted properly, its scrambled at 10 min mark.
    By Destroy in forum Word Programming / VBA / Macros
    Replies: 11
    Last Post: 02-07-2014, 05:15 PM
  4. Scrambled hyperlinks
    By mrice in forum Excel General
    Replies: 3
    Last Post: 11-05-2012, 06:01 PM
  5. Rows are scrambled when sorting by column
    By ripley006 in forum Excel General
    Replies: 1
    Last Post: 01-13-2011, 11:25 AM
  6. data from quickbooks POS to excel is scrambled
    By Deniseyellow in forum Excel General
    Replies: 1
    Last Post: 06-01-2009, 04:20 PM
  7. Replies: 3
    Last Post: 10-01-2006, 07:54 AM

Tags for this Thread

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