I have two columns of numbers:
A B
1
4
2
6
4
5 6
3 3
2 4
4 1
What is an easy way to find the row number that contains the first entry of two numbers. Obviously, the answer is 6 but what is the formula?
I have two columns of numbers:
A B
1
4
2
6
4
5 6
3 3
2 4
4 1
What is an easy way to find the row number that contains the first entry of two numbers. Obviously, the answer is 6 but what is the formula?
Turn Data into Information
Turn Information into Knowledge
Turn Knowledge into Direction
Turn Direction into Leadership
Turn Leadership into Results
Stephen Druley
It's not how quickly you think
But how deeply you think
The quality of thinking is measured
by remoteness to conformance
Stephen Druley
Using your posted data, beginning in cell A1...
This formula returns the row number of the first pair of numeric values:
Is that something you can work with?![]()
Please Login or Register to view this content.
Or this:
=INDEX(A:A,MIN(IFERROR(MATCH($B$5:$B$8,$A$1:$A$100,0),"")))
(comfirmed with ctrl+shift+enter)
Never use Merged Cells in Excel
Or if the data is always like this - unbroken one column rows followed by unbroken two column rows - : =COUNT(A1:A9)-COUNT(B1:B9)+1
An example file is never useless!
Tried an example function of mine and got errors?
- Had you found them, replace ; with , and , with .
Hi KiPA...
Your formula will always return number 6, no matter of inputs... as long as there are all numbers...
Really? Works for me. Maybe I'm just tired and the whole thing went beyond my brain functions.
Edit: actually I can't get your formula working. All I can get is... something. The value even changes if I delete some number in B column and add it again.
Last edited by KiPA; 11-26-2010 at 06:44 PM.
I'm not sure if this makes a difference to the poster, but the request was for the Row Number...not the position in the list.
Using the formulas I'm seeing posted, their return values coincidentally match the row numbers only if the data begins in Row_1. The formula I posted returns the row number, no matter which row is the start of the data.
Thanks to everyone who contributed to this query. It is amazing how many different solutions there are for a given situation. All solutions worked.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks