+ Reply to Thread
Results 1 to 8 of 8

Finding MAX in an array of formulas

  1. #1
    Registered User
    Join Date
    02-26-2014
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    9

    Post Finding MAX in an array of formulas

    Hi there.
    Can someone please help me with the following problem. In the attached spreadsheet I have a list of random numbers from rows 1-20. I want to create a formula that finds the maximum number in the list between rows 6 and 18. I have started by finding and displaying the cell address of the boundaries (A6 and A18) using the =ADDRESS(fn), however when i use this array in the =MAX(fn) it gives me 0. Instead i want the formula to yield 97, which is the maximum number within the array of A6:A18. I understand why it's doing this as the function is looking at C1:C2 instead of A6:A18, but I am wondering if there is another function that will yield my answer through a formula.
    Of course i could just select the array (i.e. MAX(A6:A18), however I need to generate the answer using formulas as this example is a simplified version of a much larger and sophisticated spreadsheet I am creating.
    Would really appreciate your help.
    Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,650

    Re: Finding MAX in an array of formulas

    Please Login or Register  to view this content.
    shall do
    Best Regards,

    Kaper

  3. #3
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Finding MAX in an array of formulas

    try this
    =MAX(INDIRECT(C1&":"&C2))
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  4. #4
    Registered User
    Join Date
    02-26-2014
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Finding MAX in an array of formulas

    Great. Thanks Kaper & Hemesh.

  5. #5
    Registered User
    Join Date
    02-26-2014
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Finding MAX in an array of formulas

    Kaper & Hemesh. One more question...
    I have updated the sheet attached (Book Rev1) to minimise the number of functions required on Sheet1. Im wondering what i have to do to the formula in C1 on Sheet2 to produce the same answer (97) as in C1 on Sheet1.
    Thanks
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Finding MAX in an array of formulas

    try this on sheet2 c1
    =MAX(INDIRECT("Sheet1!"&ADDRESS(6,1,4)&":"&ADDRESS(18,1,4)))

    if your sheet name has space like "sheet 1" then use
    =MAX(INDIRECT("'"&"Sheet 1"&"'!"&ADDRESS(6,1,4)&":"&ADDRESS(18,1,4)))
    Last edited by hemesh; 02-26-2014 at 07:10 AM.

  7. #7
    Registered User
    Join Date
    02-26-2014
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Finding MAX in an array of formulas

    Much appreciated hemesh. That answered by question, however my final formula is rather large. i am wondering if there is a simplified function that can directly calculate the highlighted cells (C2 & D2) on Sheet2 of the spreadsheet (Book1.Rev2) attached. Many thanks.
    Attached Files Attached Files

  8. #8
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Finding MAX in an array of formulas

    Hello jackleesteere,

    Using your most recent example file, use this formula in cell C2 of Sheet2:
    Please Login or Register  to view this content.
    And this formula in cell D2 of Sheet2:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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] Finding Max value in one row of a 2D array (array is not pulled from sheet)
    By marrott2 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-12-2014, 06:13 PM
  2. Ctrl+Shift+Enter (CSE) array formulas in VBA using differing formulas
    By officeguy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-11-2012, 04:31 PM
  3. Change all regular formulas into array formulas
    By sans in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 06-18-2012, 11:28 AM
  4. Replies: 6
    Last Post: 12-30-2008, 06:52 AM
  5. Finding Array Formulas in VBA
    By ExcelMonkey in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-19-2005, 07:05 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