+ Reply to Thread
Results 1 to 2 of 2

Compare Multiple Rows and Pick largest value from a Column

  1. #1
    Registered User
    Join Date
    12-10-2013
    Location
    dallas
    MS-Off Ver
    Excel 2010
    Posts
    1

    Compare Multiple Rows and Pick largest value from a Column

    Hi Folks,

    Greetings !.

    Please see data in the attached image in Col A thru Col D. In Col E, I want to populate the max value for the same part # from Col C or Col D depending upon value in Col B.

    I have included a sample of the expected results in Col E for illustration purposes.

    For example Row 3,5,6 are all part # 1 with Col B =”Y”, suggesting they are interchangeable parts, therefore, I would like the formula to have ability to pick 10 (since its largest between 3,10,0) from Col C.

    I have tried to put it in simple terms, but please let me know if you feel there is a gap in my explanation.
    Capture5.PNG

    Any help will be much appreciated
    Thanks

    TR

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Compare Multiple Rows and Pick largest value from a Column

    =MAX(SUMPRODUCT(($A$1:$A$8=A1)*($C$1:$C$8)),SUMPRODUCT(($A$1:$A$8=A1)*($D$1:$D$8)))

    Copy down as needed
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

+ 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. Compare 2 sheets pick up unique and copy rows to another Sheet
    By dungoc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-23-2013, 10:08 AM
  2. Sort between bold rows with value of largest to smallest in the fourth column
    By minks in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-07-2013, 06:27 PM
  3. Return name with largest value in multiple column array
    By saslotteroy in forum Excel General
    Replies: 4
    Last Post: 01-24-2012, 06:15 PM
  4. Pick list on a sheet - multiple rows?
    By quartz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-23-2005, 08:06 PM
  5. [SOLVED] Formula to compare multiple rows values based on another column?
    By Murph in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-20-2005, 11:06 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