+ Reply to Thread
Results 1 to 5 of 5

VLOOKUP and return specific text from multiple choices

  1. #1
    Registered User
    Join Date
    09-07-2011
    Location
    Temecula, CA
    MS-Off Ver
    Excel 365
    Posts
    6

    VLOOKUP and return specific text from multiple choices

    so three days now working on this, hope someone can help

    sheet1 has 6 columns

    1 Part number / Name / code a / code b / code c / code d
    2 12345 / apple / yes / no / yes / yes
    3 75647 / Orange / no / no / no / yes
    4 09000 / Banana / yes / yes / yes / yes

    sheet2 has 3 columns

    1 part number / name / code
    2 12345 / apple / b
    3 12345 / apple / a
    4 12345 / apple / c
    5 09000 / Banana / c
    6 09000 / Banana / d

    I want to show on sheet1 if part number 12345 matches sheet2 part number 12345 & has a code a in column C

    =IFERROR(VLOOKUP([part number],'Sheet2'!,3,FALSE),"")

    except i only want it to show if there is a code A in that column for that part number

    THANKS!!!
    Last edited by akpaine41; 05-14-2018 at 04:51 AM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: VLOOKUP and return specific text from multiple choices

    What is the output to look like?

    Attach a sample workbook (not image).

    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.

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: VLOOKUP and return specific text from multiple choices

    Attach a sample workbook. 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.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Registered User
    Join Date
    09-07-2011
    Location
    Temecula, CA
    MS-Off Ver
    Excel 365
    Posts
    6

    Re: VLOOKUP and return specific text from multiple choices

    don't care if it is "Yes" and "No" or "1". Just something to show that that code populates under that Part Number.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: VLOOKUP and return specific text from multiple choices

    In C2

    =IFERROR(IF(INDEX(Sheet2!$C$2:$C$6,MATCH(1,(Sheet2!$A$2:$A$6=$A2)*(Sheet2!$C$2:$C$6=C$1),0))=C$1,"yes",""),"no")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    THEN copy across and down

    Row 1 has "a","b" ..etc

+ 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] VLOOKUP to return specific text based on content of other cell
    By bundyanimal in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-14-2018, 01:18 AM
  2. [SOLVED] Use specific formula based on text entry Only 3 different choices
    By STxFarmer in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-13-2015, 01:40 PM
  3. Search for multiple texts in cell, return specific text
    By mariur89 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 11-24-2014, 06:43 PM
  4. VLOOKUP with multiple criteria. Return a specific date
    By gmazz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-14-2014, 08:03 PM
  5. choose one specific return from multiple returns of Vlookup
    By loaiky in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-28-2013, 12:06 PM
  6. Vlookup on multiple choices
    By ledzepe in forum Excel General
    Replies: 2
    Last Post: 02-17-2006, 02:10 PM
  7. How can VLOOKUP identify between multiple choices for > 1 batch?
    By Ivan Thorn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-09-2005, 09:06 AM

Tags for this Thread

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