Home |
Search |
Today's Posts |
#1
|
|||
|
|||
lookup 0
How would I do a lookup in a row with 4 values:
0 4.8 3.2 0 to find the first value that is greater than 0? The answer should be 4.8 but what would the formula look like? Thanks, Harold |
#2
|
|||
|
|||
lookup 0
Hi!
Try this: Entered as an array using the key combo of CTRL,SHIFT,ENTER: =INDEX(A4:D4,MATCH(TRUE,A4:D40,0)) A little more robust: =INDEX(A4:D4,MATCH(1,(ISNUMBER(A4:D4))*(A4:D40),0 )) Biff "Harold Good" wrote in message ... How would I do a lookup in a row with 4 values: 0 4.8 3.2 0 to find the first value that is greater than 0? The answer should be 4.8 but what would the formula look like? Thanks, Harold |
#3
|
|||
|
|||
lookup 0
Wow, works great, thanks so much!
Harold =================== "Biff" wrote in message ... Hi! Try this: Entered as an array using the key combo of CTRL,SHIFT,ENTER: =INDEX(A4:D4,MATCH(TRUE,A4:D40,0)) A little more robust: =INDEX(A4:D4,MATCH(1,(ISNUMBER(A4:D4))*(A4:D40),0 )) Biff "Harold Good" wrote in message ... How would I do a lookup in a row with 4 values: 0 4.8 3.2 0 to find the first value that is greater than 0? The answer should be 4.8 but what would the formula look like? Thanks, Harold |
#4
|
|||
|
|||
lookup 0
You're welcome. Thanks for the feedback!
Biff "Harold Good" wrote in message ... Wow, works great, thanks so much! Harold =================== "Biff" wrote in message ... Hi! Try this: Entered as an array using the key combo of CTRL,SHIFT,ENTER: =INDEX(A4:D4,MATCH(TRUE,A4:D40,0)) A little more robust: =INDEX(A4:D4,MATCH(1,(ISNUMBER(A4:D4))*(A4:D40),0 )) Biff "Harold Good" wrote in message ... How would I do a lookup in a row with 4 values: 0 4.8 3.2 0 to find the first value that is greater than 0? The answer should be 4.8 but what would the formula look like? Thanks, Harold |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Another way to lookup data | Excel Worksheet Functions | |||
Lookup Vector > Lookup Value | Excel Worksheet Functions | |||
Formula checking multiple worksheets | Excel Worksheet Functions | |||
Lookup function w/Text and Year | Excel Worksheet Functions | |||
double lookup, nest, or macro? | Excel Worksheet Functions |