#NA with an =OFFSET formula

bgamach1

New Member
Joined
Apr 8, 2016
Messages
8
=OFFSET(I$3,(MATCH(LARGE($B:$B,(ROW()-2)),$B:$B,0)-3),0)+ROW()/10000

I am using this formula, and it works as long as cell I3 does not equal #NA . Is there a way to fix this formula so when #NA is in cell I3, it returns blank instead of #NA ?
 

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"
Try this:

Code:
=if(iserror(i$3),"",[COLOR=#333333]OFFSET(I$3,(MATCH(LARGE($B:$B,(ROW()-2)),$B:$B,0)-3),0)+ROW()/10000))[/COLOR]

I think your formula might be missing some stuff at the end, so just update as appropriate, but doing the check on i$3 at the start should do what you want.
 
Upvote 0
Thanks. I am also having trouble with this formula.

=VLOOKUP(K15,B2:I29,8,0)

if the value in the column 8 is #na , what can i add to have it return blank?
 
Upvote 0
I think you can do this one like this:

Code:
=iferror([COLOR=#333333]VLOOKUP(K15,B2:I29,8,0),"")[/COLOR]
 
Upvote 0

Forum statistics

Threads
1,223,958
Messages
6,175,636
Members
452,662
Latest member
Aman1997

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