+ Reply to Thread
Results 1 to 3 of 3

Custom VLOOKUP like function, to display all results in series with duplicate lookup items

  1. #1
    Registered User
    Join Date
    08-20-2012
    Location
    Londonish, England
    MS-Off Ver
    Excel 2010
    Posts
    58

    Custom VLOOKUP like function, to display all results in series with duplicate lookup items

    Hi All,

    I am currently working currently with a custom function, which works very nicely for what I've asked it to do, which is to namely show me all sets of results when an ISBN (which I use for the lookup) appears more than once in a sequence of ISBNs and Qtys, basically the two sets of data I look at are identical when it comes to the ISBN columns, I just have to look up one against another to give me the correct Qtys. So for example:

    Worksheet 1 - is where I am pulling the lookup data from:

    ISBN QTY
    9781234567890 1
    9788545161601 1
    9781234567890 2

    I then open a second sheet that has the same ISBNs and use the following custom function:

    Please Login or Register  to view this content.
    Which would give me an output when I look up against the other data of:

    WorkSheet 2 - where i'd enter the lookup formula
    ISBN QTY LOOKUP COLUMN (WHERE I WOULD ENTER THE Singlecellextract Formula)
    9781234567890 1 1,2
    9788545161601 1 1
    9781234567890 2 1,2

    Which up to now has served me well. However what I'd really like to do now is progress it one stage further, where basically the formula will enter the formula in the same sequence that the lookup data is in, in the original sheet. So when I do the lookup on the second sheet it would present the data in the same sequence:

    ISBN QTY
    9781234567890 1
    9788545161601 1
    9781234567890 2

    Obviously if I use the regular VLOOKUP formula I would only ever get the top result, which is not any good for my current needs with this.

    Any help with this much appreciated!

    Many thanks

    Chriz

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,952

    Re: Custom VLOOKUP like function, to display all results in series with duplicate lookup i

    I'm a little unclear on what you want: would you enter three ISBNs like this:

    9781234567890
    9788545161601
    9781234567890

    and then you want this

    9781234567890 1
    9788545161601 1
    9781234567890 2

    How would you know to enter the second 9781234567890?
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    08-20-2012
    Location
    Londonish, England
    MS-Off Ver
    Excel 2010
    Posts
    58

    Re: Custom VLOOKUP like function, to display all results in series with duplicate lookup i

    Hi Bernie,

    Thanks for your reply. It's a pretty hard one to explain!

    When I have time I'll try and upload a work book to explain.

    Thanks

    Chriz

+ 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. [SOLVED] Displaying unique results from a custom made lookup formula.
    By countryfan_nt in forum Excel General
    Replies: 10
    Last Post: 08-21-2016, 12:59 PM
  2. VBA code for custom function that returns detail results of array function
    By onechipshot in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-10-2015, 06:30 PM
  3. [SOLVED] Lookup for specific value for duplicate items.
    By Max_excel in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-29-2014, 07:49 AM
  4. Replies: 7
    Last Post: 08-22-2013, 07:06 PM
  5. [SOLVED] One Lookup Value, Extract Multiple Items, Display Horizontally
    By andrugrasu in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-30-2013, 10:29 AM
  6. Using VB to calculate a series of formulas and display the results in a cell.
    By Benisato in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-02-2012, 04:45 PM
  7. [SOLVED] Unable to display mail merge results using Preview Results function
    By trandle in forum Word Formatting & General
    Replies: 1
    Last Post: 05-30-2012, 12:29 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