+ Reply to Thread
Results 1 to 8 of 8

Create 2 Tables with Unique values Sorted in specific Order

  1. #1
    Forum Contributor
    Join Date
    07-19-2022
    Location
    Cairo, Egypt
    MS-Off Ver
    Office 365
    Posts
    128

    Question Create 2 Tables with Unique values Sorted in specific Order

    Hello Dears,

    I'm trying to automate extracting 2 tables Stacked side by side to each other as attached and sorted in a specific order.

    Each table contains the trips where the "In-S=1" column in the data table

    - Table Header is the Unique location where the Trips start from per direction and it should be sorted based on the earliest trip time.
    - Then add the most common/repeated location where the Trips are ending (It should be 1 Location)... For example, in Direction 1, Most of the trips are heading to a location called "KIT2".
    - Then inside each table list the sorted trip numbers under the "Trip Number" column per direction.
    - Then add the start time under the trip start location and end time under the trip end location.
    - Then add the Headway for each trip.

    I've tried the below formula to create the table headers but it didn't return the expected results.

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


    Appreciate your support, Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,017

    Re: Create 2 Tables with Unique values Sorted in specific Order

    Maybe

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-19-2022
    Location
    Cairo, Egypt
    MS-Off Ver
    Office 365
    Posts
    128

    Re: Create 2 Tables with Unique values Sorted in specific Order

    Thank you!

    I've edited it to be like this to put the most frequently occurring location in the [To] column

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,017

    Re: Create 2 Tables with Unique values Sorted in specific Order

    You are welcome.
    -----------------------------------
    If that takes care of your original question, please click on "Thread Tools" from the menu link above and mark this thread as SOLVED.

  5. #5
    Forum Contributor
    Join Date
    07-19-2022
    Location
    Cairo, Egypt
    MS-Off Ver
    Office 365
    Posts
    128

    Re: Create 2 Tables with Unique values Sorted in specific Order

    I've done almost everything, but I need your help to fill the start time for each trip based on the start location and the end time based on the end location in each table as attached
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,017

    Re: Create 2 Tables with Unique values Sorted in specific Order

    Ok, I try to solve it, but I haven't optimize it ^_^
    Maybe, you can combine all formulas.

    D3
    Please Login or Register  to view this content.
    G3
    Please Login or Register  to view this content.
    K3
    Please Login or Register  to view this content.
    M3
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by windknife; 06-08-2023 at 10:25 AM.

  7. #7
    Forum Contributor
    Join Date
    07-19-2022
    Location
    Cairo, Egypt
    MS-Off Ver
    Office 365
    Posts
    128

    Re: Create 2 Tables with Unique values Sorted in specific Order

    Thank you so much, I'm marking it as SOLVED

  8. #8
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,017

    Re: Create 2 Tables with Unique values Sorted in specific Order

    You are welcome.

+ 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. code to create columns with values from database in a specific order
    By riiiiiicjjj in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-30-2023, 03:34 PM
  2. Replies: 7
    Last Post: 11-12-2022, 05:39 AM
  3. Replies: 3
    Last Post: 11-20-2020, 03:14 PM
  4. Create Summary sheets as per values in Col E in a specific order
    By rehana402003 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-28-2019, 04:21 AM
  5. Replies: 2
    Last Post: 01-03-2017, 08:40 AM
  6. [SOLVED] create a unique list based on a specific phrase regardless of order
    By joannelittell in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-30-2013, 01:50 AM
  7. [SOLVED] Extract Unique Values from Long list and Put in Sorted Order
    By snapfade in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-08-2013, 09:10 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