+ Reply to Thread
Results 1 to 8 of 8

Find a maximum value by one value that belongs to multiple values

  1. #1
    Registered User
    Join Date
    02-20-2020
    Location
    Amsterdam
    MS-Off Ver
    365
    Posts
    42

    Find a maximum value by one value that belongs to multiple values

    Hello everyone,

    I am not so sure on how to make my question clear in the title, so let me explain:

    My input is a "Grp" number in cell B3. In this case this number is "0".
    Now I would like to know what "node1" numbers belong to "Grp 0" . This must be done in the red box.
    Now we know what "node1" numbers belong to "Grp 0", I would like to have the maximum value of u-X that belong the node1 numbers from "Grp" (Red box)
    The result should be 0.979. Is there any way to this in one formula?

    Excel question.png


    Any help is greatly appreciated!
    Attached Files Attached Files
    Last edited by CoenH; 11-23-2021 at 08:20 AM.

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Find a maximum value by one value that belongs to multiple values

    Please try

    =MAX(INDEX(SUMIFS(H11:H30,G11:G30,B11:B30)*(C11:C30=B3),))
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Find a maximum value by one value that belongs to multiple values

    can you have helper columns? it can be done but is messy. How many rows in your real data?

  4. #4
    Registered User
    Join Date
    02-20-2020
    Location
    Amsterdam
    MS-Off Ver
    365
    Posts
    42

    Re: Find a maximum value by one value that belongs to multiple values

    Davsth,

    No, because my data is exported from a calculation program and it cannot be sorted.
    Real data contains a minimum of 150.000 rows..

    Looks like Bo_Ry's solution is working, let me check on it.

  5. #5
    Registered User
    Join Date
    02-20-2020
    Location
    Amsterdam
    MS-Off Ver
    365
    Posts
    42

    Re: Find a maximum value by one value that belongs to multiple values

    @Bo_Ry,

    Thanks, it looks like it is working. How can I change this formula to search the minimum value instead of the maximum?
    Changing MAX to MIN does not seem to work

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Find a maximum value by one value that belongs to multiple values

    Min
    =AGGREGATE(15,6,VLOOKUP(N(INDEX(+B11:B30,)),G11:H30,2,0)/(C11:C30=B3),1)
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    02-20-2020
    Location
    Amsterdam
    MS-Off Ver
    365
    Posts
    42

    Re: Find a maximum value by one value that belongs to multiple values

    Thank you!

  8. #8
    Forum Contributor
    Join Date
    03-05-2018
    Location
    Tbilisi, Georgia
    MS-Off Ver
    2013, 2016
    Posts
    271

    Re: Find a maximum value by one value that belongs to multiple values

    One more variant:
    Max: =AGGREGATE(14;6;10^LOG(SUMIFS(H11:H30;G11:G30;B11:B30)*(C11:C30=B3));1)
    Min: =AGGREGATE(15;6;10^LOG(SUMIFS(H11:H30;G11:G30;B11:B30)*(C11:C30=B3));1)
    Attached Files Attached Files

+ 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. [SOLVED] Find which array a value belongs to.
    By vhanster in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-30-2021, 11:02 AM
  2. [SOLVED] Find the maximum and minimum values
    By rayhen in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-30-2021, 08:42 AM
  3. [SOLVED] Need Formula to find which table a name belongs to
    By modytrane in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-18-2020, 02:55 PM
  4. Formula to find multiple maximum values in a column
    By Destroy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-02-2015, 06:25 PM
  5. [SOLVED] Find out to which category my cell value belongs
    By rpinxt in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-08-2015, 09:12 AM
  6. to compare among a set of values and to find the maximum among them
    By arya ravi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-06-2013, 06:52 AM
  7. Find maximum values from multiple imported sheets into a summary sheet.
    By rageshprasad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-21-2012, 01:31 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