+ Reply to Thread
Results 1 to 5 of 5

Match index not sure the best way

  1. #1
    Forum Contributor
    Join Date
    09-24-2017
    Location
    Vic Australia
    MS-Off Ver
    Office 365 Apps for enterprise
    Posts
    147

    Match index not sure the best way

    Good afternoon

    I have 3 sheets
    picking sheet gets updated every few hours then gets delete at end of shift with new next days work
    Timeslot Tracker sheet gets replaced at end of shift
    Pick order sheet will get all the information from the 2 other sheets to make a list from
    only the headers will stay

    I have set up a sample of how I am trying to set up the Pick order sheet

    I have tried to use vlookup I think match index will be better cause its needs to look left and right
    and return the same Truck ID and load numbers and pick up time with different Order ID

    On pick order sheet
    The order the table needs to be sorted is Truck Id Pick up time
    the problem I have is the load number is not unique there can be different Order ID under the same Load number Which is why the vlookup I was trying to do is not working cause it have to return
    mult results from the same load number

    I have attached a sample with the first 6 Truck ID's some days we can have up to 60 truck ID's with up to 150 Order ID Trying to sort this data out has been a lot of work

    The main problem I have is the only thing the time slot tracker and picking sheet have in common are the load no it is it in any random order I have deleted all other data on the sheets that are not needed for the sample

    picking and Timeslot tracker Sheets cells cant change order as they are pulled from our system at work via a export

    any help would be great

    JustinwB
    Attached Files Attached Files

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Match index not sure the best way

    Someone maybe able to come up with a formula solution but this Macro will work if you can use it. See attached workbook. Click button...


    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by mike7952; 01-25-2018 at 04:39 AM.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Forum Contributor
    Join Date
    09-24-2017
    Location
    Vic Australia
    MS-Off Ver
    Office 365 Apps for enterprise
    Posts
    147

    Re: Match index not sure the best way

    Good afternoon mike7952

    you are the best this works perfectly
    did not even think of using a Macro Still a very beginner with excel formulas
    have not used much macros at all Do you use software/addon to be able to write that up or was that all going on having learning excel over a long time

    I found 1 Bug when I Press Click here it deletes all data from Pick order which is great etc it also deletes the header
    I went over all the code

    With Worksheets(cShTimeslot)
    arr = .Range("B2", .Cells(Rows.Count, "G").End(xlUp))
    End With
    With Worksheets(cShPickOrder)
    With .Range("A2", .Cells(Rows.Count, 2).End(xlUp).Offset(1)).Resize(, 7) changed Rows.Count, from 1 to 2 which seem to fix the problem
    .ClearContents
    .Borders.LineStyle = xlNone
    End With

    Still looking over the code cant work out how it all works
    Lots more learning to do

    Thanks again for your help

    JustinwB
    Last edited by justinwb; 01-25-2018 at 05:32 AM.

  4. #4
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Match index not sure the best way

    Add the line in Red at the bottom to add the headers. Add no software or add-on, its be years of learning.

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    09-24-2017
    Location
    Vic Australia
    MS-Off Ver
    Office 365 Apps for enterprise
    Posts
    147

    Re: Match index not sure the best way

    Thanks Mike7952

    you are awesome

    one day I love be able to read code like this still many years off


    enjoy your weekend

    JustinwB

+ 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] INDEX+MATCH instead of VLOOKUP+MATCH, why is INDEX a better choice and how to re-write?
    By Renejorgensen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2016, 10:54 AM
  2. [SOLVED] Index / Match - match 3 input values and return the results from the index
    By t83357 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2016, 07:34 PM
  3. [SOLVED] Match-Index in stead of Index-Match lookup Array among Arrays
    By Numnum in forum Excel General
    Replies: 2
    Last Post: 10-15-2015, 02:08 PM
  4. INDEX MATCH MATCH/OFFSET MATCH MATCH with named ranges
    By Andrew-Mark in forum Excel General
    Replies: 3
    Last Post: 02-27-2015, 10:56 PM
  5. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  6. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  7. Replies: 3
    Last Post: 05-02-2013, 01:31 AM

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