#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 150
Default offsets (I think)

I have found a value using the MAX formula and would now like to return the
value found in the cell one row above and one column before the original
position of this result. Is this possible?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default offsets (I think)

Here's one way...

Assume this is your data:

...........A..........B
1........A.........22
2........B.........17
3........C.........44
4........D.........12
5........E..........15

=INDEX(A1:A5,MATCH(MAX(B1:B5),B1:B5,0)-1)

This will work correctly *unless* the max value in B1:B5 is located in B1.
So, what result do want if that is the case?

--
Biff
Microsoft Excel MVP


"Stan" wrote in message
...
I have found a value using the MAX formula and would now like to return the
value found in the cell one row above and one column before the original
position of this result. Is this possible?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,203
Default offsets (I think)

Biff,
A slight mod gives the opportunity to identify, and act on, the max in B1
situation:
=IF(MATCH(MAX(B1:B5),B1:B5,0)=1,"Max is in 1st
row",INDEX(A1:A5,MATCH(MAX(B1:B5),B1:B5,0)-1))
but I figure you already had that in the back of your head. As you asked,
what to do in that case is still up in the air.

Another oddity of this situation is that "E" (A5) can never be returned.
Hopefully that works in with the OPs needs also.

"T. Valko" wrote:

Here's one way...

Assume this is your data:

...........A..........B
1........A.........22
2........B.........17
3........C.........44
4........D.........12
5........E..........15

=INDEX(A1:A5,MATCH(MAX(B1:B5),B1:B5,0)-1)

This will work correctly *unless* the max value in B1:B5 is located in B1.
So, what result do want if that is the case?

--
Biff
Microsoft Excel MVP


"Stan" wrote in message
...
I have found a value using the MAX formula and would now like to return the
value found in the cell one row above and one column before the original
position of this result. Is this possible?



.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 150
Default offsets (I think)

Thankyou both Joel and t valko for your prompt replies. with a little playing
I was able to make mr valko's suggestion work satisfactorily

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default offsets (I think)

Good deal. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Stan" wrote in message
...
Thankyou both Joel and t valko for your prompt replies. with a little
playing
I was able to make mr valko's suggestion work satisfactorily



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
Cinditional formatting question - offsets Pete Rooney Excel Discussion (Misc queries) 5 April 24th 08 05:07 PM
Countif & Offsets Yuanhang Excel Discussion (Misc queries) 1 February 15th 08 09:16 PM
"internal margin" and axis offsets (excel 2007) jv_chile Charts and Charting in Excel 8 February 11th 08 05:31 PM
Image (object) offsets in Web show mode Anders Excel Worksheet Functions 0 November 13th 06 10:14 AM
average, array and offsets Darin1979 Excel Worksheet Functions 0 November 17th 04 04:21 PM


All times are GMT +1. The time now is 10:24 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"