?
Solved

vlookup needed

Posted on 2015-02-03
5
Medium Priority
?
94 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 700 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 31

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 500 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 31

Accepted Solution

by:
gowflow earned 800 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

Technology Partners: 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

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa‚Ķ

741 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