Solved

excel lookup checking for value in another tab

Posted on 2014-09-12
2
60 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
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
.Range Set 25 77
Office 2016 without internet 6 38
Extract Names Based on Position in the Column 12 29
formatting - number format 2 13
Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

773 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