+ Reply to Thread
Results 1 to 13 of 13

VlOOKUP with 2 conditions

  1. #1
    Registered User
    Join Date
    03-08-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2012
    Posts
    13

    Lightbulb VlOOKUP with 2 conditions

    Hello, my problem is that:

    In Matrix spreeshet i select the product (in yellow) and i need that the colunm Name and Number be filled with the names in spreeshet TABELA and the respectives colours.

    Folha2.xlsx

    Thks a lot

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: VlOOKUP with 2 conditions

    I'm having a hard time understanding what you're looking for. Could you add an "After" example so show what the spreadsheet should look like after the VLookup?
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  3. #3
    Registered User
    Join Date
    03-08-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2012
    Posts
    13

    Re: VlOOKUP with 2 conditions

    Folha2.xlsx
    Try now, and thks for the attencion

  4. #4
    Registered User
    Join Date
    03-08-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2012
    Posts
    13

    Re: VlOOKUP with 2 conditions

    you can help me?

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: VlOOKUP with 2 conditions

    Named Ranges added:

    A
    B
    1
    Beru
    '=TABELA!$L$2:$M$21
    2
    BeruHeader
    '=TABELA!$L$2:$M$2
    3
    BocasDeCarga
    '=TABELA!$I$2:$K$21
    4
    BocasDeCargaHeader
    '=TABELA!$I$2:$K$2
    5
    Lion
    '=TABELA!$C$2:$H$21
    6
    LionHeader
    '=TABELA!$C$2:$H$2
    7
    8
    NameList
    '=TABELA!$C$2:$H$2
    9
    ProductHeaders
    '=AFTER!$I$5:$U$5
    10
    ProductName
    '=AFTER!$O$4

    DropDown Validation List:
    Lion, Bocas De Carga, Beru

    Formula fill in After I6:U23
    Please Login or Register  to view this content.
    Note, used SUBSTITUTE to remove spaces from product name to match range names
    Attached Files Attached Files
    Ben Van Johnson

  6. #6
    Registered User
    Join Date
    03-08-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2012
    Posts
    13

    Re: VlOOKUP with 2 conditions

    Hello, great work but i need that the names apear and desapear if the name have or not colors in the selected product. And i need that is possible add product in the table and the formula works without changing nothing. Itīs possible?
    Thks

  7. #7
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: VlOOKUP with 2 conditions

    Hi
    Used helper column in tabela sheet
    Uploaded the file
    Have a look
    Attached Files Attached Files
    Appreciate the help? CLICK *

  8. #8
    Registered User
    Join Date
    03-08-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2012
    Posts
    13

    Re: VlOOKUP with 2 conditions

    Thks for help me, the return result is not OK, i dont now how but is incorretand if i need to add a new prouct? e need to edit the formulas?

  9. #9
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: VlOOKUP with 2 conditions

    yes you should edit the formula. Referenced area in formula is constant. If you want to add new products you should edit the formula and enlarge its referred area. Its up to you how large this area will be. You should consider to be added products in future.

  10. #10
    Registered User
    Join Date
    03-08-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2012
    Posts
    13

    Re: VlOOKUP with 2 conditions

    Ok, but the sheet you send me is not OK, is not importing the value correct, compare wth the table

  11. #11
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: VlOOKUP with 2 conditions

    Quote Originally Posted by SaPires View Post
    Ok, but the sheet you send me is not OK, is not importing the value correct, compare wth the table
    Yes you were right. Sorry for that. Paste below formula to I6 cell and drag it right-down. Enter Ctrl+Shift+Enter after pasting the formula.
    =IFERROR(INDEX(TABELA!$C$3:$O$21,MATCH(AFTER!$E6,TABELA!$B$3:$B$21,0),MATCH(1,($O$4=TABELA!$C$1:$O$1)*(AFTER!I$5=TABELA!$C$2:$O$2),0)),"")

  12. #12
    Registered User
    Join Date
    03-08-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2012
    Posts
    13

    Re: VlOOKUP with 2 conditions

    Perfect, thks a lot

  13. #13
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: VlOOKUP with 2 conditions

    Quote Originally Posted by SaPires View Post
    Perfect, thks a lot
    You are welcome. Thank you for feedback.

+ 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 with 3 Conditions
    By ryanch69 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-06-2013, 07:16 AM
  2. [SOLVED] Vlookup - Country conditions (Multiple conditions)
    By dluhut in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-26-2013, 11:42 AM
  3. Vlookup with conditions
    By MarkD24 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-27-2011, 11:56 AM
  4. VLOOKUP with 2 conditions
    By RSantos in forum Excel General
    Replies: 5
    Last Post: 06-26-2006, 01:15 PM
  5. [SOLVED] VLOOKUP w/ 2 or more conditions
    By Jaye in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-16-2006, 08:40 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