Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default How to find the first non-blank number in a row?

I have several rows which all start out as blank cells but then over time
start to have numbers (though the numbers start to come at different times).
I would like to write a formula that pulls the first non-blank cell for each
row. The numbers (once they start) are not sequential so i cannot use a
min/max function. There are also sporadic blanks which poses another hurdle.

For example:

A B C D E
Row
1. 15 11 23
2. 21 12 17
3. 2 4 78 65 13
4. 18 12

The formula i would like to write would result in the following:
1. 15
2. 21
3. 2
4. 18

I would assume there is a function that says "Return me the number in the
first cell in this row that is greater than 0"...I just cannot figure it out.
Please advise.

THANKS!!!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default How to find the first non-blank number in a row?

=INDEX(1:1,MATCH(TRUE,1:1<"",0))

ctrl+shift+enter, not just enter
copy down


"RLind" wrote:

I have several rows which all start out as blank cells but then over time
start to have numbers (though the numbers start to come at different times).
I would like to write a formula that pulls the first non-blank cell for each
row. The numbers (once they start) are not sequential so i cannot use a
min/max function. There are also sporadic blanks which poses another hurdle.

For example:

A B C D E
Row
1. 15 11 23
2. 21 12 17
3. 2 4 78 65 13
4. 18 12

The formula i would like to write would result in the following:
1. 15
2. 21
3. 2
4. 18

I would assume there is a function that says "Return me the number in the
first cell in this row that is greater than 0"...I just cannot figure it out.
Please advise.

THANKS!!!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 299
Default How to find the first non-blank number in a row?

That would return text as well


--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
(Remove ^^ from email)


"Teethless mama" wrote in message
...
=INDEX(1:1,MATCH(TRUE,1:1<"",0))

ctrl+shift+enter, not just enter
copy down


"RLind" wrote:

I have several rows which all start out as blank cells but then over time
start to have numbers (though the numbers start to come at different
times).
I would like to write a formula that pulls the first non-blank cell for
each
row. The numbers (once they start) are not sequential so i cannot use a
min/max function. There are also sporadic blanks which poses another
hurdle.

For example:

A B C D E
Row
1. 15 11 23
2. 21 12 17
3. 2 4 78 65 13
4. 18 12

The formula i would like to write would result in the following:
1. 15
2. 21
3. 2
4. 18

I would assume there is a function that says "Return me the number in
the
first cell in this row that is greater than 0"...I just cannot figure it
out.
Please advise.

THANKS!!!



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default How to find the first non-blank number in a row?

Is there an option that does not require control+shift+enter? Thanks for the
help.

"Teethless mama" wrote:

=INDEX(1:1,MATCH(TRUE,1:1<"",0))

ctrl+shift+enter, not just enter
copy down


"RLind" wrote:

I have several rows which all start out as blank cells but then over time
start to have numbers (though the numbers start to come at different times).
I would like to write a formula that pulls the first non-blank cell for each
row. The numbers (once they start) are not sequential so i cannot use a
min/max function. There are also sporadic blanks which poses another hurdle.

For example:

A B C D E
Row
1. 15 11 23
2. 21 12 17
3. 2 4 78 65 13
4. 18 12

The formula i would like to write would result in the following:
1. 15
2. 21
3. 2
4. 18

I would assume there is a function that says "Return me the number in the
first cell in this row that is greater than 0"...I just cannot figure it out.
Please advise.

THANKS!!!

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default How to find the first non-blank number in a row?

=INDEX(1:1,MATCH(1,INDEX(--(1:1<""),1,0),0))


"RLind" wrote:

Is there an option that does not require control+shift+enter? Thanks for the
help.

"Teethless mama" wrote:

=INDEX(1:1,MATCH(TRUE,1:1<"",0))

ctrl+shift+enter, not just enter
copy down


"RLind" wrote:

I have several rows which all start out as blank cells but then over time
start to have numbers (though the numbers start to come at different times).
I would like to write a formula that pulls the first non-blank cell for each
row. The numbers (once they start) are not sequential so i cannot use a
min/max function. There are also sporadic blanks which poses another hurdle.

