+ Reply to Thread
Results 1 to 12 of 12

UDF for Returning Results from Cross table

  1. #1
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    UDF for Returning Results from Cross table

    Hello,

    I'm looking for a UDF to check if a cell contains values that have a cross reference in a cross table.
    I hope the example will make clear what I mean.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: UDF for Returning Results from Cross table

    Here's the brute force method based entirely off the formatting of your example file.

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Re: UDF for Returning Results from Cross table

    Thanks for your help, but thats not what I was looking for.
    The results should be shown in range H24:H27 not in the cross table.
    The cross table is used to get to the results.

    An user enters values in lets say B24.
    along the entered values are to "codes" that have a crossreference in the table.
    These 2 codes should be returned in H24 (seperated by a comma)

  4. #4
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: UDF for Returning Results from Cross table

    Like this?

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Re: UDF for Returning Results from Cross table

    This is coming really close.
    It doesn't return the match "BHG,CDE" in the second example. (there can be more than one)

    And how do I get this all in an UDF?

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,596

    Re: UDF for Returning Results from Cross table

    Can you tell me the reason why

    BHGGFTHIS PLK.RRF/56 BGTCDE

    Become PLK,BGT,BHG,CDE

    In such pairing and order?

  7. #7
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Re: UDF for Returning Results from Cross table

    The user is not aware of the cross table and will use codes "at random".
    The solution should check the string for all instances with a cross reference in the table

  8. #8
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Re: UDF for Returning Results from Cross table

    btw, the order isn't that important.
    BHG,CDE,PLK,BGT is also ok

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,596

    Re: UDF for Returning Results from Cross table

    OK, then the pairing
    BHGGFTHIS PLK.RRF/56 BGTCDE

    I just don't understand this pairing.

    Are the Xs in teh first table come in play for the pairing?

  10. #10
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,596

    Re: UDF for Returning Results from Cross table

    H24:

    =CrossRef($B$3:$M$20,B24)

    Filldown

    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Re: UDF for Returning Results from Cross table

    Awesome!
    Exactly what I was looking for.
    Thank you Jindon!

  12. #12
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,596

    Re: UDF for Returning Results from Cross table

    You are welcome.

    I just didn't know the meaning of "X"s in the first place....

+ 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. Multiple lookup value but not returning table array results
    By swannee in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-14-2014, 02:12 PM
  2. formula for cross referencing partial match and returning values from 2 columns
    By 5thgenbliss in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-14-2013, 04:11 PM
  3. cross spreadsheet matching, returning result?
    By StrongHammer in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-03-2012, 07:05 AM
  4. Replies: 4
    Last Post: 06-29-2011, 07:46 AM
  5. Cross Post >> How to maintain history of exam results
    By leo73pk in forum Excel General
    Replies: 0
    Last Post: 03-28-2007, 05:11 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