A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

An array formula to sum row max



 
 
Thread Tools Display Modes
  #1  
Old June 24th, 2005, 09:54 PM
ucamms
external usenet poster
 
Posts: n/a
Default 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


--
ucamms
------------------------------------------------------------------------
ucamms's Profile: http://www.excelforum.com/member.php...o&userid=19151
View this thread: http://www.excelforum.com/showthread...hreadid=382107

  #2  
Old June 24th, 2005, 10:36 PM
Domenic
external usenet poster
 
Posts: n/a
Default


Assuming that A1:T1000 contains your data, try...

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

Hope this helps!

ucamms Wrote:
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



--
Domenic
------------------------------------------------------------------------
Domenic's Profile: http://www.excelforum.com/member.php...o&userid=10785
View this thread: http://www.excelforum.com/showthread...hreadid=382107

  #3  
Old June 27th, 2005, 08:54 PM
ucamms
external usenet poster
 
Posts: n/a
Default


It wooked. Very clever. I didn't think of using offset() and row()
combination.

Thank you for helping.


--
ucamms
------------------------------------------------------------------------
ucamms's Profile: http://www.excelforum.com/member.php...o&userid=19151
View this thread: http://www.excelforum.com/showthread...hreadid=382107

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Array Formula, noncontigous range Werner Rohrmoser Worksheet Functions 1 June 22nd, 2005 12:11 PM
max/if array formula question Mparekh Worksheet Functions 1 October 4th, 2004 10:03 PM
Question on Array Formula John Worksheet Functions 1 February 21st, 2004 05:40 PM
Array Formula - Use of OFFSET function with array argument Alan Worksheet Functions 2 February 11th, 2004 09:38 PM
Funcs work differently as array formula? Jonathan Rynd Worksheet Functions 3 January 22nd, 2004 03:19 AM


All times are GMT +1. The time now is 11:36 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.