# 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

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

#### 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
5
Views
314
Replies
1
Views
93
Replies
1
Views
63
Replies
2
Views
431
Replies
5
Views
107

Understanding data is crucial, and the easiest place to start is with Microsoft Excel.

1,151,565
Messages
5,765,147
Members
425,263
Latest member
alcat

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

### Which adblocker are you using?

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

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