# Eliminate #N/A

#### BX

##### Board Regular
Hi
I'm using the match function, and when I can't find a name in the range the formulas looking in it gives a #N/A.
Is there any way to use an if statement so if the match function can't find a "match" it gives the value 0.1?
Thanks,
BX

### Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

#### Zack Barresse

##### MrExcel MVP
yup, why don't ya post your formula.

#### Iridium

##### Well-known Member
Check out the ISNA function in the xl help

HTH

#### BX

##### Board Regular
Formula:
=match(A1,B2:B50,0)
But say the value in A1 isn't found in range B2:B50, I get #N/A.
Can I include an if statement to change any time I get #N/A it appears as a value (0.1).
Thxs

#### Zack Barresse

##### MrExcel MVP
=if(=match(A1,B2:B50,0)="#N/A",0.1,=match(A1,B2:B50,0))
try this.
i'm sure there's a better way w/ iridiums isna.

#### Iridium

##### Well-known Member
firefytr said:
=if(=match(A1,B2:B50,0)="#N/A",0.1,=match(A1,B2:B50,0))
try this.
i'm sure there's a better way w/ iridiums isna.

Probably the same effect though I haven't tested it. Just thinking along the lines of

=IF(ISNA(formula),0.1,formula)

though might be a brain fart on my part! Need to sleep but can't!

#### Todd Bardoni

##### Well-known Member
=IF(ISNA(MATCH(A1,B2:B50,0)),0.1,MATCH(A1,B2:B50,0))

#### Zack Barresse

##### MrExcel MVP
oh i hear ya iridium, same here (last night for me - this morning for you!)

Replies
3
Views
89
Replies
6
Views
64
Replies
7
Views
218
Replies
2
Views
62
Replies
6
Views
140

1,186,169
Messages
5,956,342
Members
438,247
Latest member
UZev

### 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?

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