+ Reply to Thread
Results 1 to 5 of 5

Finding maximum against a value

  1. #1
    Registered User
    Join Date
    11-21-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    33

    Finding maximum against a value

    Could anyone help me with the formula for below problem.
    I need to find the item name with the maximum price in a new column against the name.
    Attached the excel for the reference.
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Finding maximum against a value

    Ideally, you want to have the names repeating down column C.

    We can force this in a few ways. You can start with putting the formula =C2 in cell C3 then copying cell C3 and pasting it in all blank cells of column C.
    You can use Find & Select > Go to Special to select all blank cells in column C before pasting.

    Now that your data is clean, you can put this in G2:
    =INDEX(D$2:D$10,MATCH(C2&MAX(IF(C$2:C$10=C2,E$2:E$10)),$C$2:$C$10&E$2:E$10,0)) Ctrl Shift Enter for older versions of Excel

    Drag the formula down column G
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-21-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: Finding maximum against a value

    I think you made the formula bit complex. Can we have vlookup formula and find the maximum value.

  4. #4
    Registered User
    Join Date
    11-21-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: Finding maximum against a value

    Quote Originally Posted by 63falcondude View Post
    Ideally, you want to have the names repeating down column C.

    We can force this in a few ways. You can start with putting the formula =C2 in cell C3 then copying cell C3 and pasting it in all blank cells of column C.
    You can use Find & Select > Go to Special to select all blank cells in column C before pasting.

    Now that your data is clean, you can put this in G2:
    =INDEX(D$2:D$10,MATCH(C2&MAX(IF(C$2:C$10=C2,E$2:E$10)),$C$2:$C$10&E$2:E$10,0)) Ctrl Shift Enter for older versions of Excel

    Drag the formula down column G
    Can you vlookup and find the maximum value as per the column Expected Result

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Finding maximum against a value

    VLOOKUP returns the first match, not the maximum value.

+ 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. Finding an adjacent value after finding a maximum value on another column
    By VanCricken in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-10-2016, 11:58 AM
  2. Replies: 7
    Last Post: 10-07-2015, 03:01 PM
  3. Finding the maximum occurence of a value
    By greengirl in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-07-2015, 03:19 PM
  4. Finding Maximum
    By dvoit91 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-26-2011, 10:50 PM
  5. Replies: 2
    Last Post: 08-14-2006, 01:35 AM
  6. [SOLVED] Finding Maximum
    By Roger H. in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-10-2006, 09:35 PM
  7. finding maximum value
    By adnan buran in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-04-2005, 09:52 AM

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