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

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

ADVERTISEMENT

=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!)
 
Learn Excel from Bill Jelen

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

Forum statistics

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