Solved

What is wrong with this VLOOKUP formula in Excel 2007?

Posted on 2016-09-29
13
44 Views
Last Modified: 2016-09-30
I can't find anything wrong with this formula:

=IFERROR(VLOOKUP(C1;Travbanor!A6:C100;3;FALSE);"")

But it doesn't return the value from column 3 on the tab "Travbanor".
0
Comment
Question by:hermesalpha
  • 4
  • 4
  • 3
  • +2
13 Comments
 
LVL 6

Expert Comment

by:DPatel
ID: 41822886
=IFERROR(VLOOKUP(C1,Travbanor!A6:C100,3,FALSE),"")

The issue is in parameter seperator.
0
 

Author Comment

by:hermesalpha
ID: 41822887
I have to use semicolon in my operative system.
0
 
LVL 39

Expert Comment

by:Pratima Pharande
ID: 41822893
I tried its working for me - below one

=IFERROR(VLOOKUP(C1,Travbanor!A6:C100,3,FALSE),0)
see attached excel

Atatch your excel file if still you face issue
New-Microsoft-Excel-Worksheet.xlsx
0
 
LVL 6

Expert Comment

by:DPatel
ID: 41822894
Yes its working.

It shows "3" as an output of the formula in A Column.
0
 
LVL 28

Accepted Solution

by:
Subodh Tiwari (Neeraj) earned 500 total points
ID: 41822895
In the VlookUp formula, your lookup value is C1.
Are you sure that your lookup value is found in column A of Travbanor Sheet?

Remember that in VlookUp function, the lookup value should always be in the first column of the table array.
0
 
LVL 6

Expert Comment

by:DPatel
ID: 41822896
Then you will have to change list separator to ";" instead.

To do so, open Region and Settings
Go to Change Date, Time and Number Formats
Click on Advance Settings and there you will find List Separator Field.
Change it to ";"

Then Try!!!
Inform whether its working or not.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 6

Expert Comment

by:DPatel
ID: 41822898
Hi Neeraj,

I found the lookup value in cell C1.

check.PNG
0
 

Author Comment

by:hermesalpha
ID: 41822902
Subodh, you were right, I didn't have the lookup value in the first column of the table. After I changed according to that it worked fine.
0
 
LVL 28

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41822905
Glad your issue is resolved.
0
 

Author Comment

by:hermesalpha
ID: 41822907
Just a sidenote: Now I want to have a return value from a column to the left of the lookup column. I guess this isn't possible with VLOOKUP, but what function can I use for that then?
0
 

Author Comment

by:hermesalpha
ID: 41822908
I just found the answer here:

http://www.excel-university.com/how-to-return-a-value-left-of-vlookups-lookup-column/

It seems I should use Match function for looking up a value in the column to the left.
0
 
LVL 28

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41822911
In that case try Index/Match.

Lets say you want to return the value from col. B on Travbanor Sheet where C1 is found in col. C on Travbanor Sheet, your formula should be like this....
=IFERROR(INDEX(Travbanor!$B$6:$B$100,MATCH(C1,Travbanor!$C$6:$C$100,0)),"")

Open in new window

0
 
LVL 32

Expert Comment

by:Rob Henson
ID: 41823313
Or you can use just LOOKUP function:

=LOOKUP(LookupValue,LookupRange,ReturnRange)

ReturnRange can be to left or right of LookupRange.

It can also be used for rows and ReturnRange can be above LookupRange.

Also, the two ranges, one can be a row and the other can be a column so long as both ranges are the same size.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Find word and 6 digit number 22 97
Macro Capitalize 4 54
Configure Sharepoint 2013 to allow Excel files to be edited online 9 55
the code is not looping through 11 24
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

911 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

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now