View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Lucile Lucile is offline
external usenet poster
 
Posts: 16
Default Find the first non 0 cell in a column

I forgot...
I need a piece of code for a VBA program.

Thanks

"Mike H" wrote:

Hi,

Try this. as long as there aonly numbers in the range

=INDEX(Sheet2!B1:B1000,MATCH(TRUE,Sheet2!B1:B1000 0,0))

This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.

Mike

"Lucile" wrote:

Hi,

I have a list of number starting with a bunch of 0 and I need to find the
first cell with a number different from 0. And copy this value on an other
sheet.

Any idea?
Thanks