View Single Post
  #8   Report Post  
Posted to microsoft.public.excel.misc
C-A
 
Posts: n/a
Default find first value in a row with value greater than 0

Sucess, Thanks for everyone's help!

"C-A" wrote:

I need to search rows in a worksheet for the first cell with a value over 0
and return the corresponding column name to another worksheet. Then need to
find the last cell with a value and return the corresponding column name.

eg.
worksheet 1
Celery Carrots Yams Onions Radish
0 3 7 5 0

worksheet 2
A B
Carrots Onions

Is it possible? I tried lookup and hlookup, but returning #N/A.

You assistance is appreciated.

Thanks