Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Dreamer
 
Posts: n/a
Default Need help Returning the cell addy/index of the first non-zero number


I'm trying to return the location of the first non-zero number in a
row.
Example:

A B C D E F G H
0 0 0 3 0 8 9 10

In the above example, I need to figure out if it's possible to used
functions to
return the index or cell address of the first non zero number.
So in my example above, I need the function to return either the
address of D1 or the index position of 4.


Any help would be great.

thanks


--
Dreamer
  #2   Report Post  
Domenic
 
Posts: n/a
Default

For the position...

=MATCH(TRUE,A1:H1<0,0)

For the cell address...

=CELL("address",INDEX(A1:H1,MATCH(TRUE,A1:H1<0,0) ))

OR

=ADDRESS(ROW(A1:H1),MATCH(TRUE,A1:H1<0,0),4)

These formulas need to be confirmed with CONTROL+SHIFT+ENTER.

Hope this helps!

In article ,
Dreamer wrote:

I'm trying to return the location of the first non-zero number in a
row.
Example:

A B C D E F G H
0 0 0 3 0 8 9 10

In the above example, I need to figure out if it's possible to used
functions to
return the index or cell address of the first non zero number.
So in my example above, I need the function to return either the
address of D1 or the index position of 4.


Any help would be great.

thanks

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to create a variable column in cell reference Sampson Excel Worksheet Functions 3 February 21st 05 10:13 PM
How can I get a cell locked if the condition is false? FareedAhmed76 Excel Worksheet Functions 1 February 18th 05 01:49 PM
Can a Formula in Cell X modify Cell Y? alMandragor Excel Discussion (Misc queries) 7 February 10th 05 09:51 PM
inserting data from a row to a cell, when the row number is specified by a formula in a cell [email protected] New Users to Excel 2 January 6th 05 07:18 AM
VLookup resulting in a blank cell... KempensBoerke Excel Worksheet Functions 1 October 28th 04 09:57 PM


All times are GMT +1. The time now is 10:28 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"