Error with formula

daniels012

Well-known Member
Joined
Jan 13, 2005
Messages
5,219
I am getting an #NA error with this formula?
It has worked forever, why all of the sudden would it not be working?
=IF(B20<>"",INDEX(B19:B51,MATCH(TRUE,INDEX(NOT(ISNUMBER(B19:B51)),),FALSE)-1),B19[FONT=Inconsolata, monospace, arial, sans, sans-serif])
[/FONT][FONT=Inconsolata, monospace, arial, sans, sans-serif]
[/FONT]Thanks
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
As Ron says, your formula fails with all numeric as the below

TRUE,INDEX(NOT(ISNUMBER(B19:B51) evaluates to

TRUE,INDEX({FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE}
 
Upvote 0
The problem must be in the referenced range. Check each referenced cell for anomalies. Let us know what you find.
 
Upvote 0
How about possible help in changing this formula.
I just posted another post to replace this formula.
Here is my goal.
I know the first cell is B19
I need to get the last value in column "B" and I know there will be values contiguous up to a blank or text.
Is there a much simpler solution?

Thank you both for your quick responses
michael D
 
Upvote 0
use something like

SUM(B19:INDEX(B:B,COUNTA(B:B)+18)) to get your B range
 
Upvote 0
If you want the last numeric value in B39:B51, try this regular formula:
=LOOKUP(10^10,B19:B51)

Does that help?
 
Upvote 0

Forum statistics

Threads
1,215,022
Messages
6,122,716
Members
449,093
Latest member
Mnur

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