+ Reply to Thread
Results 1 to 17 of 17

Arranging values from Series of Arrays in Descending Order by Formula - Not Macro

Hybrid View

  1. #1
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,769

    Re: Arranging values from Series of Arrays in Descending Order by Formula - Not Macro

    In my formula you could replace COUNT/COUNTA with SUMPRODUCT which removes the problem of numeric vs text data

    e.g.

    =IFERROR(INDEX($C$5:$K$10,MOD((ROWS($1:1)-1),SUMPRODUCT((LEN($B$5:$B$10)>0)+0))+1,((INT((ROWS($1:1)-1)/COUNT($B$5:$B$10))*2+1))),"")

    Unfortunately, you cannot use this in a named range (Jason's "Row_Count")

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Arranging values from Series of Arrays in Descending Order by Formula - Not Macro

    Quote Originally Posted by JohnTopley View Post
    Unfortunately, you cannot use this in a named range (Jason's "Row_Count")
    Any reason why not, John?

    It works fine as far as I can see, the only difference being that the range needs to be qualified with the sheet name when used as a named range.

    Although I would use =MATCH(2,1/LEN($B$5:$B$10)) as a preference (if there was a blank row in the middle of the data range, sumproduct would drop the last row). That said, my formula is not meant to cope with empty rows in the middle of the data range, so this method would highlight the fact that there is a problem by throwing out a sheet full of errors, but not be able to resolve them.

+ 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] Cancatenate values on one cell on descending order
    By score in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 09-28-2015, 09:35 PM
  2. [SOLVED] Formula to Rank Values in Descending Order
    By brent_excel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-16-2015, 07:44 PM
  3. Replies: 3
    Last Post: 01-05-2013, 11:06 AM
  4. [SOLVED] Rank values in descending order with duplicates
    By mcain1981 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-14-2012, 01:15 PM
  5. Sorting in descending order and show duplicate values
    By cceze in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-19-2012, 09:33 AM
  6. Replies: 14
    Last Post: 04-17-2012, 05:18 PM
  7. Macro for arranging in descending order.
    By Taureankv in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-03-2010, 10:24 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