Show the first number in line ?

baramburum

New Member
Joined
Dec 21, 2010
Messages
48
Dear Experts,

I need a formula for cell to Show the First Number in Line

I have a line with blank cells in the beginning and numbers after. I need to show in my cell the number in the first cell after blank ones.

Please help with formula.

Thanks
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Dear Experts,

I need a formula for cell to Show the First Number in Line

I have a line with blank cells in the beginning and numbers after. I need to show in my cell the number in the first cell after blank ones.

Please help with formula.

Thanks
Try this...

Book1
ABCDEF
137111511
Sheet1

Array entered**:

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

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
 
Upvote 0
Hi Valko again,

How to do the same, but to show the "FIRST POSITIVE" number in line ?
Assuming the range will contain only numbers.

How should 0 be evaluated? Is it a positive number?

Try this. This is based on positive numbers being greater than 0.

Book1
ABCDEF
1_-50-135
Sheet1

Both formulas are array formulas**.

=INDEX(A1:F1,MATCH(TRUE,A1:F1>0,0))

If you need or want an error trap:

=IF(COUNTIF(A1:F1,">0"),INDEX(A1:F1,MATCH(TRUE,A1:F1>0,0)),"")

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top