Consulting

Results 1 to 3 of 3

Thread: Formula to return two multiple lookups in one cell ?

  1. #1

    Formula to return two multiple lookups in one cell ?

    Hi,

    Please take a look at the screenshot below.

    pic1.jpg

    The list on the left consists of containers and products - listed individually

    The list on the right consists of a unique description and package type combo.

    I'm now trying to put the associated containers onto the right hand side list. See highlighted cells.

    This is what I'm trying to achieve. Can this be done with standard formulas? BTW, I have access to the new dynamic array formulas, so that could also be an option.

    I've attached a copy of a dummy workbook.

    lookup - single cell.xlsx

    Just to let you know, I've tried this formula:

    =TEXTJOIN(" / ",TRUE,IF(F2=$B$1:$B$6,$A$1:$A$6,""))
    Which retrieves the containers based on one criteria... But upon attempting to use another criteria such as:

    =TEXTJOIN(" / ",TRUE,IF(AND(F2=$B$1:$B$6,G2=$C$1:$C$6),$A$1:$A$6,""))
    Gives me a blank cell?


    Thanks
    Last edited by ashleyuk1984; 07-31-2019 at 06:43 PM.

  2. #2
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,876
    Array-enter:
    =TEXTJOIN(" / ",TRUE,IF((($B$2:$B$6=F2)*($C$2:$C$6=G2))=1,$A$2:$A$6,""))
    Attached Files Attached Files
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  3. #3
    Perfect p45cal
    Thank you very much.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •