Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Rajiv@Ivey
 
Posts: n/a
Default First non blank number in a row

I've been trying to figure out how i can identify the first non blank cell in
a series and show me which column that cell is in. e.g.
Col1 Col2 Col3 Col4 Col5
Row1 34.2 3.45 45.1 432.1
Row2 43.1 541
Row3 34.1 51.12

What formula can i key in Col6, that shows me the for row2,that col2 is the
first non blank number, and for row 3, col3 is the first non blank number and
similarly for Row1, col1 is the first non blank number.

Thanks
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

In F2

=MIN(IF(A2:E2<"",COLUMN(A2:E2)))

which is an array formula, so commit with Ctrl-Shift-Enter

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Rajiv@Ivey" wrote in message
...
I've been trying to figure out how i can identify the first non blank cell

in
a series and show me which column that cell is in. e.g.
Col1 Col2 Col3 Col4 Col5
Row1 34.2 3.45 45.1 432.1
Row2 43.1 541
Row3 34.1 51.12

What formula can i key in Col6, that shows me the for row2,that col2 is

the
first non blank number, and for row 3, col3 is the first non blank number

and
similarly for Row1, col1 is the first non blank number.

Thanks



  #3   Report Post  
Bill Kuunders
 
Posts: n/a
Default

You did mention that the result should be in colmn 6.
As long as you do not need to add more columns a nested if formula will do
it.

=IF(A10,1,IF(B10,2,IF(C10,3,IF(D10,4,IF(E10,5 ,"none")))))

--
Greetings from New Zealand
Bill K


"Rajiv@Ivey" wrote in message
...
I've been trying to figure out how i can identify the first non blank cell
in
a series and show me which column that cell is in. e.g.
Col1 Col2 Col3 Col4 Col5
Row1 34.2 3.45 45.1 432.1
Row2 43.1 541
Row3 34.1 51.12

What formula can i key in Col6, that shows me the for row2,that col2 is
the
first non blank number, and for row 3, col3 is the first non blank number
and
similarly for Row1, col1 is the first non blank number.

Thanks



  #4   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Another way

=MATCH(TRUE,A2:D2<"",0)


entered with ctrl + shift & enter


regards,

Peo Sjoblom

"Rajiv@Ivey" wrote:

I've been trying to figure out how i can identify the first non blank cell in
a series and show me which column that cell is in. e.g.
Col1 Col2 Col3 Col4 Col5
Row1 34.2 3.45 45.1 432.1
Row2 43.1 541
Row3 34.1 51.12

What formula can i key in Col6, that shows me the for row2,that col2 is the
first non blank number, and for row 3, col3 is the first non blank number and
similarly for Row1, col1 is the first non blank number.

Thanks

  #5   Report Post  
Bill Kuunders
 
Posts: n/a
Default

excellent options

Thanks Bob and Peo

Bill K
"Peo Sjoblom" wrote in message
...
Another way

=MATCH(TRUE,A2:D2<"",0)


entered with ctrl + shift & enter


regards,

Peo Sjoblom

"Rajiv@Ivey" wrote:

I've been trying to figure out how i can identify the first non blank
cell in
a series and show me which column that cell is in. e.g.
Col1 Col2 Col3 Col4 Col5
Row1 34.2 3.45 45.1 432.1
Row2 43.1 541
Row3 34.1 51.12

What formula can i key in Col6, that shows me the for row2,that col2 is
the
first non blank number, and for row 3, col3 is the first non blank number
and
similarly for Row1, col1 is the first non blank number.

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
blank cells R.VENKATARAMAN Excel Discussion (Misc queries) 1 April 6th 05 10:25 AM
Not plotting blank cells with formulas until number appears Excel Charts and Formulas Charts and Charting in Excel 1 April 1st 05 12:58 AM
VLOOKUP, OFFSET, MATCH PROBLEM, HELP? Steve Excel Worksheet Functions 0 January 30th 05 09:11 PM
How to format a number in Indian style in Excel? Victor_alb Excel Discussion (Misc queries) 2 December 21st 04 04:21 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 10:17 PM.

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

About Us

"It's about Microsoft Excel"