+ Reply to Thread
Results 1 to 6 of 6

Vlookup with Many to 1 Ratio

  1. #1
    Registered User
    Join Date
    11-05-2014
    Location
    SF
    MS-Off Ver
    Excel 2010
    Posts
    39

    Vlookup with Many to 1 Ratio

    I have a FeatureID (column A) in one tab, and an Alix ID (column J) that is empty. In a separate tab, I have a list of the Alix IDs, and they correspond to FeatureIDs. Unfortunately, there is oftentimes a 1 to many relationship between Alix IDs and Feature IDs (IE, 3 Feature IDs for each Alix ID).

    I need to be able to pull the Alix ID and have it fill in Column J every time there is a corresponding FeatureID.

    Any suggestions?

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Vlookup with Many to 1 Ratio

    Why not use a pivot table for this?
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Vlookup with Many to 1 Ratio

    Attach a sample workbook. Make sure there is just data to demonstrate your entire scenario. Mock up some of your desired results manually so we can see your stated goal.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    11-05-2014
    Location
    SF
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Vlookup with Many to 1 Ratio

    I've attached an example. I need the "AlixID" column populated with the info from the Alix IDs tab. Also, is there a way to make multiple Alix IDs show up in the "AlixID" column on the Master tab if there are such instances? That is less important and secondary, but would be awesome if possible!
    Attached Files Attached Files

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Vlookup with Many to 1 Ratio

    To get the first/primary match, this in B2, copied down:
    =IFERROR(INDEX('Alix IDs'!$A$2:$A$7,MATCH("*"&$A2&"*",'Alix IDs'!$B$2:$B$5,0)),INDEX('Alix IDs'!$A$2:$A$7,MATCH($A2,'Alix IDs'!$B$2:$B$5,0)))

  6. #6
    Registered User
    Join Date
    11-05-2014
    Location
    SF
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Vlookup with Many to 1 Ratio

    Thanks so much! Really appreciate it!

+ 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. How do i graph ratio
    By mcjavier in forum Excel General
    Replies: 2
    Last Post: 08-09-2014, 04:14 AM
  2. Ratio
    By Alf in forum The Water Cooler
    Replies: 5
    Last Post: 05-01-2013, 02:42 AM
  3. Ratio
    By pychon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2011, 12:27 PM
  4. [SOLVED] Divide x/y should give Ratio x:y,How to express ratio in excel
    By arvind3738 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-10-2006, 03:29 AM
  5. How do I express a ratio?
    By Jen in forum Excel General
    Replies: 2
    Last Post: 02-27-2006, 08:10 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