+ Reply to Thread
Results 1 to 3 of 3

Vlookup Doesn't Recognise Identical Price

  1. #1
    Registered User
    Join Date
    09-03-2013
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    96

    Vlookup Doesn't Recognise Identical Price

    Hi all,

    I've attached an example sheet,
    which contains Product(s) / Name / Cost

    Example: E2:E5 I require the 4 lowest prices

    E2 =small(array,1)
    E3 =small(array,2)
    E4 =small(array,3)
    E5 =small(array,4)

    My problem is when I try to match names to the prices,
    It doesn't recognise an identical price that belongs to a different product. (See F2 & F3)
    Any help much appreciated, even a pointer in the right direction.

    Regards,
    Chad
    Attached Files Attached Files

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: Vlookup Doesn't Recognise Identical Price

    For most LookUps, you need key field to be unique. VLOOKUP by default will return first exact match. Thus Name5 is repeated twice.

    You need additional calculation to exclude already fetched item from Lookup.
    Also, you can't use VLOOKUP alone to look from right to left (it uses left most column to find value and return value of column specified in argument for the same row).

    Also shouldn't correct answer be...
    $5.00 Name 1
    $5.00 Name 14
    $6.00 Name 6
    $8.00 Name 12

    With your set up, you can use something like...

    =INDEX($B$2:$B$25,MATCH(0,COUNTIF($F$1:F1,$B$2:$B$25)+NOT(($C$2:$C$25=E2)),0))

    Confirmed as array (CTRL + SHIFT + ENTER).

    See attached.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    09-03-2013
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    96

    Re: Vlookup Doesn't Recognise Identical Price

    Thank CK, I'll try implementing it now,
    Yes mate you are correct, I manually entered lol (human error)
    correct answer be...
    $5.00 Name 1
    $5.00 Name 14
    $6.00 Name 6
    $8.00 Name 12

+ 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] Identical Text not identical (for =, vlookup, etc) MAKING ME CRAZY
    By jnt in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-22-2015, 09:57 PM
  2. [SOLVED] Vlookup function doesn't work on identical text
    By moty.98 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-17-2013, 11:35 AM
  3. [SOLVED] Add-in doesn't recognise named range
    By barryleajo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-03-2013, 03:48 AM
  4. Replies: 2
    Last Post: 10-13-2011, 11:43 AM
  5. Excel doesn't recognise date format for use with a macro
    By Mattireland in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-27-2010, 05:52 PM
  6. CALL SHELL doesn't recognise the directory
    By plancast in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-14-2009, 12:00 PM
  7. Replies: 1
    Last Post: 04-13-2005, 01:22 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