+ Reply to Thread
Results 1 to 4 of 4

Pull Highest Cell Value that Meets Conditions

  1. #1
    Registered User
    Join Date
    01-06-2017
    Location
    Wisconsin
    MS-Off Ver
    2010
    Posts
    11

    Pull Highest Cell Value that Meets Conditions

    I'm trying to make a formula to pull the greatest value in a list, only if it meets criteria.

    Apples 24
    Apples 24
    Orange 98
    Cantalope 3
    Apple 6
    Pear 44
    Orange 88
    Apple 33

    I would want a function that would return the fruit with the highest value, if it's listed.

    EX:
    Apple:33
    Banana: -
    Cantalope:3
    Orange:98
    Peach: -
    Pear:44

    I should have given more specification. Here is my project. I'm trying to get the "units" on the first sheet to pull from "Production" only if there is a value, and only take the highest value.
    Attached Files Attached Files
    Last edited by Phonix; 01-13-2017 at 05:32 PM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Pull Highest Cell Value that Meets Conditions

    Hi Phonix,

    I think you are looking for a MAX in a Pivot Table.. See:
    https://www.youtube.com/watch?v=hO_2nxRcpZg
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,317

    Re: Pull Highest Cell Value that Meets Conditions

    Why not use a pivot table...

    Create a header row

    column A = Fruit
    column B = Count

    Row Labels >> Fruit
    Values >> Max of count
    HTH
    Regards, Jeff

  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: Pull Highest Cell Value that Meets Conditions

    Note that in your sample you have both apples and apple in the top table.

    Data Range
    A
    B
    C
    D
    E
    1
    Apple
    24
    Apple
    33
    2
    Apple
    24
    Banana
    3
    Orange
    98
    Cantalope
    3
    4
    Cantalope
    3
    Orange
    98
    5
    Apple
    6
    Peach
    6
    Pear
    44
    Pear
    44
    7
    Orange
    88
    8
    Apple
    33
    9
    ------
    ------
    ------
    ------
    ------


    This array formula** entered in E1 and copied down:

    =IFERROR(1/(1/MAX(IF(A$1:A$8=D1,B$1:B$8))),"")

    ** 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.
    Last edited by Tony Valko; 01-13-2017 at 05:21 PM.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Pull highest value out of cell that contains multiple values
    By TotallyLost in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-08-2016, 02:43 PM
  2. [SOLVED] Formula to pull highest cell value from range
    By sryder in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-06-2016, 07:33 PM
  3. Copy a Row if Cell Meets Conditions across two workbooks
    By elapo21 in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 08-30-2012, 11:36 AM
  4. Copy a Row if Cell Meets Conditions
    By elapo21 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-07-2012, 03:04 PM
  5. VBA: Copy cell if specific column meets 2 conditions
    By Aakron in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-24-2012, 03:29 PM
  6. Replies: 3
    Last Post: 03-23-2010, 06:50 PM
  7. [SOLVED] Count Cells if diff cell meets conditions
    By DJS in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-12-2006, 11:50 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