Solved

excel lookup checking for value in another tab

Posted on 2014-09-12
2
64 Views
Last Modified: 2014-09-30
I have a simple XLS with two tabs GROUP & USERS

I want column I of users to be Yes when column B of USERS is found in column B of GROUP.  If it is not found I would like that column to be No
0
Comment
Question by:Matt Pinkston
[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
2 Comments
 
LVL 27

Accepted Solution

by:
Glenn Ray earned 500 total points
ID: 40320189
On the Users sheet - in Column I - insert this in the first cell (assuming I2 to start) and copy down:
=IF(COUNTIF(Group!B:B,B2)>0,"Yes","No")

Regards,
-Glenn
0
 
LVL 1

Expert Comment

by:pjg418
ID: 40320203
This is done with a Formatting rule or without, i liked using formatting rules, but they are more difficult.

You will select a range for your formatting rule to apply to which will be the Column 1 of Users.

Your rule will look at the users!$b(row#)  for a value (the name) and then determine if it is a member of the collection Column B of Group. You could use count IF for this

COUNTIF(USERS!B:B, $B1)



You will wrap that above statement in an if statement. If the statement resolves to greater than 0 it means that it found the item in the collection of GROUP!B:B. Set the if yes value to "YES" and the fail value to "no"

that will write either yes or no in your row if the item exists in the range on the second sheet.

BUT PETER THERE MUST BE ANOTHER WAY!!!!

True, you could write that countIf value into another column that you hide (like column z) then in column USERS!A you could write something life if($z(row#) > 0, 'yes', 'no') which will have the same effect without having to worry about using a formatting rule

BUT PETER THERE MUST BE ANOTHER WAY!!!!

in deed you could write the countIf formula into the first half of the if and then you don't need two columns (TRUE)

If(((COUNTIF(USERS!B:B, $B1) > 0), 'yes', 'no')

My excel is rusty, if in excel is IIF i think, anyways lmk
0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

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…
This article describes a serious pitfall that can happen when deleting shapes using VBA.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
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…

729 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