+ Reply to Thread
Results 1 to 3 of 3

An array formula to sum row max

  1. #1
    Registered User
    Join Date
    01-29-2005
    Posts
    3

    An array formula to sum row max

    I have a data range of 1000 rows and 20 columns. I need a sum of the maximum number of each rows. I usually add another column to calculate row max. But is it possible to eliminate this intermediate step and just use a single cell array formula to return the sum of row maxes?

    Thanks

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Assuming that A1:T1000 contains your data, try...

    =SUMPRODUCT(SUBTOTAL(4,OFFSET(A1:T1000,ROW(A1:T1000)-MIN(ROW(A1:T1000)),0,1)))

    Hope this helps!

    Quote Originally Posted by ucamms
    I have a data range of 1000 rows and 20 columns. I need a sum of the maximum number of each rows. I usually add another column to calculate row max. But is it possible to eliminate this intermediate step and just use a single cell array formula to return the sum of row maxes?

    Thanks

  3. #3
    Registered User
    Join Date
    01-29-2005
    Posts
    3
    It wooked. Very clever. I didn't think of using offset() and row() combination.

    Thank you for helping.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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