Find Last Numeric Cell Using Formulas

parry

MrExcel MVP
Joined
Aug 20, 2002
Messages
3,355
How can you obtain the address of the last numeric cell in a range by using formulas? In the following example the last numeric cell in row 1 is E1. Cell F1 contains a formula which returns "" and is treated as text as per the type formula shown. Ctrl-RightArrow from cell A1 returns F1 as the last used cell in the row.

I can do this with a custom function or sub but how about a formula?
I have tried =ADDRESS(1,COUNTA(1:1)) but this returns cell F1. Any ideas?
Tammy.xls
ABCDEFG
1122213 34 
212221334
3
4TypevalueofcellF12(Text)
5LastCellusingCountA$F$1
6
Sheet1
 
What about if I was wanting to find the first numeric cell in a range of addresses? How does the formula change?
 
Upvote 0

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
What about if I was wanting to find the first numeric cell in a range of addresses? How does the formula change?

=INDEX(Range,MATCH(TRUE,ISNUMBER(Range),0))

which needs to be confirmed with control+shift+enter, not just enter.

This returns the first numeric value from Range.

Note that Range must be a vector, not a matrix, for this formula to work. Also, Range cannot be a whole column like A:A.
 
Upvote 0
What about if I was wanting to find the first numeric cell in a range of addresses? How does the formula change?

=INDEX(Range,MATCH(TRUE,ISNUMBER(Range),0))

which needs to be confirmed with control+shift+enter, not just enter.

This returns the first numeric value from Range.

Note that Range must be a vector, not a matrix, for this formula to work. Also, Range cannot be a whole column like A:A.



Aladin, perfect! It is almost frustrating that nothing on this board can stump you. Works like a charm - I appreciate the help!!
 
Upvote 0

Forum statistics

Threads
1,215,339
Messages
6,124,365
Members
449,155
Latest member
ravioli44

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