Office & Productivity Software forum

General discussion

Help with vlookup

by Ice.Ryuzaki / March 1, 2009 3:27 AM PST

I am having trouble understand the vlookup function in excel. I need to be able to compare the values of two columns (customer number and salesperson number) in two worksheets. If the two columns in each worksheet do not match I want to return the customer number in a third worksheet. I have tried to follow vlookup tutorials online, but have not been able to make vlookup work the way I need it to. Can anyone help me?



Discussion is locked
You are posting a reply to: Help with vlookup
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Help with vlookup
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
As I understand it.
by MarkFlax Forum moderator / March 1, 2009 4:17 AM PST
In reply to: Help with vlookup

I haven't used VLOOKUP that often, but as I understand it, the function works on a table where it searches for a value in the left-hand column, and then displays the corresponding value of the same row in any other column specified in that table.

For my part the clue must be in the use of a table. The table has to be together, and cannot be spread over different worksheets. So I think your first task is to find a way to combine all the data from the different columns into one table, use the VLOOKUP function to search for and find discrepancies, then use the displayed result to reference the appropriate cells in either of the two worksheets.

I hope that helps, but perhaps others here will have better ideas.


Collapse -
I have trouble to understand your requirements.
by Kees Bakker / March 1, 2009 4:33 AM PST
In reply to: Help with vlookup

VLOOKLUP is a table lookup.

Let's take an example. You've got a table of customers, one row for each. First column = customer number, second column = customer name, third column = customer city.

Now, somewhere, in the same sheet, or in another sheet of the same workbook, or in another workbook, you type a customer number, say in C2. Then you can put a VLOOKUP formula in C3 (or anywhere else you like it better) that retrieves the customer name from the customer table. And another VLOOKUP formula in C4 (or anywhere else) that retrieves the customer city from that same table.

So you enter only the customer number and Excel finds out the name and city that belong to that customer. Each, of course, in a separate field.

If you want to show something in a third worksheet, you should put the formula there. Excel formulas show the result in the cell they are defined. But such a formula can reference any other cell or any other table in any other worksheet.

Hope this helps.


Popular Forums
Computer Newbies 10,686 discussions
Computer Help 54,365 discussions
Laptops 21,181 discussions
Networking & Wireless 16,313 discussions
Phones 17,137 discussions
Security 31,287 discussions
TVs & Home Theaters 22,101 discussions
Windows 7 8,164 discussions
Windows 10 2,657 discussions


Help, my PC with Windows 10 won't shut down properly

Since upgrading to Windows 10 my computer won't shut down properly. I use the menu button shutdown and the screen goes blank, but the system does not fully shut down. The only way to get it to shut down is to hold the physical power button down till it shuts down. Any suggestions?