Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Second to last entry
Hi guys,
I need to return the second to last value (providing it is greater than zero) from a data range. I already have a formula to return the value in the last cell, this being: =IFERROR(LOOKUP(2,1/($D7:$X70),$D7:$X7),"-") I may be missing an obvious way to manipulate the above formula but would appreciate any help. Many thanks in advance, Kind regards, Ant |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Second to last entry
Try
=INDEX(7:7,LARGE(IF((D7:X70)*(D7:X70),COLUMN(D7: X7)),2)) Which is an array so commit with Ctrl+Shift+Enter NOT just enter Mike "Anto111" wrote: Hi guys, I need to return the second to last value (providing it is greater than zero) from a data range. I already have a formula to return the value in the last cell, this being: =IFERROR(LOOKUP(2,1/($D7:$X70),$D7:$X7),"-") I may be missing an obvious way to manipulate the above formula but would appreciate any help. Many thanks in advance, Kind regards, Ant |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Second to last entry
Why the repeat:
(D7:X70)*(D7:X70) I've seen you do this before and thought it was just a typo. I've been known to accidentally repeat repeat stuff! -- Biff Microsoft Excel MVP "Mike H" wrote in message ... Try =INDEX(7:7,LARGE(IF((D7:X70)*(D7:X70),COLUMN(D7: X7)),2)) Which is an array so commit with Ctrl+Shift+Enter NOT just enter Mike "Anto111" wrote: Hi guys, I need to return the second to last value (providing it is greater than zero) from a data range. I already have a formula to return the value in the last cell, this being: =IFERROR(LOOKUP(2,1/($D7:$X70),$D7:$X7),"-") I may be missing an obvious way to manipulate the above formula but would appreciate any help. Many thanks in advance, Kind regards, Ant |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Second to last entry
Biff,
Thanks for the correction. Having done it that way once; and the fact it works, I simply never noticed the error, and because this is a common question i've posted the same over elaborate answer several times. Now you point it out of course it's blindingly obvious. Mike "T. Valko" wrote: Why the repeat: (D7:X70)*(D7:X70) I've seen you do this before and thought it was just a typo. I've been known to accidentally repeat repeat stuff! -- Biff Microsoft Excel MVP "Mike H" wrote in message ... Try =INDEX(7:7,LARGE(IF((D7:X70)*(D7:X70),COLUMN(D7: X7)),2)) Which is an array so commit with Ctrl+Shift+Enter NOT just enter Mike "Anto111" wrote: Hi guys, I need to return the second to last value (providing it is greater than zero) from a data range. I already have a formula to return the value in the last cell, this being: =IFERROR(LOOKUP(2,1/($D7:$X70),$D7:$X7),"-") I may be missing an obvious way to manipulate the above formula but would appreciate any help. Many thanks in advance, Kind regards, Ant |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
Second to last entry
It looks like it is his method of doing either this...
--(D7:X70) or this... 1*(D7:X70) namely, forcing a logical expression to return a number. Rick "T. Valko" wrote in message ... Why the repeat: (D7:X70)*(D7:X70) I've seen you do this before and thought it was just a typo. I've been known to accidentally repeat repeat stuff! -- Biff Microsoft Excel MVP "Mike H" wrote in message ... Try =INDEX(7:7,LARGE(IF((D7:X70)*(D7:X70),COLUMN(D7: X7)),2)) Which is an array so commit with Ctrl+Shift+Enter NOT just enter Mike "Anto111" wrote: Hi guys, I need to return the second to last value (providing it is greater than zero) from a data range. I already have a formula to return the value in the last cell, this being: =IFERROR(LOOKUP(2,1/($D7:$X70),$D7:$X7),"-") I may be missing an obvious way to manipulate the above formula but would appreciate any help. Many thanks in advance, Kind regards, Ant |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Control Data Entry - push entry to next cell | Excel Discussion (Misc queries) | |||
Auto entry of data based on entry of text in another column or fie | Excel Discussion (Misc queries) | |||
How do I set up entry box to auto-alphabatize each entry in list? | Excel Discussion (Misc queries) | |||
Cell Entry That Locks Selected Cells From Any Data Entry. | Excel Worksheet Functions | |||
Restricting entry in B1 on the basis of entry in A1 | Excel Worksheet Functions |