Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / August 2007

Tip: Looking for answers? Try searching our database.

Show a blank result in a cell when there is no value in the "Lookup" cell

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael Slater - 05 Aug 2007 18:45 GMT
I apologize if this question has been asked, but I have been unable to find
an answer searching the topics.

I'm using the following formula in cell C3:

=INDEX(LastName,MATCH(A3,EmpID,0))

When I type in an employee ID in A3, his/her last name shows in C3.
However, when there is no value in A3, C3 shows error "#N/A".

Is there a way to show a blank cell in C3 until a value is entered into A3?

Thanks in advance!

Mike
joeu2004 - 05 Aug 2007 19:17 GMT
> I'm using the following formula in cell C3:
> =INDEX(LastName,MATCH(A3,EmpID,0))
>
> When I type in an employee ID in A3, his/her last name shows in C3.
> However, when there is no value in A3, C3 shows error "#N/A".
> Is there a way to show a blank cell in C3 until a value is entered into A3?

Try:

=IF(A3="", "", INDEX(LastName,MATCH(A3,EmpID,0))
Michael Slater - 05 Aug 2007 20:08 GMT
Thank you,

That worked great!!

Mike

>> I'm using the following formula in cell C3:
>> =INDEX(LastName,MATCH(A3,EmpID,0))
[quoted text clipped - 7 lines]
>
> =IF(A3="", "", INDEX(LastName,MATCH(A3,EmpID,0))
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.