#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default SUM after using MAX


Hi,

My sheet records data on a monthly basis. I use MAX to find the highest
number (which can be in any of the four weeks of the month). I then need
to SUM numbers in the row below.

For example cells A1:A4 contain the following: 20;31;70;64
Cells B1:B4contain the following: 2;4;1;6

The MAX function will select 70 I then need to to SUM the 2;4;1

I hope that this makes sense - can you help please?

Many thanks

Tony


--
y_not
------------------------------------------------------------------------
y_not's Profile: http://www.excelforum.com/member.php...o&userid=19947
View this thread: http://www.excelforum.com/showthread...hreadid=565625

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default SUM after using MAX

Assuming you always sum from row 1 to the row having the maximum value:

=SUM(OFFSET($B$1,0,0,MATCH(MAX($A$1:$A$4),$A$1:$A$ 4,0),1))


If this is not the rule, then come back with a (clearer) explanation.

HTH


"y_not" wrote:


Hi,

My sheet records data on a monthly basis. I use MAX to find the highest
number (which can be in any of the four weeks of the month). I then need
to SUM numbers in the row below.

For example cells A1:A4 contain the following: 20;31;70;64
Cells B1:B4contain the following: 2;4;1;6

The MAX function will select 70 I then need to to SUM the 2;4;1

I hope that this makes sense - can you help please?

Many thanks

Tony


--
y_not
------------------------------------------------------------------------
y_not's Profile: http://www.excelforum.com/member.php...o&userid=19947
View this thread: http://www.excelforum.com/showthread...hreadid=565625


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default SUM after using MAX


You are, without doubt a genius!!

From a really crap explaination you have managed to come up with a
working solution!!!

Thanks Mate


--
y_not
------------------------------------------------------------------------
y_not's Profile: http://www.excelforum.com/member.php...o&userid=19947
View this thread: http://www.excelforum.com/showthread...hreadid=565625

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:44 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"