+ Reply to Thread
Results 1 to 2 of 2

To return multiple value using VLOOKUP function

  1. #1
    Registered User
    Join Date
    10-27-2010
    Location
    Mumbai
    MS-Off Ver
    Excel 2003
    Posts
    6

    To return multiple value using VLOOKUP function

    Hi,
    I got stuck when trying to check a matching value in multiple rows using VLOOKUP(...) function.
    Pls see attached excel file for complete details.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: To return multiple value using VLOOKUP function

    Hi

    One way would be to use an extra column which concatenates your Item and Colour, and use this range as your "lookup" range.

    See attached workbook, where in a newly inserted column A, I have used the formula
    =A2&B2
    and copied down

    To test if the product exists, you don't need a lookup, but the faster Countif function.
    =IF(COUNTIF($A$2:$A$6,$C9&D$8),"Y","N")
    Copy across and down

    To get the price for the product then
    =IF(COUNTIF($A$2:$A$6,$C9&D$8),VLOOKUP($C9&D$8,$A$2:$D$6,4,0),"")
    Attached Files Attached Files
    --
    Regards
    Roger Govier
    Microsoft Excel MVP

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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