+ Reply to Thread
Results 1 to 3 of 3

LARGE function with variable K argument

Hybrid View

andrewc LARGE function with variable... 11-26-2013, 05:08 AM
benishiryo Re: LARGE function with... 11-26-2013, 05:11 AM
andrewc Re: LARGE function with... 11-26-2013, 05:15 AM
  1. #1
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    839

    LARGE function with variable K argument

    Hi,

    I have a large file of data, an excerpt of which is shown in columns A to D of the attached file.

    In column G I have calculated and ranked in descending order the relative values. Can someone please tell me how to make the “k” argument in the LARGE function dynamic so I don’t need to type into the formulae 1 for the first ranked result, 2 for the 2nd etc and can also take account of a changing number of rows.

    Thanks!
    Attached Files Attached Files
    Last edited by andrewc; 11-26-2013 at 05:15 AM.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: LARGE function with variable K argument

    hi andrewc. probably this?
    =ROWS(G$2:G2)

    so:
    =LARGE((((1+$B$2:$B$5/100)/(1+$C$2:$C$5/100))-1)*100,ROWS(G$2:G2))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    839

    Re: LARGE function with variable K argument

    Perfect, thank you!

+ 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. SUMIFS Function: how to make the "sum_range" argument as a non-fixed variable
    By brunocinelli in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-12-2013, 12:55 PM
  2. [SOLVED] ByRef argument type mismatch / Passing array as a function argument
    By pzling in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-29-2012, 06:23 PM
  3. ListBox List function not allowing column argument when assigned to a variable
    By Brunstgnegg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-24-2010, 04:05 AM
  4. Useing the Large Function or some other variable
    By chuck1968 in forum Excel General
    Replies: 6
    Last Post: 03-15-2006, 09:00 PM
  5. Function (array argument, range argument, string argument) vba
    By Witek in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-24-2005, 11:07 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