+ Reply to Thread
Results 1 to 3 of 3

Find the destination and return date from the itinerary of air-ticket

  1. #1
    Registered User
    Join Date
    11-27-2019
    Location
    Tokyo, Japan
    MS-Off Ver
    MS Excel 2016
    Posts
    1

    Question Find the destination and return date from the itinerary of air-ticket

    My first post to the forum and thank you for reading.

    I have the following data which is the itinerary of an air-ticket.
    I would like to find out the destination and return date.

    itinerary 3.PNG

    The destination should be PEK and the return date is 20200405.

    Some background:

    - Under 1 air-ticket number, there should be by maximum 4 segments. Therefore for any itinerary with over 4 segments, the data from 5th segments will be on the next row with a new conjunction ticket number. Hence the whole itinerary of this case is NRT-MFM-WUX-PEK-MFM-NRT.

    - For any segment with no air transportation (such as segment 3 (WUX-PEK)), that will be a VOID segment with no data of date.

    The logic is:

    - Flight date and origin of segment 4 are said to be the return date and the destination, because the flight date of segment 4 and its previous valid segment (i.e. segment 2) are with the longest gap time.

    I wonder what kind of excel formula works best to solve it.

    Thank you very much in advance.

  2. #2
    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,926

    Re: Find the destination and return date from the itinerary of air-ticket

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    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

  3. #3
    Valued Forum Contributor saravnepali's Avatar
    Join Date
    01-14-2019
    Location
    Sydney Australia
    MS-Off Ver
    2010
    Posts
    447

    Re: Find the destination and return date from the itinerary of air-ticket

    You have not attached the spreadsheet, its hard with the image.

    Its a lot easier with sample data and the result you want, logic included on the comments

    Looking at the information, can we not get simple hlookup OR INDEX formula to get date and destination (PEK) - information already on Column T & U on the attached ( I guess)
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    - this will give you the date 20200405
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    - this will give you the DESTINATION PEK
    If you think someone helped you, click on the "* Add Reputation" as a way to say thank you.

    If your problem is solved, go to Thread Tools and select Mark This Thread Solved

+ 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. Travel Admin & Customer itinerary spreadsheet
    By Byambadorj in forum Excel General
    Replies: 5
    Last Post: 05-05-2019, 11:42 AM
  2. Ticket Number Date (Start/End) Correction Formula (NESTED IF)
    By ychoi01 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-27-2017, 05:07 PM
  3. Which formular can I use to create a itinerary table
    By pele09 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-27-2014, 10:44 PM
  4. itinerary calendar in 2002 version
    By anon125 in forum Excel General
    Replies: 2
    Last Post: 07-18-2014, 05:05 AM
  5. Replies: 11
    Last Post: 02-06-2013, 03:34 AM
  6. Replies: 3
    Last Post: 06-27-2012, 03:08 PM
  7. Excel 2007 : Ticket Date Count
    By 4sacobb in forum Excel General
    Replies: 1
    Last Post: 07-25-2011, 04:15 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