+ Reply to Thread
Results 1 to 3 of 3

How to classify a list

  1. #1
    Registered User
    Join Date
    08-25-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    How to classify a list

    Hi,

    I am preparing a spreadsheet for a shipping brokerage report and I need to classify a series of cargo trips depending on their origin port and their destination port. So if the origin port is any UK port (from a list of about 20 ports) to any US port (from a list of about 30 ports) then it will return a category code that represents 'transatlantic'.

    Same for, for example - any Asian port to any other Asian port will return a category code for inter-Asia.

    And many other combinations Mid East to Europe, Australia to Asia, Inter-US etc.

    Overall I have a list of about 200 ports that can be both origin and destination ports and depending on the combinations of ports they will be categorised with about 15 category codes depending on what type of journey is being made.

    I am thinking of using VLOOKUP tables to categories the individual start and finish ports into region sub-categories, then combine those categories to produce a trip-code and then an IF func to assign a category code.

    Any other ideas?

    Thanks,
    Reganbaha

  2. #2
    Valued Forum Contributor Miraun's Avatar
    Join Date
    04-03-2009
    Location
    New England
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    554

    Re: How to classify a list

    Hey Reganbaha;

    I can't think of any other workaround besides adding a few informational cells... However, for the dashboard, main part of the spreadsheet, you can stick to one major vlookup function that could look something like:

    =Vlookup(Concatenate(Vlookup(Port Code 1,Port Reference Table,2,False),Vlookup(Port Code2,Port Reference Table,2,False)),Movement Classification Table,2,False)

    That way you only need a single listing of Ports in the Port Reference Table, along with their region designations, and then a single concatenated Key table:

    Concatenated Key Table examples:
    UKUS Transatlantic
    USUK Transatlantic
    AsiaAsia Inter-Asia
    Going for Guru! Click the Star to the bottom left of this post if I helped!

  3. #3
    Registered User
    Join Date
    08-25-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: How to classify a list

    Hi Miraun,

    Thanks for your reply, I have basically done exactly how you described, but in the individual steps (ie. Vlookup port 1 code; Vlookup port 2 code; concatenate, Vlookup journey code) so I may just play with making it a bit more streamlined as you suggest.

    Thanks
    RBH

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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