Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-18-2014, 06:19 PM
shilabrow shilabrow is offline Error comparing and getting result of between Two columns Windows Vista Error comparing and getting result of between Two columns Office 2007
Advanced Beginner
Error comparing and getting result of between Two columns
 
Join Date: Apr 2014
Posts: 45
shilabrow is on a distinguished road
Default Error comparing and getting result of between Two columns

Look at all the IDs in Cell A and check if its in Cell B, If in Cell B, Yes and if Not No in Cell C. I tried using the find function but not getting it.
The Vlookup is giving me what it finds in Cell B and putting #NA in other which I don’t like. Any help appreciated. Thanks
Please Ignore my Cell Arrangement of C A B - There are 3 columns below.


C A B
Result ID ID
No 112 145
No 123 168
No 137 179
No 139 185
Yes 145 191
No 158 197
Yes 168
No 177
Yes 191
Yes 197
No 199
Reply With Quote
  #2  
Old 06-18-2014, 06:33 PM
whatsup whatsup is offline Error comparing and getting result of between Two columns Windows 7 64bit Error comparing and getting result of between Two columns Office 2010 32bit
Competent Performer
 
Join Date: May 2014
Posts: 137
whatsup will become famous soon enough
Default

Hi

Use COUNTIF():
=IF(COUNTIF($B$2:$B$12,A2)>0,"Yes","No")
Copy the formula right to the bottom of your list.
Reply With Quote
  #3  
Old 06-18-2014, 06:54 PM
shilabrow shilabrow is offline Error comparing and getting result of between Two columns Windows Vista Error comparing and getting result of between Two columns Office 2007
Advanced Beginner
Error comparing and getting result of between Two columns
 
Join Date: Apr 2014
Posts: 45
shilabrow is on a distinguished road
Default

Thanks Whatsup - Works great! But how do I make the formula give me an empty cell if I copy the formula way below the last cell with ID so that the formula can capture new IDs as they are coming in without showing me No until it sees an ID.

Like saying If No IDs in any Cell B (B5) I get "empty" rather than No. Thanks!!
Reply With Quote
  #4  
Old 06-18-2014, 07:35 PM
whatsup whatsup is offline Error comparing and getting result of between Two columns Windows 7 64bit Error comparing and getting result of between Two columns Office 2010 32bit
Competent Performer
 
Join Date: May 2014
Posts: 137
whatsup will become famous soon enough
Default

That way:
=IF(A2="","Empty",IF(COUNTIF($B$2:$B$12,A2)>0,"Yes","No"))
The example sticks to the first description of yours, somehow you got the sample-list mixed up
Reply With Quote
  #5  
Old 06-19-2014, 03:36 AM
shilabrow shilabrow is offline Error comparing and getting result of between Two columns Windows Vista Error comparing and getting result of between Two columns Office 2007
Advanced Beginner
Error comparing and getting result of between Two columns
 
Join Date: Apr 2014
Posts: 45
shilabrow is on a distinguished road
Default

Thanks Whatsup. Yeah I rearranged the columns cos they were getting messed up but you understand my question and you solved it. Thanks - It works! I appreciate it.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error comparing and getting result of between Two columns Comparing 2 columns of Text Berk21 Excel 9 02-03-2012 12:19 PM
Error comparing and getting result of between Two columns Advanced Filter - Comparing Two Columns apolloman Excel 5 07-27-2011 04:54 AM
Error comparing and getting result of between Two columns How to compare 2 columns with other two columns in EXECL 2007? Learner7 Excel 5 06-12-2010 09:54 AM
macro for comparing data from 3 columns and pasting into another worksheet ashukla Excel 1 06-24-2009 05:01 PM
Error comparing and getting result of between Two columns Comparing Data leroytrolley Excel 1 08-09-2008 08:34 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:44 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft