+ Reply to Thread
Results 1 to 6 of 6

Simplifying postal codes for input in TMS system

  1. #1
    Registered User
    Join Date
    10-30-2019
    Location
    NL
    MS-Off Ver
    2016
    Posts
    3

    Simplifying postal codes for input in TMS system

    Hi everybody,

    I want to merge different postal codes from Germany into one postal code zone to upload it in a TMS system. Each zone is created by a "from postal code" to a "to postal code".

    There are two options for each postal code:
    - a transittime of two days - described as "DDE_GNK02A"
    - a transittime of three days - described as "DDE_GNK03A"

    For example: Postal codes ranging from 01617 to 01619 have a transit time of two days, and therefore needs to be included in zone DDE_GNK02A.

    All postal codes have been divided into each of these two zones, however this needs more simplification:

    I now have some unnecessary detailed zones, for example:
    From postal code 01617 to postal code 01619 = DDE_GNK02A

    And the next one in line:
    From postal code 01620 to postal code 01623 = DDE_GNK02A

    As this is the same zone, it can be specified easier as:
    From postal code 01617 to postal code 01623 = DDE_GNK02A

    As my file has about 8000 different rows with these postal codes, I was wondering if there could be a formula which can simplify my file.


    Thanks and regards,
    Aron
    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,023

    Re: Simplifying postal codes for input in TMS system

    Confused. What do you expect to see? Where do you expect to see it?
    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
    10-30-2019
    Location
    NL
    MS-Off Ver
    2016
    Posts
    3

    Re: Simplifying postal codes for input in TMS system

    If the postal codes in the next row are in the same zone as the previous one, then I want to merge this.

    current situation:
    Row 1: From postal code 01617 to postal code 01619 = DDE_GNK02A
    Row 2: From postal code 01620 to postal code 01623 = DDE_GNK02A

    change to:
    Row 1: From postal code 01617 to postal code 01623 = DDE_GNK02A
    Row 2: can be deleted

    hope this helps.

  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,023

    Re: Simplifying postal codes for input in TMS system

    1. Add 01616 to B2.

    2. Helper column in H2:
    =IF(G1<>G2,MAX($H$1:H1)+1,H1)

    3. From:
    =IFERROR(INDEX($B$2:$B$23,MATCH(ROWS($1:1),$H$2:$H$23,0)),"")

    4. To:
    =IF(N3="","",LOOKUP(2,1/($H$2:$H$23=ROWS($1:1)),$C$2:$C$23))

    5. Code:
    =IF(N3="","",VLOOKUP(N3,B:F,5,FALSE))

    6. see sheet. You may need ; as the separator.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-30-2019
    Location
    NL
    MS-Off Ver
    2016
    Posts
    3

    Re: Simplifying postal codes for input in TMS system

    It worked perfectly, thanks Glenn!

    You saved me a lot of time and frustration :-)

  6. #6
    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,023

    Re: Simplifying postal codes for input in TMS system

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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] Postal Codes Format
    By billgyrotech in forum Excel General
    Replies: 7
    Last Post: 12-11-2015, 03:56 PM
  2. Formatting of US Postal Codes in Excel
    By TrafficTrader in forum Excel General
    Replies: 2
    Last Post: 10-03-2014, 01:44 PM
  3. Distance between Canadian Postal Codes
    By lesleyhollett in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-17-2013, 10:47 AM
  4. [SOLVED] Format for Canadian Postal Codes
    By rmcc in forum Excel General
    Replies: 25
    Last Post: 07-24-2012, 02:04 PM
  5. IF and OR help for postal codes
    By Richard Bunt in forum Excel General
    Replies: 1
    Last Post: 10-09-2009, 06:30 AM
  6. Adding Canadian Postal Codes to Excel 07
    By bandaid8 in forum Excel General
    Replies: 5
    Last Post: 05-22-2009, 01:58 PM
  7. [SOLVED] Distances between Postal Codes
    By Irfan in forum Excel General
    Replies: 1
    Last Post: 05-31-2006, 05:55 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