+ Reply to Thread
Results 1 to 6 of 6

Find max in array, return corresponding value in array, without max function

  1. #1
    Registered User
    Join Date
    03-06-2017
    Location
    canada
    MS-Off Ver
    2016
    Posts
    2

    Find max in array, return corresponding value in array, without max function

    Basically what the title says. I have to make a function that takes in two arrays, and then it checks the max numerical value in the first array and spits out the corresponding text from array 2. How can I do this without using the max function?

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,692

    Re: Find max in array, return corresponding value in array, without max function

    How many items are going to be in these arrays?
    And what is the reason that "max" cannot be used?

    This might be a start.
    Change references where required
    Please Login or Register  to view this content.
    Last edited by jolivanes; 03-06-2017 at 10:50 PM.

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,362

    Re: Find max in array, return corresponding value in array, without max function

    The LARGE() function could be used in place of the MAX() function, but, I don't see the reason for avoiding the use of the MAX() function. https://support.office.com/en-us/art...b-01672ec00a64
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: Find max in array, return corresponding value in array, without max function

    Like this

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  5. #5
    Registered User
    Join Date
    03-06-2017
    Location
    canada
    MS-Off Ver
    2016
    Posts
    2

    Re: Find max in array, return corresponding value in array, without max function

    Quote Originally Posted by MrShorty View Post
    I don't see the reason for avoiding the use of the MAX() function. https://support.office.com/en-us/art...b-01672ec00a64
    It's for a school assignment, but I don't really like the teacher so instead of going to her for help, I'm coming here. I've been stuck here for a while lol.

  6. #6
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,692

    Re: Find max in array, return corresponding value in array, without max function

    All you have to do now is hoping she does not read this and compares your solution to the suggestions here.

+ 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. UDF array function doesn't return array
    By taikalusikka in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-18-2016, 08:06 AM
  2. How to find within an array, and return AVG of certain cells
    By freerdj in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-31-2013, 09:55 AM
  3. Find Cells in Array and Return Value Next to It
    By RNeel55 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-29-2013, 01:45 AM
  4. [SOLVED] Find Value in array, and return what is on the cell.
    By flakis05 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-08-2013, 12:27 AM
  5. Find Date in Array. Return Value to it
    By haithman in forum Excel General
    Replies: 2
    Last Post: 08-01-2012, 02:47 PM
  6. Find a value in an array and return multiple values in an adjacent array
    By tonbra in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2012, 08:35 PM
  7. [SOLVED] Use FIND to return an array of items
    By quartz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-07-2005, 06: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