New Excel Forum

This forum has been moved to TeachExcel.com

Ask all future questions in the New Excel Forum.

ExcelKey

N/A

Formulas, Functions, Formatting, Charts, Data Analysis, etc.

N/A

Postby freddo » Mon Dec 19, 2011 6:01 pm

I am using a look up function and N/A appears whichs means it throws the auto sum out, how do I keep the cell blank instead of showing N/A
  • 0

freddo
Rookie
 
Posts: 1
Joined: Dec 19, 2011
Reputation: 0

Re: N/A

Postby Sisyphus » Mon Dec 19, 2011 8:18 pm

Hi,

Use the ISNA function:
Code: Select all
= if(ISNA( [Place your existing function here]), "",  [Repeat your existing function])

The True part of the IF function will write "" to the cell instread of the N/A message. If you need to use the result of the cell in further calculations you may have to write 0 (zero) instead.

I hope this helps. Have a pleasant evening! :D
  • 0

Last edited by Sisyphus on Wed Dec 28, 2011 6:05 am, edited 1 time in total.
Have a great day! :D

Sisyphus
I do this for "honour and country" - much less of the latter, actually.
If I helped you, award points, plenty of them.
If I bored you, deduct points for being too long-winded. (I know, :lol)
Sisyphus
Former Moderator
 
Posts: 4454
Joined: Dec 7, 2011
Location: Shanghai
Reputation: 203
Excel Version: 2010

Re: N/A

Postby Alkhader » Wed Dec 28, 2011 3:27 am

Dear Sisyphus

Can you attach Excel attach with formula ISNA to hide "N/A".
Thanks
  • 0

Alkhader
Rookie
 
Posts: 7
Joined: Dec 27, 2011
Reputation: 0

Re: N/A

Postby Sisyphus » Wed Dec 28, 2011 6:02 am

Here is the demonstration:
Code: Select all
=IF(ISNA(MATCH(B$3:B$6,5)),"Error was trapped",MATCH(B$3:B$6,5))

The range B3:B6 was filled with the number 1 to 4.
The MATCH function can't find the number 5 among them, and reports "#N/A"
The ISNA function traps the error and returns a result other than that of the MATCH function.

The attached worksheet has all that in 3D :D
Have a great day!
  • 0

You do not have the required permissions to view the files attached to this post.
Have a great day! :D

Sisyphus
I do this for "honour and country" - much less of the latter, actually.
If I helped you, award points, plenty of them.
If I bored you, deduct points for being too long-winded. (I know, :lol)
Sisyphus
Former Moderator
 
Posts: 4454
Joined: Dec 7, 2011
Location: Shanghai
Reputation: 203
Excel Version: 2010

Re: N/A

Postby Alkhader » Wed Dec 28, 2011 9:32 am

Thanks a lot friend. I would like you to help me in how do I keep the cell blank instead of showing N/A when there is a formula in the cell.

Sorry for being fussy in details "in my questions".

Alkhader
  • 0

Alkhader
Rookie
 
Posts: 7
Joined: Dec 27, 2011
Reputation: 0

Re: N/A

Postby Sisyphus » Wed Dec 28, 2011 10:34 pm

In the formula posted above the words "Error was trapped" will be written in place of the result. You can change this to anything you like. Since your needs are simple, the answer is simple, too. Just write "" - nothing, blank, Null, zilch. The formula would look like this now:
Code: Select all
=IF(ISNA(MATCH(B$3:B$6,5)),"",MATCH(B$3:B$6,5))


Just so that we don't loose you on the way, the IF function has three parts separated by commas
IF( [Condition], [Do if condition is True], [Do if Condition is False] )
In the above formula this scheme plays out like this:
=IF( Condition=[MATCH produces NA], True = "", False =MATCH )
Don't let the inverted True and False confuse you. In plain language: If it is True that MATCH produces NA, then insert nothing, Otherwise continue to insert the MATCH result.

Have a great day! :D
  • 0

Have a great day! :D

Sisyphus
I do this for "honour and country" - much less of the latter, actually.
If I helped you, award points, plenty of them.
If I bored you, deduct points for being too long-winded. (I know, :lol)
Sisyphus
Former Moderator
 
Posts: 4454
Joined: Dec 7, 2011
Location: Shanghai
Reputation: 203
Excel Version: 2010


Return to General Excel Questions

Who is online

Users browsing this forum: No registered users and 253 guests