Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Using the lookup formula

Posted on 2014-12-21
5
Medium Priority
?
88 Views
1 Endorsement
Last Modified: 2014-12-22
I may even have the wrong formula but I need to accomplish the following goal which I think I have stated correctly based on the attached screenshot.

The original phone extension number (X1445) is noted in cell Y15 along with the correspnding cube number (cube 13) in cell Z15 .

If I enter enter X1445 into cell U3, then I want the adjacent cell V3 to populate with data from Z15.


Assistance is greatly appreciated.
temp.PNG
1
Comment
Question by:frugalmule
[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
  • 2
5 Comments
 
LVL 47

Expert Comment

by:Wayne Taylor (webtubbs)
ID: 40512120
In cell V3, enter this formula...

    =VLOOKUP(U3, Y:Z, 2, FALSE)
0
 

Author Comment

by:frugalmule
ID: 40512225
Thank you, can you explain the syntax?
0
 
LVL 47

Accepted Solution

by:
Wayne Taylor (webtubbs) earned 2000 total points
ID: 40512258
The syntax for the function is VLOOKUP(lookup_value, table_array, col_index_num, range_lookup).

More info is available at http://office.microsoft.com/en-au/excel-help/vlookup-HP005209335.aspx
0
 

Author Comment

by:frugalmule
ID: 40513132
Excellent, it does work but produces an error in the V column if there is no value yet in the adjacent U column.  It would be best if it did not show #N/A or produce an error, or a number until an extension number is actually entered in the U column.
0
 
LVL 47

Expert Comment

by:Wayne Taylor (webtubbs)
ID: 40513893
You can eliminate errors in one of 2 ways....

1. Using a Condition


=IF(U3="", "", VLOOKUP(U3, Y:Z, 2, FALSE))

This checks if cell U3 contains a value. If it doesn't, it returns an empty string. If it does, it returns the results of the VLOOKUP function. Note that this will still return an error if the value in cell U3 is not found.

2. Checking for Error


=IFERROR(VLOOKUP(U3, Y:Z, 2, FALSE), "")

This will return an empty string if the value of the VLOOKUP function is an error.

3. Combination


=IF(U3="", "", IFERROR(VLOOKUP(U3, Y:Z, 2, FALSE), ""))

This will return an empty string if the cell U3 is empty or the value cannot be found.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

660 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