Solved

# V-lookup a word in another sheet and return that word

Posted on 2014-10-22
112 Views
I have two sheets in a workbook, I would like the v-lookup to return sub in Col B if found  or par in Col C if found on the second sheet for the matched number is col A. The problem is when I did the V-loookup it gave me the first occurrence. How do I tell the V-lookup to look for that specefic word per each number in column  A.

Workbook Sheet 1

Col A   Col B          col
5879       sub         par
898         sub

Worksheet 2

COL A  COLB
5879     sub
5879     par
5879     cast
898      sub
6778     sub
89566   cast
0
Question by:Danielle Jones
• 2

LVL 15

Expert Comment

Attached is example how you can do it...
VLOOKUP.xlsx
0

Author Comment

The two words I am actually searching for is "Tops Obs Scheduled" and "End Stages", The Col thats searching for the first word works, but End Stages is not, it's defaulting to Not. Any ideas?
0

LVL 15

Assisted Solution

Haris Djulic earned 250 total points
I changed the formula according to your values and they are working fine.. .Maybe in the second formula there is space before or after in the part of server value... Since it is working for the first should work for the second..

If there is still an error can you send me sample of your file to check it
VLOOKUP.xlsx
0

LVL 7

Accepted Solution

Katie Pierce earned 250 total points
I would create four columns to the right in the second sheet.  The first would have =IF(E2="","",A2), which would only give you the ID number if there was a value in the next column. The second would have =IF (B2="sub,"sub",""), which would give you a column of subs and blank cells.  Do the same in the next 2 columns with "par", which will give you a column of ID numbers and a column of pars and blanks.

Now do VLOOKUP with those four columns. The first column in sheet 1 will look to the 2 sub columns in sheet 2, and the second to the 2 par columns.

See attached.
Book1-VLOOKUP.xlsx
0

## Featured Post

### Suggested Solutions

Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
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…