+ Reply to Thread
Results 1 to 1 of 1

Return closest value less than given number matching another column - Power Query ?

  1. #1
    Forum Contributor
    Join Date
    09-21-2016
    Location
    UK
    MS-Off Ver
    2016
    Posts
    131

    Return closest value less than given number matching another column - Power Query ?

    Hello all,

    I have got a workbook of three huge tables that come into one merging Power Query. Unfortunately I'm not very good at it as I just discovered it but already seen its benefits. Merging them three tables using functions would make calculation time extremely long.

    Columns A to E is a part of a original table.
    Column F checks what was the last trip id for the given name.
    Column G returns the last trips arrive mileage.
    Column H returns the difference between last trip arrive mileage and current trip depart mileage.
    Column I returns 1 if the difference is lower than 10 miles.

    Note: trip id's are not in the order so as date is not either.

    The question is:

    Is it possible to return result shown in column I using power query? From experience with power query i think this would be the most optimal option to calculate through data rather than using functions.



    power_query.JPG
    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. match closest date from within range matching ID number
    By Vend1301 in forum Excel General
    Replies: 4
    Last Post: 11-18-2015, 02:53 PM
  2. Replies: 2
    Last Post: 05-21-2015, 10:41 PM
  3. Match function to return column number for matching date errors
    By martinez77 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-07-2014, 10:39 AM
  4. [SOLVED] Matching closest name from column
    By jyothijayanna in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-17-2013, 10:56 AM
  5. [SOLVED] Find Average, Return Column Header of Number Closest To Average
    By djmyers in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 07-07-2013, 04:19 PM
  6. Return Closest Matching Filename - Macro
    By enidnunez in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-02-2013, 02:25 PM
  7. [SOLVED] match closest date from within range matching ID number
    By adrianjaeggi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-09-2012, 03:33 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