+ Reply to Thread
Results 1 to 3 of 3

Macro needed to sort out courier reports

  1. #1
    Registered User
    Join Date
    04-25-2020
    Location
    Cambridge, England
    MS-Off Ver
    Excel 16.36 (20041300)
    Posts
    1

    Macro needed to sort out courier reports

    Hi
    I can get two reports from my courier service. The first is a a spreadsheet with the shipping date when it is entered onto their system.
    The second separate spreadsheet is the delivery report in a broadly similar format which shows the customers details when the items are delivered to their door.
    I need to compare the two worksheets and work out the time taken for delivery (find the same customer in both sheets and take the delivered time and date and subtract it from the dispatch time and date). Put the answer in a new column in the delivery spreadsheet with the delivery performance time next to the specific customer. Not all deliveries are tracked and show notifications for example shipments overseas do not always get a delivery notification.
    Not every shipped item has a deliver date, as some items get lost or cannot be delivered due to incorrect address etc.

    The courier will not produce this information for us, but some of their deliveries, which should be 48 hours, have taken over 14 days.

    Attached are short versions of each file.
    Any help will be greatly appreciated.
    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Macro needed to sort out courier reports

    Hi billio and welcome to the forum,

    Excel will do this problem if you help it a bit. You need to have column headdings on each of your files that are unique. Then look at this video about Power Query to collect the two tables and keep the two dates. I'd also tie the two together using the "SO-" number.

    https://www.ablebits.com/office-addi...s-power-query/

    hope this helps.
    Last edited by MarvinP; 04-26-2020 at 02:04 AM.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Macro needed to sort out courier reports

    See how next code can help
    It assumes that file "Shipped short form data.xlsx" is already loaded in Excel and the activesheet is sheet1 of file "Delivered Data1.xlsm"
    Please Login or Register  to view this content.
    Attached Files Attached Files
    - Battle without fear gives no glory - Just try

+ 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] Macro needed to auto-sort protected sheets
    By caitt in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-08-2017, 11:55 AM
  2. [SOLVED] Macro Needed to Sort Data in Columns
    By 823 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-15-2015, 09:16 AM
  3. Macro to group like data in a row no sort needed
    By Tensia in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-03-2015, 04:03 PM
  4. [SOLVED] Macro Needed to Auto Sort Column As Data Changes
    By Statzcom in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-02-2014, 04:46 PM
  5. macro needed to sort and sum from one sheet to another
    By recain in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-27-2013, 05:55 AM
  6. Macro to generate reports for questionnaire (separate reports for every form)
    By skyvik24 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-25-2013, 05:25 AM
  7. [SOLVED] Help needed with an auto sort macro!
    By Colin Strowbridge in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-26-2012, 03: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