ISNA question

excel_2009

Active Member
Joined
Sep 14, 2009
Messages
318
hi excel gurus,

I've got the following formula but I keep getting an error when i attempt to use it :

=(ISNA(MATCH("*"&LEFT(B2,10)&"*",E2,0),"0",MATCH("*"&LEFT(B2,10)

what is wrong with the formula??

Thank you :)
 

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.
I just don't know what you want.
why is there multiple arguments in ISNA??
I should contain only one argument.
 
Upvote 0
It's very complex to explain (especially as im a novice!)

here is the original formula, i simply want to add an 0 if the results are #NA

=MATCH("*"&LEFT(B2,10)&"*",E2,0)
 
Upvote 0
=IF(ISNA(MATCH("*"&LEFT(B2,10)&"*",E2,0)),0,MATCH("*"&LEFT(B2,10)&"*",E2,0))

I hope this will help
 
Upvote 0
hi excel gurus,

I've got the following formula but I keep getting an error when i attempt to use it :

=(ISNA(MATCH("*"&LEFT(B2,10)&"*",E2,0),"0",MATCH("*"&LEFT(B2,10)

what is wrong with the formula??

Thank you :)

Try...

=IF(ISNA(MATCH("*"&LEFT(B2,10)&"*",E2,0)),0,MATCH("*"&LEFT(B2,10),E2,0))

Better because MATCH returns a number when successful...

=IF(ISNUMBER(MATCH("*"&LEFT(B2,10)&"*",E2,0)),MATCH("*"&LEFT(B2,10),E2,0),0)

On Excel 2007 or later...

=IFERROR(MATCH("*"&LEFT(B2,10)&"*",E2,0),0)
 
Upvote 0

Forum statistics

Threads
1,224,598
Messages
6,179,814
Members
452,945
Latest member
Bib195

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