+ Reply to Thread
Results 1 to 16 of 16

How to approach this issue with Tracking number (FedEx , UPS)

  1. #1
    Registered User
    Join Date
    11-07-2014
    Location
    California
    MS-Off Ver
    2010
    Posts
    54

    How to approach this issue with Tracking number (FedEx , UPS)

    I have a compiled list of tracking numbers I use from the following shipping providers FedEx and UPS in an excel file.

    The issue is that FedEx has their tracking number with extra values that don't need to be there.

    1. FedEx tracking number count = 32 will only use digits from 17-28 to track the shipment.
    2. FedEx tracking number count = 22 will only use the last 8-22 to track the shipment.
    3. FedEx tracking number count = 34 will only use the last 21-34 to track the shipment.

    and UPS if begins with 1Z ignore and go to next.

    I need the whole worksheet to format and extract only the necessary tracking number for record.

    How should I approach this?
    Last edited by khhoa; 12-08-2014 at 03:53 PM. Reason: Solved

  2. #2
    Valued Forum Contributor
    Join Date
    11-22-2014
    Location
    Arizona, USA
    MS-Off Ver
    Office 365
    Posts
    973

    Re: How to approach this issue with Tracking number (FedEx , UPS)

    What do you currently do?

    can you share this document or a sampling of the data with 2 or 3 of each criteria - with that we should be able to offer up solutions.

    I would imagine though, that you would know what you are entering and therefore will indicate if it is FedEx or UPS

    So if I was doing this it would be the following columns

    SHIPPER | Tracking Number | Usable Tracking Number

    Usable Tracking Number would be a formula....
    Formula would be the following based on what you have above...

    Please Login or Register  to view this content.
    ummm If I missed a parenthsis I apologize but that is roughly the setup I would go with to extract or make a Usable Tracking number

    Again, sample data would help to build this out instead of imagining what it could be -
    -If you think you are done, Start over - ELeGault

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: How to approach this issue with Tracking number (FedEx , UPS)

    Perhaps something like this?

    A
    B
    C
    D
    1
    FEDEX 1234567890123456789012
    22
    890123456789012
    2
    FEDEX 12345678901234567890123456789012
    32
    789012345678
    3
    FEDEX 1234567890123456789012345678901234
    34
    12345678901234
    4
    5
    UPS 1Z 1z1234567890123456789012 1234567890123456789012
    6
    UPS 1234567890123456789012 1234567890123456789012


    D1=IF(LEN(B1)=34,MID(B1,21,99),IF(LEN(B1)=32,MID(B1,17,12),MID(B1,8,99)))
    copied down

    D5=IF(LEFT(B5,2)="1Z",MID(B5,3,99),B5)
    copied down

    Or if you need it in 1, you would need some test to ID which is FEDEX and which UPS, then combine based on that
    =IF(A1="FEDEX",IF(LEN(B1)=34,MID(B1,21,99),IF(LEN(B1)=32,MID(B1,17,12),MID(B1,8,99))),IF(LEFT(B1,2)="1Z",MID(B1,3,99),B1))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    11-07-2014
    Location
    California
    MS-Off Ver
    2010
    Posts
    54

    Re: How to approach this issue with Tracking number (FedEx , UPS)

    Tracking number.PNG

    Please look at the photo, I use a barcode to scan the tracking number onto an excel file for the day. just a list going down. I need the excel file to just automatically convert to the highlighted in red.
    Attached Images Attached Images

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: How to approach this issue with Tracking number (FedEx , UPS)

    Please upload a sample of your workbook, not a picture of your data. Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    Also, not all members can upload picture files (Company firewalls and stuff)

    Your workbook should show a small desensitized example of the data you are working with and a manual mockup of the expected results.

  6. #6
    Registered User
    Join Date
    11-07-2014
    Location
    California
    MS-Off Ver
    2010
    Posts
    54

    Re: How to approach this issue with Tracking number (FedEx , UPS)

    Here is the upload of the sample work :

    FedExUPShelp.xlsx

  7. #7
    Valued Forum Contributor
    Join Date
    11-22-2014
    Location
    Arizona, USA
    MS-Off Ver
    Office 365
    Posts
    973

    Re: How to approach this issue with Tracking number (FedEx , UPS)

    Please Login or Register  to view this content.
    Place that in C2 or E2, the only example not in your data is if it is UPS and does NOT contain 1Z. If this happens it will take the entire Tracking number... other than that this is doing what you need I believe -

  8. #8
    Registered User
    Join Date
    11-07-2014
    Location
    California
    MS-Off Ver
    2010
    Posts
    54

    Re: How to approach this issue with Tracking number (FedEx , UPS)

    works great! is there a way I can embedded the code to the whole worksheet?

    for example if I scan a barcode in B2 I do not need the If statement in C2, B2 should just automatically convert.

    would this be done with macro? and enable code in the worksheet that is selected?
    Last edited by khhoa; 12-04-2014 at 07:13 PM.

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: How to approach this issue with Tracking number (FedEx , UPS)

    This works with your example:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Use the Fill Handle and copy down column C and all your entries in column B will automatically be converted for you.
    Last edited by newdoverman; 12-04-2014 at 09:18 PM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  10. #10
    Valued Forum Contributor
    Join Date
    11-22-2014
    Location
    Arizona, USA
    MS-Off Ver
    Office 365
    Posts
    973

    Re: How to approach this issue with Tracking number (FedEx , UPS)

    If you make it a table, and enter the formula in the top of column C it will auto fill as you add new entries to the table

  11. #11
    Registered User
    Join Date
    11-07-2014
    Location
    California
    MS-Off Ver
    2010
    Posts
    54

    Re: How to approach this issue with Tracking number (FedEx , UPS)

    The problem is that each column I have is dated with a date from 12/01/14 and 12/02/14 so on.. the issue is that I have complied this since 2009. I need to have the whole worksheet to just automatically change.

  12. #12
    Valued Forum Contributor
    Join Date
    11-22-2014
    Location
    Arizona, USA
    MS-Off Ver
    Office 365
    Posts
    973

    Re: How to approach this issue with Tracking number (FedEx , UPS)

    Make the entire table of data, a table... And if there is not an open column (C) insert a new column so that there is.

    Place the formula in C2 and it will apply to the entire list -

    To make the current data a Table... simply click on A1 (First header) tap CTRL+A, it will highlight the data to the end. Then while it is highlighted, hit CTRL+T then say okay...it is now a Table

  13. #13
    Registered User
    Join Date
    11-07-2014
    Location
    California
    MS-Off Ver
    2010
    Posts
    54

    Re: How to approach this issue with Tracking number (FedEx , UPS)

    Can I have if tracking number that starts with 1Z , have it copied to C column instead of ignore?

    at the moment it does not copy over so any tracking number that starts with 1Z is left a blank cell.

  14. #14
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: How to approach this issue with Tracking number (FedEx , UPS)

    This separates the tracking numbers. Change columns as required. the IZ numbers are in column D and the other numbers are in column C.

    See the second file that has column A eliminated and therefore puts IZ numbers in Column C with the other numbers in column B.
    Attached Files Attached Files
    Last edited by newdoverman; 12-08-2014 at 03:28 PM.

  15. #15
    Registered User
    Join Date
    11-07-2014
    Location
    California
    MS-Off Ver
    2010
    Posts
    54

    Re: How to approach this issue with Tracking number (FedEx , UPS)

    Hello newdoverman,

    Any possibility to not ignore 1Z in column C ?
    include the code on column D combination with column C to have all display of tracking number under one column "C"

  16. #16
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: How to approach this issue with Tracking number (FedEx , UPS)

    This will put all numbers in column C as requested.
    Attached Files Attached Files

+ 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. Shipment Tracking - UPS- DHL - FEDEX
    By iowitz in forum Excel General
    Replies: 2
    Last Post: 07-20-2014, 11:48 PM
  2. Replies: 1
    Last Post: 12-02-2013, 04:12 PM
  3. [SOLVED] Help for v-lookup approach instead of manually cell linking approach - Excel 2010
    By Mirisage in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-31-2013, 01:32 PM
  4. [SOLVED] FedEx tracking numbers in Excel
    By Adam J in forum Excel General
    Replies: 0
    Last Post: 07-24-2006, 02:40 PM
  5. SaveAs Issue - different approach
    By PLPE in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-08-2005, 08:05 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