Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Alex_Werner
 
Posts: n/a
Default What is wrong on the fomular: Offset(MIN(A1:A10),,-1)?

I have a huge spread sheet, in which I need to extract the value from the
cell, which sits right to the lowest value in the whole row. E.g.:
Example row: 2|4|7|3|0.3|10
Expected extract value: 3
I was thinking of using the OFFSET functionality in combination with the MIN
functionality: =OFFSET(MIN(A1:A6),,-1) However, this is not working. Anybody
any idea why not? Or a better solution at all?

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=IF(MATCH(MIN(21:21),21:21,0)1,INDEX(21:21,MATCH( MIN(21:21),21:21,0)-1),"")

--
HTH

Bob Phillips

"Alex_Werner" wrote in message
...
I have a huge spread sheet, in which I need to extract the value from the
cell, which sits right to the lowest value in the whole row. E.g.:
Example row: 2|4|7|3|0.3|10
Expected extract value: 3
I was thinking of using the OFFSET functionality in combination with the

MIN
functionality: =OFFSET(MIN(A1:A6),,-1) However, this is not working.

Anybody
any idea why not? Or a better solution at all?



  #3   Report Post  
John Michl
 
Posts: n/a
Default

There are a few reasons why the offset formula you posted won't work
not the least of which is that the fist argument in Offset is supposed
to be a reference, not a value. Also, row post indicated that the data
are in a row but the formula includes reference to a column of data not
a row of data.

I don't think offset is the way to go. Try a combination of Match and
Index. Assume data are in A1 through F1, then...

=INDEX(A1:F1,1,MATCH(MIN(A1:F1),A1:F1,0)-1)

should do the trick.

John Michl
www.johnmichl.com

  #4   Report Post  
Alex_Werner
 
Posts: n/a
Default

Hi Bob,

you really did an amazing job! It really works! And I tried already a full
day on that... Many thanks! (I changed the area a little bit, that means with
the whole row of 21 I got a circular problem. However, when I changed to
A21:FR21 it works.)
Many thanks again!
Alex

"Bob Phillips" wrote:

=IF(MATCH(MIN(21:21),21:21,0)1,INDEX(21:21,MATCH( MIN(21:21),21:21,0)-1),"")

--
HTH

Bob Phillips

"Alex_Werner" wrote in message
...
I have a huge spread sheet, in which I need to extract the value from the
cell, which sits right to the lowest value in the whole row. E.g.:
Example row: 2|4|7|3|0.3|10
Expected extract value: 3
I was thinking of using the OFFSET functionality in combination with the

MIN
functionality: =OFFSET(MIN(A1:A6),,-1) However, this is not working.

Anybody
any idea why not? Or a better solution at all?




  #5   Report Post  
Bob Phillips
 
Posts: n/a
Default

Hi Alex,

Glad it worked.

I assumed the formula would be in another row, we always make assumptions,
invariably wrong <vbg, but you worked it out so that is great.

Bob

"Alex_Werner" wrote in message
...
Hi Bob,

you really did an amazing job! It really works! And I tried already a full
day on that... Many thanks! (I changed the area a little bit, that means

with
the whole row of 21 I got a circular problem. However, when I changed to
A21:FR21 it works.)
Many thanks again!
Alex

"Bob Phillips" wrote:


=IF(MATCH(MIN(21:21),21:21,0)1,INDEX(21:21,MATCH( MIN(21:21),21:21,0)-1),"")

--
HTH

Bob Phillips

"Alex_Werner" wrote in message
...
I have a huge spread sheet, in which I need to extract the value from

the
cell, which sits right to the lowest value in the whole row. E.g.:
Example row: 2|4|7|3|0.3|10
Expected extract value: 3
I was thinking of using the OFFSET functionality in combination with

the
MIN
functionality: =OFFSET(MIN(A1:A6),,-1) However, this is not working.

Anybody
any idea why not? Or a better solution at all?






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
after entering certain number of times wrong password file can cur Rao Ratan Singh Excel Discussion (Misc queries) 1 August 28th 05 04:51 PM
What's wrong with my array formula M.Siler Excel Discussion (Misc queries) 4 May 27th 05 09:19 PM
What is wrong with this =AVERAGE(IF formula? fbarbie Excel Worksheet Functions 5 March 16th 05 02:42 PM
multi-level subtotals are in the wrong position Worksheet Guru need Excel Worksheet Functions 1 December 6th 04 05:22 PM
Logic statement returns wrong answer. Tony Excel Worksheet Functions 2 December 2nd 04 05:07 AM


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