Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
hopefully simple but im an access type... and I would like a formula, not vb
code. a price is entered each week, starting from the left, default $0 if not filled in. I want to return the first nonzero value from the right. After 4 weeks i t looks like: 15 25 35 25 0 0 0 0 0 I want to return 25. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Check out this link...
http://www.xldynamic.com/source/xld.LastValue.html -- HTH... Jim Thomlinson "Maarkr" wrote: hopefully simple but im an access type... and I would like a formula, not vb code. a price is entered each week, starting from the left, default $0 if not filled in. I want to return the first nonzero value from the right. After 4 weeks i t looks like: 15 25 35 25 0 0 0 0 0 I want to return 25. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
a price is entered each week
I guess that means it's safe to assume there are no negative numbers? Try this: =IF(COUNTIF(A1:I1,"0"),LOOKUP(1E100,1/A1:I1,A1:I1),"no prices") Will return the rightmost non-zero value. -- Biff Microsoft Excel MVP "Maarkr" wrote in message ... hopefully simple but im an access type... and I would like a formula, not vb code. a price is entered each week, starting from the left, default $0 if not filled in. I want to return the first nonzero value from the right. After 4 weeks i t looks like: 15 25 35 25 0 0 0 0 0 I want to return 25. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=LOOKUP(2,1/(1:1<0),1:1)
"Maarkr" wrote: hopefully simple but im an access type... and I would like a formula, not vb code. a price is entered each week, starting from the left, default $0 if not filled in. I want to return the first nonzero value from the right. After 4 weeks i t looks like: 15 25 35 25 0 0 0 0 0 I want to return 25. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Compare Value in Cell 1 to a List, Return Value if Match otherwise Return Null | Excel Discussion (Misc queries) | |||
Return cell adress for next non-blank cell in a range | Excel Worksheet Functions | |||
How do you make cell 2 return data if cell 1 contains text? | Excel Discussion (Misc queries) | |||
Select cell, Copy it, Paste it, Return to Previous cell | Excel Discussion (Misc queries) | |||
function CELL() to return the formula in the referenced cell | Excel Worksheet Functions |