+ Reply to Thread
Results 1 to 6 of 6

Dynamic LARGE-ROW function

  1. #1
    Registered User
    Join Date
    08-07-2018
    Location
    London
    MS-Off Ver
    Mac v16.53
    Posts
    25

    Dynamic LARGE-ROW function

    Hi

    I have a formula that works - {=SUMPRODUCT(LARGE(IF(H:H=A27,X:X),ROW(1:930)))}

    However, 930 can change and as such I need this to be dynamic but if I replace 930 to 'Z1' as a cell refernce it does not work. Tried few other but that failed to. Maybe I need to use INDEX/MATCH, not sure.

    Any help much appreciated.

    Thanks.
    Last edited by adipa; 08-17-2018 at 10:26 AM.

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Dynamic LARGE-ROW function

    =sumproduct(large(if(h:h=a27,x:x),row(a1:index(a:a;z1))))
    =sumproduct(large(if(h:h=a27,x:x),row(indirect("1:"&z1))))

  3. #3
    Registered User
    Join Date
    08-07-2018
    Location
    London
    MS-Off Ver
    Mac v16.53
    Posts
    25

    Re: Dynamic LARGE-ROW function

    Hi Tim

    Thanks, the second one worked.

    Is there any other way to do this as the file has gone extremely slow after using LARGE() formula?

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,817

    Re: Dynamic LARGE-ROW function

    Considering regional settings you may need to modify Tim's first formula to read:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The formula might be a bit faster if LARGE is replaced with AGGREGATE(14,6... as in:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    We might be better able to help if we could see a desensitized example of what you are attempting to accomplish. To upload a sample workbook (not a picture or pasted copy) click on the GO ADVANCED button below the Quick Reply window and then scroll down to Manage Attachments to open the upload window.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Dynamic LARGE-ROW function

    =sumproduct((x:x>=large(if(h:h=a27,x:x),z1))*(h:h=a27))
    full column in array formula is not wise.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,044

    Re: Dynamic LARGE-ROW function

    I would advise against using full-column references in both SP and array formulas, it could slow your file down. Rather, use 2-3 times the range you think you will need.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. =LARGE with multiple dynamic criteria
    By ballj01 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 20
    Last Post: 10-26-2017, 02:25 AM
  2. =LARGE with multiple dynamic criteria
    By ballj01 in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 10-25-2017, 08:41 AM
  3. Querying large dynamic tables
    By Kalithro in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-08-2016, 11:54 PM
  4. [SOLVED] Solving Large function for dynamic data based on changing periods
    By Darren_Rix in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-16-2013, 04:59 AM
  5. [SOLVED] Dynamic Range for a Large
    By cheal2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-15-2013, 03:37 PM
  6. LARGE formula with a dynamic k-th argument?
    By cveetan in forum Excel General
    Replies: 3
    Last Post: 02-26-2012, 08:12 PM
  7. Large number of dynamic charts
    By kh in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 03-01-2006, 01:30 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