[Solved] How to Remove #N/A from IF VLOOKUP result

Discuss the spreadsheet application
Post Reply
GUNTTURSRINIWAS
Posts: 7
Joined: Sat Oct 05, 2013 1:15 pm

[Solved] How to Remove #N/A from IF VLOOKUP result

Post by GUNTTURSRINIWAS »

Hi !!!!
I searched all posts by subject which I felt were relevant to my subject mentioned problem and did not find one. I have given the sample workbook as attachment for your reference. I have tried all the tricks available up my sleeve but ended up in failure. Kindly sort out the problem if anyone can. It was possible to remove when I used single worksheet.

Thanks,
Regards
Sriniwas
Delhi,India
Attachments
Sample Workbook.xls
The file is in XL format
(47.5 KiB) Downloaded 623 times
Last edited by GUNTTURSRINIWAS on Thu Dec 26, 2013 9:31 pm, edited 2 times in total.
OpenOffice 3.4.1 on Windows 7
User avatar
Villeroy
Volunteer
Posts: 31348
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: How to Remove #n/a from IF VLOOKUP result

Post by Villeroy »

What is wrong with error #N/A :?:
It indicates that the value could not be looked up.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
GUNTTURSRINIWAS
Posts: 7
Joined: Sat Oct 05, 2013 1:15 pm

Re: How to Remove #n/a from IF VLOOKUP result

Post by GUNTTURSRINIWAS »

Ur right Villeroy but I just want a 0(zero) instead of #NA for such cells. Is it possible with the kind of function Iam using else please guide me but I would like to replace #NA with zero for further analysis.
OpenOffice 3.4.1 on Windows 7
User avatar
Villeroy
Volunteer
Posts: 31348
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: How to Remove #n/a from IF VLOOKUP result

Post by Villeroy »

=IF(ISNA(X1);0;X1) where X1 is your VLOOKUP
But now you can not distinguish between a missing value and a looked up zero.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
GUNTTURSRINIWAS
Posts: 7
Joined: Sat Oct 05, 2013 1:15 pm

Re: How to Remove #n/a from IF VLOOKUP result

Post by GUNTTURSRINIWAS »

Villeroy could you incorporate your formula in my worksheet and revert back,so that I can asses whether the result suffices my requirement. If not you can help me advice me further.
Regards
OpenOffice 3.4.1 on Windows 7
FJCC
Moderator
Posts: 9563
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: How to Remove #n/a from IF VLOOKUP result

Post by FJCC »

I wrapped your VLOOKUP on the MCX sheet in another IF() so a zero is returned rather than an #NA. The new part of the formula is

Code: Select all

IF(ISNA(VLOOKUP(A2;$MCX.$A$2:$G$300;5;0));0;VLOOKUP(A2;$MCX.$A$2:$G$300;5;0))
Attachments
Sample Workbook.xls
(48 KiB) Downloaded 596 times
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
User avatar
Villeroy
Volunteer
Posts: 31348
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: [Solved]How to Remove #n/a from IF VLOOKUP result

Post by Villeroy »

Code: Select all

=N(VLOOKUP(A2;$MCX.$A$2:$G$300;5;0))
works in this case where no text is expected to be returned. N(value) returns zero for any text or #N/A error.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Post Reply