For example:

A B C D E
Row
1. 15 11 23
2. 21 12 17
3. 2 4 78 65 13
4. 18 12

The formula i would like to write would result in the following:
1. 15
2. 21
3. 2
4. 18

I would assume there is a function that says "Return me the number in the
first cell in this row that is greater than 0"...I just cannot figure it out.
Please advise.

THANKS!!!



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default How to find the first non-blank number in a row?

Try this array formula** :

=INDEX(A1:E1,MATCH(TRUE,ISNUMBER(A1:E1),0))

Copy down as needed.

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

Biff

"RLind" wrote in message
...
I have several rows which all start out as blank cells but then over time
start to have numbers (though the numbers start to come at different
times).
I would like to write a formula that pulls the first non-blank cell for
each
row. The numbers (once they start) are not sequential so i cannot use a
min/max function. There are also sporadic blanks which poses another
hurdle.

For example:

A B C D E
Row
1. 15 11 23
2. 21 12 17
3. 2 4 78 65 13
4. 18 12

The formula i would like to write would result in the following:
1. 15
2. 21
3. 2
4. 18

I would assume there is a function that says "Return me the number in the
first cell in this row that is greater than 0"...I just cannot figure it
out.
Please advise.

THANKS!!!



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default How to find the first non-blank number in a row?

Is there an option that does not require control+shift+enter? Thanks for the
help.

"T. Valko" wrote:

Try this array formula** :

=INDEX(A1:E1,MATCH(TRUE,ISNUMBER(A1:E1),0))

Copy down as needed.

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

Biff

"RLind" wrote in message
...
I have several rows which all start out as blank cells but then over time
start to have numbers (though the numbers start to come at different
times).
I would like to write a formula that pulls the first non-blank cell for
each
row. The numbers (once they start) are not sequential so i cannot use a
min/max function. There are also sporadic blanks which poses another
hurdle.

For example:

A B C D E
Row
1. 15 11 23
2. 21 12 17
3. 2 4 78 65 13
4. 18 12

The formula i would like to write would result in the following:
1. 15
2. 21
3. 2
4. 18

I would assume there is a function that says "Return me the number in the
first cell in this row that is greater than 0"...I just cannot figure it
out.
Please advise.

THANKS!!!




  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default How to find the first non-blank number in a row?

Try this normally entered:

=INDEX(A1:E1,MATCH(1,INDEX(--(ISNUMBER(A1:E1)),1,),0))

Biff

"RLind" wrote in message
...
Is there an option that does not require control+shift+enter? Thanks for
the
help.

"T. Valko" wrote:

Try this array formula** :

=INDEX(A1:E1,MATCH(TRUE,ISNUMBER(A1:E1),0))

Copy down as needed.

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

Biff

"RLind" wrote in message
...
I have several rows which all start out as blank cells but then over
time
start to have numbers (though the numbers start to come at different
times).
I would like to write a formula that pulls the first non-blank cell for
each
row. The numbers (once they start) are not sequential so i cannot use
a
min/max function. There are also sporadic blanks which poses another
hurdle.

For example:

A B C D E
Row
1. 15 11 23
2. 21 12 17
3. 2 4 78 65 13
4. 18 12

The formula i would like to write would result in the following:
1. 15
2. 21
3. 2
4. 18

I would assume there is a function that says "Return me the number in
the
first cell in this row that is greater than 0"...I just cannot figure
it
out.
Please advise.

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
Find First Non blank cell than find column header and return that value Silver Rose Excel Worksheet Functions 10 April 30th 07 05:56 PM
countif formula to find the occurances of a number that is greater than one number but less than another steveo Excel Discussion (Misc queries) 3 July 8th 06 02:04 AM
VBA Find Next Available Blank Rows [email protected] Excel Discussion (Misc queries) 2 April 5th 06 07:30 PM
Find second blank row singlgl1 Excel Discussion (Misc queries) 2 November 26th 05 05:44 PM
How do I find cells that being with a blank? bvinternet Excel Discussion (Misc queries) 3 July 23rd 05 09:25 PM


All times are GMT +1. The time now is 07:32 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"