Solved

vlookup needed

Posted on 2015-02-03
5
91 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 30

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 30

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

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…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

728 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