+ Reply to Thread
Results 1 to 4 of 4

RANKIF function which can take formulas giving dynamic ranges as arguments

  1. #1
    Forum Contributor
    Join Date
    08-20-2011
    Location
    Oslo
    MS-Off Ver
    MS 365
    Posts
    245

    RANKIF function which can take formulas giving dynamic ranges as arguments

    Hi,

    I am trying to write a "RANKIF" formula which can take as arguments formulas that give dynamic ranges. Please see attached workbook.

    Considerations:

    1. A descending "RANKIF" of column B with respect to column A is needed.
    2. Numbers (in text format) to be ranked consists of 18 digits, but Excel only keeps the 15 first digits, while turning the rest into zeroes except when the string is kept as text format.
    3. There is no need for all the digits for the proposed use, so a workaround is to create a column which extracts only the 15 last digits and turns them into numbers.
    4. Functions like COUNTIFS, RANK and SUMPRODUCT cannot take calculation of dynamic ranges as arguments, e.g.: NUMBERVALUE(RIGHT(B2:B33;15))
    5. Therefore, a formula to calculate the rank of these numbers must be entered in yet another separate column.

    Need:

    Formula to calculate rank directly without helper column and with a dynamic array as output. (The LET function is unfortunately not available in my version of Excel yet).

    Currently I am using the following formula:

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Best regards,
    Marbleking
    Attached Files Attached Files

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

    Re: RANKIF function which can take formulas giving dynamic ranges as arguments

    Please try

    =COUNTIFS(A2:A33,A2:A33,B2:B33,"<"&UNICHAR(888)&B2:B33)+1
    Attached Files Attached Files

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,175

    Re: RANKIF function which can take formulas giving dynamic ranges as arguments

    Delete post.
    Last edited by Phuocam; 04-26-2021 at 07:12 AM.

  4. #4
    Forum Contributor
    Join Date
    08-20-2011
    Location
    Oslo
    MS-Off Ver
    MS 365
    Posts
    245

    Re: RANKIF function which can take formulas giving dynamic ranges as arguments

    Thank you, both! Great tips & tricks!

+ 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] Rankif Function
    By Nick2512 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-15-2017, 08:24 PM
  2. Dynamic ranges in array formulas.
    By smatchymo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-03-2016, 07:59 AM
  3. [SOLVED] Constructing dynamic arguments for Lookup function.
    By Ajoo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-13-2015, 10:09 AM
  4. Dynamic Ranges with Formulas in cells
    By realniceguy5000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-15-2011, 04:27 PM
  5. [SOLVED] Is there a rankif function
    By Dan in forum Excel General
    Replies: 3
    Last Post: 05-27-2005, 01:05 PM
  6. Dynamic Ranges and self populating Formulas
    By robertjtucker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-08-2005, 10:22 AM
  7. [SOLVED] Dynamic Formulas with Dynamic Ranges
    By Ralph Howarth in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-21-2005, 05:06 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