+ Reply to Thread
Results 1 to 7 of 7

Vlook up to find Minimum value and maximum value if value has duplicate result

  1. #1
    Forum Contributor ryan4646's Avatar
    Join Date
    06-10-2013
    Location
    Australia
    MS-Off Ver
    Excel 2003, 2007
    Posts
    134

    Vlook up to find Minimum value and maximum value if value has duplicate result

    Dear all,

    I am having a problem to find out unit price of items which has same code but different price. I want to put the maximum value of the unit price and minimum value of the unit price with vlookup at B13 and C13 column.
    Search criteria should be based on code at A13. can any one give me perfect vlookup formula.

    Attaching file for your reference.
    Attached Files Attached Files
    Last edited by ryan4646; 02-08-2014 at 04:45 AM.
    thanks,

    Ryan

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Vlook up to find Minimum value and maximum value if value has duplicate result

    Hi

    a first attempt

    Please Login or Register  to view this content.

    Please Login or Register  to view this content.
    Hope it helps
    Attached Files Attached Files
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,373

    Re: Vlook up to find Minimum value and maximum value if value has duplicate result

    B14:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    C14:
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    and drag down ...

    Both formulae are array formulae and must be committed with Ctrl-Shift-Enter rather than just pressing Enter.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Contributor ryan4646's Avatar
    Join Date
    06-10-2013
    Location
    Australia
    MS-Off Ver
    Excel 2003, 2007
    Posts
    134

    Re: Vlook up to find Minimum value and maximum value if value has duplicate result

    hi canapone

    so it cannot be done by vlookup ? Thanks for ur help. it is working. I need one more your help describing the formula you used. could you please help me to describe it ?



    Quote Originally Posted by CANAPONE View Post
    Hi

    a first attempt

    Please Login or Register  to view this content.

    Please Login or Register  to view this content.
    Hope it helps

  5. #5
    Forum Contributor ryan4646's Avatar
    Join Date
    06-10-2013
    Location
    Australia
    MS-Off Ver
    Excel 2003, 2007
    Posts
    134

    Re: Vlook up to find Minimum value and maximum value if value has duplicate result

    Hi TMS

    it is showing #value!

    Quote Originally Posted by TMShucks View Post
    B14:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    C14:
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    and drag down ...

    Both formulae are array formulae and must be committed with Ctrl-Shift-Enter rather than just pressing Enter.


    Regards, TMS

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,373

    Re: Vlook up to find Minimum value and maximum value if value has duplicate result

    it is showing #value!
    Because ...

    Both formulae are array formulae and must be committed with Ctrl-Shift-Enter rather than just pressing Enter.

    Regards, TMS

  7. #7
    Forum Contributor ryan4646's Avatar
    Join Date
    06-10-2013
    Location
    Australia
    MS-Off Ver
    Excel 2003, 2007
    Posts
    134

    Re: Vlook up to find Minimum value and maximum value if value has duplicate result

    Hi TMS

    done. thanks.

+ 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. Replies: 1
    Last Post: 01-25-2013, 01:58 PM
  2. Find maximum and minimum value for each date
    By anna.gladkova in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-05-2012, 08:50 PM
  3. Maximum and Minimum
    By lurchybold in forum Excel General
    Replies: 6
    Last Post: 10-13-2010, 11:04 AM
  4. Find duplicate keywords, and list maximum
    By undergraduate in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-13-2010, 10:29 PM
  5. How do I find the cell reference that contains the minimum or maximum
    By fadsnet in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-08-2006, 11:55 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