+ Reply to Thread
Results 1 to 3 of 3

Power Query Functions -- LookupValue or vLookUp equivalent

  1. #1
    Registered User
    Join Date
    01-15-2018
    Location
    Midwest
    MS-Off Ver
    Office 365
    Posts
    55

    Power Query Functions -- LookupValue or vLookUp equivalent

    I am fairly new to Power Query and I am trying to create a function that looks up a specific field and returns the value of an associated column (basically like a vlookup function) to be used in a custom column function.

    From what I have found there seems to be no Power Query (M) code function to this, so I need to create my own. Is that true? I am not just merging tables, but trying to use a lookup value to feed a variable in my custom column function.

    I appreciate any insights or guidance on how to handle this problem. I am trying to avoid creating parameters to which I have to add information into that already exists in one of my default tables in the spreadsheet. Seems redundant and a prone to errors if I duplicate that effort.

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,973

    Re: Power Query Functions -- LookupValue or vLookUp equivalent

    There is way to do it. Though there is no direct function like VLOOKUP.

    There are multiple ways to accomplish this. But without knowing your data and what exactly you are trying to accomplish...

    It's rather difficult to give you the solution. Please upload sample workbook with sanitized data, with about 20 ~ 25 rows that accurately represent your actual data set.
    Last edited by CK76; 02-08-2018 at 02:53 PM. Reason: Edit: For Grammar.
    "Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something."
    ― Robert A. Heinlein

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Power Query Functions -- LookupValue or vLookUp equivalent

    set lookup_value cell as table
    set range of data as table
    load both as queries
    merge lookup_value query with data query by appropriate column

    any example?

+ 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. Sub-Forum for Power Query & Power BI?
    By AliGW in forum Suggestions for Improvement
    Replies: 7
    Last Post: 08-26-2018, 05:25 PM
  2. error in power query & power pivot
    By Baldev Kumar in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 01-03-2018, 01:34 AM
  3. Power Query, Native Query Paramter
    By Kyle123 in forum Excel General
    Replies: 0
    Last Post: 12-08-2017, 09:29 AM
  4. VBA and Power Query
    By Brawnystaff in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 05-16-2015, 05:10 AM
  5. VBA Get vlookup result into 3 textbox through different rng from one lookupvalue
    By MicroTees in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-10-2014, 03:30 AM

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