+ Reply to Thread
Results 1 to 6 of 6

Vlookup Against multiple values in a cell?

  1. #1
    Registered User
    Join Date
    04-15-2016
    Location
    England
    MS-Off Ver
    2010
    Posts
    14

    Vlookup Against multiple values in a cell?

    Hi,

    Reference workbook
    I have 2 columns A and B, A contains multiple project numbers and B contains a single value that applies to those project numbers.

    A1 will contain 5 project numbers and B1 will contain 1 reference value for those 5 project numbers.

    Target workbook
    I have a 2nd work book with each project number as a row (split out like any rational human being would do). I need to put the reference in B1 above, into each project line in this 2nd workbook.

    I have tried a vlookup with an approximate match but that doesn't work....

    Any advice or am i screwed and have to Crtl-F everything....?

    Thanks!

    EDIT: Attached workbook, so i need to pull the reference from sheet 2 to sheet 1 against the project codes.
    Attached Files Attached Files
    Last edited by Rince91; 04-15-2016 at 06:58 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,091

    Re: Vlookup Against multiple values in a cell?

    Can you attach the workbook here?

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window (or use the paperclip icon).
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    04-15-2016
    Location
    England
    MS-Off Ver
    2010
    Posts
    14

    Re: Vlookup Against multiple values in a cell?

    great thanks, didn't realise that was a feature!

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Vlookup Against multiple values in a cell?

    It appears that project numbers in the reference sheet are always unique entries, in which case try this in B2 of target sheet, and fill down.

    =SUMIF('Refference sheet'!$A:$A,"*"&A2&"*",'Refference sheet'!B:B)

    Note that if any project number is duplicated in the reference sheet then this will give false results.

  5. #5
    Registered User
    Join Date
    04-15-2016
    Location
    England
    MS-Off Ver
    2010
    Posts
    14

    Re: Vlookup Against multiple values in a cell?

    Excellent thank you very much this worked great, didnt return results for everything but i think its best that can be achieved!! Thank you!!

  6. #6
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Vlookup Against multiple values in a cell?

    Looks like it fails when there is only one project number in a cell on the reference sheet, this should sort that out.

    =MAX(SUMIF('Refference sheet'!$A:$A,"*"&A2&"*",'Refference sheet'!B:B),SUMIF('Refference sheet'!$A:$A,A2,'Refference sheet'!B:B))

+ 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. Vlookup multiple values in one cell and sum
    By diannal82 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-28-2015, 12:16 PM
  2. Replies: 10
    Last Post: 07-25-2015, 01:41 PM
  3. Replies: 3
    Last Post: 07-24-2014, 01:58 AM
  4. [SOLVED] VLookup on a Cell has multiple values
    By hasanpmp in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 05-19-2014, 08:12 AM
  5. Vlookup to find one value in a cell that has multiple values
    By Riggs18 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-29-2013, 12:07 PM
  6. Vlookup multiple values within a cell? is it possible?
    By AdamParker in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-29-2008, 11:33 AM
  7. vlookup, multiple values, sum values into one cell??
    By Phillips L in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-08-2005, 08:35 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