Results 1 to 5 of 5

Thread: Question on UDF LookUpConcat

  1. #1
    Junior Member
    Join Date
    Jul 2012
    Posts
    1
    Rep Power
    0

    Question on UDF LookUpConcat

    Hello, awesome function.

    I just have one quick question, might be an easy fix, but how do I change the "SearchString" to say lookup any value greater than 0?

    Ref: http://www.excelfox.com/forum/f22/lo...d-results-345/

    Thanks in advance!
    Last edited by Admin; 05-07-2013 at 07:39 AM.

  2. #2
    Junior Member
    Join Date
    Aug 2012
    Posts
    1
    Rep Power
    0

    Searching Multiple Criteria and then concatenating multiple results

    Hi Rick,

    As I posted on Oscar's forum, I'm trying to search for data using multiple criteria, and then concatenate the results. Please see the attachment for a sample. The end result is sort of like a pivot table, except that I want actual values, not summary data, and the return of multiple values if there are any.

    So for example in cell C7, I need to search columns I and J for the event that is taking place on 10/9 (the value in C6) in Room 1 (the value in A7). The Macro should return "10a-12p Lunch", as well as "1p-4p Breakout" in the same cell, ideally one on top of each other as of you were using Alt-Enter.

    Again in cell D8, the function would search for the value in D6 and A8 to find "6p-11:59 TearDown".

    I don't understand how to set this to lookup in multiple ranges, as I would using an INDEX MATCH type formula.

    Thank you for your help!
    Attached Files Attached Files

  3. #3
    Junior Member
    Join Date
    Oct 2012
    Posts
    1
    Rep Power
    0
    Rick,

    Is there any chance that you could adapt this to allow for multiple criteria/criteria ranges? Assuming my lookup table contains multiple columns by which I want to match my search criteria against, the only way I've been able to do this thus far is create a string in the first column of the lookup table concatenating all of my "search criteria" into a single string, and then searching for that string etc. Is there a way you could use a paramarray etc., to allow for a variable amount of multiple criteria and criteria ranges?

    Thanks,

  4. #4
    Junior Member
    Join Date
    May 2013
    Posts
    2
    Rep Power
    0

    Concatenate only if non-sequential numbers

    Rick,

    The information I am applying this to can give me results (always numbers) such as single numbers (2) or multiple numbers (2,4) but I have many instances where the result set is a sequential set of numbers (1, 2, 3, 4, 5). Is there a way to modify the code so the single numbers and multiple numbers will still be the way the code is set up (2 or 2,4), but if they are sequential numbers, use the minimum and maximum (i.e. 1, 2, 3, 4, 5 would become 1 - 5 or 11, 12, 13 would become 11-13)?

  5. #5
    Junior Member
    Join Date
    May 2013
    Posts
    2
    Rep Power
    0
    Rick,

    The information I am applying this to can give me results (always numbers) such as single numbers (2) or multiple numbers (2,4) but I have many instances where the result set is a sequential set of numbers (1, 2, 3, 4, 5). Is there a way to modify the code so the single numbers and multiple numbers will still be the way the code is set up (2 or 2,4), but if they are sequential numbers, use the minimum and maximum (i.e. 1, 2, 3, 4, 5 would become 1 - 5 or 11, 12, 13 would become 11-13)?

Similar Threads

  1. hard question
    By mahmoud-lee in forum Excel Help
    Replies: 1
    Last Post: 05-28-2013, 02:27 PM
  2. Trouble implementing UDF's
    By ProspectiveCounselor in forum Excel Help
    Replies: 4
    Last Post: 05-06-2013, 08:07 PM
  3. Workbook Event running VBA question
    By jamilm in forum Excel Help
    Replies: 4
    Last Post: 12-29-2012, 12:12 AM
  4. Question
    By lokvan in forum Excel Help
    Replies: 1
    Last Post: 12-04-2012, 08:49 AM
  5. Complicate Excel question?
    By Wilhelm Sorban in forum Excel Help
    Replies: 2
    Last Post: 07-21-2012, 05:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •