Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-28-2011, 12:50 PM
struct struct is offline comparing values from a range Windows XP comparing values from a range Office 2003
Novice
comparing values from a range
 
Join Date: Mar 2011
Posts: 1
struct is on a distinguished road
Exclamation comparing values from a range

Hello,

I'm not sure how to approach this...
I have a report with quite a lot of data. I need to do a couple of things with it.

1) I need to look for all records that have the number 7 in column C that don't have a duplicate entry in column A



Simplified Example
------------------------------------------------------
AB45678902CN somedata 7 somedata somedata
AB45678902CN somedata 1 somedata somedata

2) Separately, I need to search for

Items in column A that do not have a corresponding number 7 entry in column C

In both cases, there should be at least two of each entry in column A.

I really hope I've explained this well enough!

Thanks for your input.
Reply With Quote
  #2  
Old 04-01-2011, 07:17 PM
macropod's Avatar
macropod macropod is offline comparing values from a range Windows 7 32bit comparing values from a range Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi struct,

It's not clear from your post what should appear in column A. The first example has a 7 in column C, and there's a 7 in the string in column A. The second example has a 1 in column C, and there's no 1 in the string in column A.

Assuming you need to know when:
There is a 7 in col A but not col A;
There is a 7 in col C but not col A;, and
Neither col A nor col C has a 7,
try the following formula in, say F1, copied down as far as needed:
=IF(AND(C1=7,ISERROR(FIND(7,A1))),"Check Col A",IF(AND(C1<>7,NOT(ISERROR(FIND(7,A1)))),"Chec k Col C",IF(AND(C1<>7,ISERROR(FIND(7,A1))),"Check Cols A & C","")))
If you then sort the data by Col F, you'll have all the questionable records sorted together at either the top or bottom of the list, depending on your sort order.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
comparing values from a range Using Conditions to Add Values EclipticalD Excel 1 07-08-2010 09:50 PM
comparing values from a range Comparing Word Documents NepalKat#1 Word 1 01-09-2010 11:18 AM
Opening .pst with dummy values ran_sushmi Outlook 0 08-19-2009 01:56 AM
macro for comparing data from 3 columns and pasting into another worksheet ashukla Excel 1 06-24-2009 05:01 PM
comparing values from a range Comparing Data leroytrolley Excel 1 08-09-2008 08:34 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:36 AM.


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