Solved

Error #N/A problem

Posted on 2013-11-22
6
147 Views
Last Modified: 2013-11-22
Folks,
The below code is OK. However if I have no value in cell B2 I get the error #N/A in the range A4:A12. I'm having a problem not showing that error with IF(ISERROR and I may not be doing that correctly, if it is what I need not to show the #N/A error which is my objective.
=IF(HLOOKUP($B$2,$J$3:$M$12,ROW()-2,FALSE)=0,"",HLOOKUP($B$2,$J$3:$M$12,ROW()-2,FALSE))

Open in new window

0
Comment
Question by:Frank Freese
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 4

Expert Comment

by:yuppydu
ID: 39669321
for #N/A you should use ISNA instead of ISERROR
0
 
LVL 4

Accepted Solution

by:
yuppydu earned 500 total points
ID: 39669331
or you can simply add an IF(b2="";"";IF(HLOOKUP($B$2,$J$3:$M$12,ROW()-2,FALSE)=0,"",HLOOKUP($B$2,$J$3:$M$12,ROW()-2,FALSE)))
0
 

Author Comment

by:Frank Freese
ID: 39669477
You suggestion works "almost" - if you will repost
IF(b2="";"";IF(HLOOKUP($B$2,$J$3:$M$12,ROW()-2,FALSE)=0,"",HLOOKUP($B$2,$J$3:$M$12,ROW()-2,FALSE)))
to
IF(b2="","",IF(HLOOKUP($B$2,$J$3:$M$12,ROW()-2,FALSE)=0,"",HLOOKUP($B$2,$J$3:$M$12,ROW()-2,FALSE)))

without the ; I can award you points. I do not want to post an incorrect solution.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Frank Freese
ID: 39669935
yuppydu,
Please repost with changes so I can award you points.
Thanks you
0
 
LVL 4

Expert Comment

by:yuppydu
ID: 39669957
Sorry ; or , is just an argument separator. I didn't notice your system takes , therefore substitute ; with ,
0
 

Author Closing Comment

by:Frank Freese
ID: 39670004
thank you
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question