Solved

vlookup needed

Posted on 2015-02-03
5
90 Views
Last Modified: 2015-02-04
folks

on sheet 1 i display hostnames (servers) i colum a

server 1
server 2
server 3

in sheet 2 i have the same host lists in column a but have multiple retention values in columb b

i would like to in sheet 1 state yes or no if i do have retentions assigned to each ie see sample attached

all help will do
0
Comment
Question by:rutgermons
[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
5 Comments
 
LVL 47

Assisted Solution

by:Wayne Taylor (webtubbs)
Wayne Taylor (webtubbs) earned 175 total points
ID: 40587548
Try this formula...

   =IF(VLOOKUP(A2, Sheet2!A:B, 2, FALSE) <> "", "Yes", "No")

...where A2 is the server to lookup and your servers and retentions are in columns A and B on Sheet2.
0
 
LVL 7

Expert Comment

by:Katie Pierce
ID: 40587620
No sample attached.
0
 
LVL 29

Expert Comment

by:gowflow
ID: 40588132
It would help if you attach a file.
gowflow
0
 
LVL 33

Assisted Solution

by:Rob Henson
Rob Henson earned 125 total points
ID: 40588171
In sheet 2 are the servers listed multiple times in column a with a retention against each entry in column b?

If so, in column b of sheet1, you can use a COUNTIF function:

=COUNTIF(Sheet2!$A:$A,$A1)

Copied down the extent of the data on sheet1. This will give a numerical result, if not listed at all in sheet2 the result will be 0.

Thanks
Rob H
0
 
LVL 29

Accepted Solution

by:
gowflow earned 200 total points
ID: 40588183
Put  this formula in B2 of Sheet1 and expand down as much as you need.
=IFERROR(IF(VLOOKUP(A2,Sheet2!A:B,2,FALSE)="","No","Yes"),"")

VLOOKUP may return #NA if Server name not found in Sheet2 which is handled by the IFERROR function that will return a blank.

Pls see attached workbook.
gowflow
Server.xlsx
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
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 on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

749 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