Eliminate #N/A

BX

Board Regular
Joined
Jun 2, 2002
Messages
172
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
Joined
Dec 9, 2003
Messages
10,881
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
  2. Mobile
  3. Web
yup, why don't ya post your formula.
 

BX

Board Regular
Joined
Jun 2, 2002
Messages
172
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
Joined
Dec 9, 2003
Messages
10,881
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
  2. Mobile
  3. Web
=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
Joined
Jul 15, 2002
Messages
2,831
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!
 

Zack Barresse

MrExcel MVP
Joined
Dec 9, 2003
Messages
10,881
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
  2. Mobile
  3. Web
oh i hear ya iridium, same here (last night for me - this morning for you!)
 

Forum statistics

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

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
Top