+ Reply to Thread
Results 1 to 4 of 4

Conditional MAX and RANK of 18-digit text numbers using dynamic array formulas

Hybrid View

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

    Conditional MAX and RANK of 18-digit text numbers using dynamic array formulas

    Hi,

    Please see attached workbook. I have a list of 18-digit numbers stored as text that I want to apply conditional MAX and RANK functions to, resulting in a dynamic array as output. One challenge is that when the 18-digit numbers are converted from text to numbers, Excel will only keep the 15 first digits and replace the rest with zeroes. After running these numbers through a MAXIF function to get the largest number within each category, I want to rank all the numbers in the resulting list. This ranking should give ties the same rank, but increase the rank incrementally for increasingly larger numbers. In the attached workbook, I want to skip helper columns C and D and go directly from the data in column A and B to the result in column E.

    Best regards,
    Marbleking
    Attached Files Attached Files
    Last edited by Marbleking; 05-04-2021 at 04:37 AM.

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

    Re: Conditional MAX and RANK of 18-digit text numbers using dynamic array formulas

    Please try

    =MMULT(--(VLOOKUP(A2:A33,SORT(A2:B33,{1,2},-1),2,)>TRANSPOSE(VLOOKUP(UNIQUE(A2:A33),SORT(A2:B33,{1,2},-1),2,))),SEQUENCE(ROWS(UNIQUE(A2:A33)))^0)+1
    Attached Files Attached Files

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

    Re: Conditional MAX and RANK of 18-digit text numbers using dynamic array formulas

    Thanks a lot, Bo_Ry!

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

    Re: Conditional MAX and RANK of 18-digit text numbers using dynamic array formulas

    Post deleted.
    Last edited by Marbleking; 05-07-2021 at 02:42 AM.

+ 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] Extract 1, 2 or 3-digit Numbers from Text String but Ignore 4-Digit Dates
    By S_Rycroft in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-09-2020, 12:03 PM
  2. RANK, SMALL formulas inside the array argument (no CTRL+SHIFT+ENTER)
    By ExcelQuestion in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-03-2019, 08:09 AM
  3. Replies: 1
    Last Post: 04-18-2019, 01:35 AM
  4. [SOLVED] Macro to convert WBS single digit numbers to double digit numbers
    By LeanAccountant in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 06-09-2018, 05:25 AM
  5. [SOLVED] Rank with conditional array
    By Bob Macregor in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-26-2014, 12:22 PM
  6. [SOLVED] Conditional Formatting Formulas for Date, Text and Values/Numbers
    By pblobe in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-09-2013, 12:26 AM
  7. [SOLVED] macro to extract 9 digit numbers as well as alpha numberic 9 digit numbers from txt file
    By Raju Radhakrishnan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-13-2012, 10:15 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