Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Return the Row a certain Value in Excel

Posted on 2011-02-22
3
Medium Priority
?
241 Views
Last Modified: 2012-08-13
I have a spreadsheet (.xls). In column A, there are several unique numeric values ranging from 0001-9999. After 9999, there are a series of 0's continuing to display in the column. In cell "B2", i would like to capture the actual row the 0's began to appear. So for example, if in A1 through A9999, there were actual values, then in Cell A10000, theres the first 0, i would like for "10000" to calculate/ populate in cell B2. I'm open to simple excel formula or VB to run module.

Any takers?
0
Comment
Question by:ctownsen80
3 Comments
 
LVL 50

Accepted Solution

by:
barry houdini earned 1200 total points
ID: 34955884
For the position of the first zero in column A try MATCH function, i.e. in B2 use this formula

=MATCH(0,A:A,0)

regards, barry
0
 
LVL 50
ID: 34955891
Hello,

like this maybe?

=MATCH(0,A:A,-1)

cheers, teylyn
0
 

Author Closing Comment

by:ctownsen80
ID: 34955926
WORKS PERFECT! THANKS.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

782 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question