ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   nonzero value (https://www.excelbanter.com/excel-worksheet-functions/8945-nonzero-value.html)

DAVID

nonzero value
 
I have two column A and B. Column A contains ascending numbers from 1 to 100,
column B contains arbitrary values. What is the function that looks for the
first nonzero value in column B (going from the frist to the last row) and
returns the value of column A of the same row.

Jason Morin

One way:

=MIN(IF(B1:B100<0,ROW(B1:B100)))

Array-entered, meaning press ctrl/shift/enter.

HTH
Jason
Atlanta, GA

-----Original Message-----
I have two column A and B. Column A contains ascending

numbers from 1 to 100,
column B contains arbitrary values. What is the function

that looks for the
first nonzero value in column B (going from the frist to

the last row) and
returns the value of column A of the same row.
.


Ron Rosenfeld

On Mon, 10 Jan 2005 05:19:01 -0800, "DAVID"
wrote:

I have two column A and B. Column A contains ascending numbers from 1 to 100,
column B contains arbitrary values. What is the function that looks for the
first nonzero value in column B (going from the frist to the last row) and
returns the value of column A of the same row.


See answer in your other posting.


--ron


All times are GMT +1. The time now is 01:54 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com