+ Reply to Thread
Results 1 to 6 of 6

Combination of If, VLOOKUP, MAX possible?

  1. #1
    Registered User
    Join Date
    05-04-2014
    Location
    Germany
    MS-Off Ver
    Excel 2013
    Posts
    3

    Combination of If, VLOOKUP, MAX possible?

    Hey guys,

    i got the following problem. I need the price of a specific product number. The product number is not unique and there are different rates associated with it. Therefore I'd like to combine IF, VLOOKUP and MAX to give me the result.
    pic.PNG

    In this example you can see a list with 3 product numbers with 3 different product numbers (A2:10) and 3 different rates (B2:10).
    I only want to display the prices with the highest rates each in the green table. Is that possible?


    Thanks alot in advance!

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Combination of If, VLOOKUP, MAX possible?

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Registered User
    Join Date
    05-04-2014
    Location
    Germany
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Combination of If, VLOOKUP, MAX possible?

    Thanks for your reply. Sorry it's my first time posting in this forum. Here is an example workbook.
    Attached Files Attached Files
    Last edited by FromExToCel; 05-04-2014 at 09:24 AM.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Combination of If, VLOOKUP, MAX possible?

    Try this...

    Data Range
    G
    H
    1
    Nr
    Price
    2
    A12345
    $ 10.00
    3
    B12345
    $ 21.00
    4
    C54321
    $ 36.00
    5
    D13578
    $ 42.00


    Enter this array formula** in H2:

    =INDEX(Tabelle1[Price],MATCH(MAX(IF(Tabelle1[Nr]=Tabelle25[[#This Row],[Nr]],Tabelle1[Rate])),IF(Tabelle1[Nr]=Tabelle25[[#This Row],[Nr]],Tabelle1[Rate]),0))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down if it doesn't automatically get copied down by Excel.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    05-04-2014
    Location
    Germany
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Combination of If, VLOOKUP, MAX possible?

    Thanks, works like a charm!

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Combination of If, VLOOKUP, MAX possible?

    You're welcome. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ 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. Combination VLookUp
    By croeder in forum Excel General
    Replies: 1
    Last Post: 06-09-2011, 09:55 PM
  2. Vlookup combination
    By Geoff1184 in forum Excel General
    Replies: 1
    Last Post: 09-16-2010, 05:56 PM
  3. And() if() vlookup() combination
    By meyero90 in forum Excel General
    Replies: 6
    Last Post: 05-06-2010, 06:00 PM
  4. Combination of H & Vlookup??
    By giantwolf in forum Excel Formulas & Functions
    Replies: 37
    Last Post: 09-06-2005, 07:05 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