+ Reply to Thread
Results 1 to 3 of 3

If multiple data values are true pick the largest one

  1. #1
    Registered User
    Join Date
    09-26-2007
    Posts
    5

    If multiple data values are true pick the largest one

    I'm looking for a formula that in my head starts with an IF statement, creates a table for itself and then chooses the largest value from among the positive results.

    IF(A1:A5="Yes",B1:B5.....

    If a user sets the value in A1:A5 to Yes, then I want the formula to grab the corresponding value from B1:B5. Should there be multiple Yes responses, I need the formula to grab the largest value from the corresponding column B values.

    Yes 1
    No 2
    No 3
    Yes 4
    Yes 5

    In this example column A has 3 YES responses and the corresponding values in column B are 1, 4 and 5. As 5 is the largest the formula would/should result in an answer of 5. If none of the column A values are YES, then the value returned should be 0.

    Your help and input would be greatly appreciated.

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: If multiple data values are true pick the largest one

    Try this; note that is is an array function and will need to be entered with CTRL+SHIFT+ENTER:

    Please Login or Register  to view this content.
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Registered User
    Join Date
    09-26-2007
    Posts
    5

    Re: If multiple data values are true pick the largest one

    Thank you Very Much! Your suggestion does indeed work

+ 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 Multiple Rows and Pick largest value from a Column
    By texas_ranger in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-10-2013, 05:21 PM
  2. Replies: 4
    Last Post: 01-08-2013, 09:04 AM
  3. Need Macro that will pick multiple criteria from duplicate values
    By jonnic14 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-02-2012, 12:11 AM
  4. Replies: 3
    Last Post: 05-20-2011, 09:13 AM
  5. [SOLVED] Excel 2007 : Pick "n" largest values and return subsequent data
    By vonborge in forum Excel General
    Replies: 1
    Last Post: 05-02-2011, 10:08 AM

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