Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Old December 21st 07, 04:32 AM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
First recorded activity by ExcelBanter: Dec 2007
Posts: 1
Default How do I find max then sum cells above & to the left?

If

A1 = 1 B1 = 2 C1 = 3
A2 = 4 B2 = 5 C2 = 6
A3 = 9 B3 = 8 C3 = 7

How do I find the maximum value in row 3 and then sum the numbers in rows 1
and 2 above and to the right of the maximum value in row 3? I have tried the
formula =SUM(OFFSET(MAX(A3:C3),-2,0,2,3)) but Excel doesn't appear to accept
the maximum function within the offset function.

Thanks in advance.
Ian

  #2   Report Post  
Old December 21st 07, 04:57 AM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
First recorded activity by ExcelBanter: Apr 2007
Posts: 229
Default How do I find max then sum cells above & to the left?

Try the following formula in A4, B4
=SUMIF(A$1:A$3,""&MAX($C$1:$C$3),A$1:A$3)
with regards
Sridhar

"Iany" wrote:

If

A1 = 1 B1 = 2 C1 = 3
A2 = 4 B2 = 5 C2 = 6
A3 = 9 B3 = 8 C3 = 7

How do I find the maximum value in row 3 and then sum the numbers in rows 1
and 2 above and to the right of the maximum value in row 3? I have tried the
formula =SUM(OFFSET(MAX(A3:C3),-2,0,2,3)) but Excel doesn't appear to accept
the maximum function within the offset function.

Thanks in advance.
Ian

  #3   Report Post  
Old December 21st 07, 05:26 AM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
First recorded activity by ExcelBanter: Apr 2007
Posts: 229
Default How do I find max then sum cells above & to the left?

sorry i couldnot understand the question.
My mistake
You can try it in the following way
In A4 = ADDRESS(3,MATCH(MAX(A3:C3),A3:C3,0))
a5 = =SUM(OFFSET(indirect(a4),-2,0,2,3))
with regards
Sridhar
"Iany" wrote:

If

A1 = 1 B1 = 2 C1 = 3
A2 = 4 B2 = 5 C2 = 6
A3 = 9 B3 = 8 C3 = 7

How do I find the maximum value in row 3 and then sum the numbers in rows 1
and 2 above and to the right of the maximum value in row 3? I have tried the
formula =SUM(OFFSET(MAX(A3:C3),-2,0,2,3)) but Excel doesn't appear to accept
the maximum function within the offset function.

Thanks in advance.
Ian

  #4   Report Post  
Old December 21st 07, 06:41 AM posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
First recorded activity by ExcelBanter: Jul 2006
Posts: 9,221
Default How do I find max then sum cells above & to the left?

Perhaps more generic, placed in say, A5:
=SUM(OFFSET(IV1:IV2,,,,MATCH(MAX(3:3),3:3,0)-257))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Iany" wrote:
If

A1 = 1 B1 = 2 C1 = 3
A2 = 4 B2 = 5 C2 = 6
A3 = 9 B3 = 8 C3 = 7

How do I find the maximum value in row 3 and then sum the numbers in rows 1
and 2 above and to the right of the maximum value in row 3? I have tried the
formula =SUM(OFFSET(MAX(A3:C3),-2,0,2,3)) but Excel doesn't appear to accept
the maximum function within the offset function.

Thanks in advance.
Ian

  #5   Report Post  
Old December 21st 07, 11:51 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
First recorded activity by ExcelBanter: Jul 2006
Posts: 3,572
Default How do I find max then sum cells above & to the left?

Try this:

=SUM(INDEX(A1:C1,MATCH(MAX(A3:C3),A3:C3,0)+1):INDE X(A2:C2,MATCH(MAX(A3:C3),A3:C3,0)+1))

You must realize though, that if the value 9 (highest) was in C3 instead of
A3, you'd get referenced to a cell outside your posted range, and that would
return a #REF! error.

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Iany" wrote in message
news
If

A1 = 1 B1 = 2 C1 = 3
A2 = 4 B2 = 5 C2 = 6
A3 = 9 B3 = 8 C3 = 7

How do I find the maximum value in row 3 and then sum the numbers in rows
1
and 2 above and to the right of the maximum value in row 3? I have tried
the
formula =SUM(OFFSET(MAX(A3:C3),-2,0,2,3)) but Excel doesn't appear to
accept
the maximum function within the offset function.

Thanks in advance.
Ian





  #6   Report Post  
Old December 22nd 07, 12:32 AM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
First recorded activity by ExcelBanter: Jul 2006
Posts: 2,118
Default How do I find max then sum cells above & to the left?

Perhaps this:

=SUMPRODUCT((COLUMN(A1:C2)=MATCH(MAX(A3:C3),A3:C3 ,0))*A1:C2)

Is that something you can work with?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)


"Iany" wrote in message
news
If

A1 = 1 B1 = 2 C1 = 3
A2 = 4 B2 = 5 C2 = 6
A3 = 9 B3 = 8 C3 = 7

How do I find the maximum value in row 3 and then sum the numbers in rows
1
and 2 above and to the right of the maximum value in row 3? I have tried
the
formula =SUM(OFFSET(MAX(A3:C3),-2,0,2,3)) but Excel doesn't appear to
accept
the maximum function within the offset function.

Thanks in advance.
Ian





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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use of Find with Left, Mid, Right functions in nested IF(and('s MJW[_2_] Excel Discussion (Misc queries) 8 September 20th 07 09:22 PM
Using the LEFT formula for multiple cells Emily G Excel Worksheet Functions 2 April 11th 07 01:59 AM
TO FIND VALUE TO THE LEFT THE CELL USING VLOOKUP OR ANY OTHER CAPTGNVR Excel Discussion (Misc queries) 10 February 14th 07 11:16 PM
Find LARGE, and th cell 3 cells to the left? Intotao Excel Worksheet Functions 1 January 9th 06 09:33 PM
FIND or LEFT or MID to swap first name with last name? Alice Excel Worksheet Functions 3 January 14th 05 10:17 PM


All times are GMT +1. The time now is 05:32 AM.

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

About Us

"It's about Microsoft Excel"

 

Copyright © 2017