Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find records in Report that are not in Report 2 1

Status
Not open for further replies.

MarkRobinson

Programmer
Feb 18, 2000
112
US
I've written this in MS Access VB, but don't know how to repeat it in excel 2000.
I've imported two reports into Excel
Sheet1 - All Customers (Cust Name in Col 1)
Sheet2 - This Years sales, by Customer (Cust Name in Col 1)

I need a list of all inactive customers based on cust name field.

How would I do this in Excel?

Thanks!

Mark C. Robinson
HandicappedPets.com



 





Hi,

faq68-5829

I'd use a query to return a QueryTable resultset containing the Not In criteria. No VBA required.

Skip,

[glasses] When a diminutive clarvoyant had disappeared from detention, headlines read...
Small Medium at Large[tongue]
 
or just a vlookup

=if(ISNA(Vlookup(A2,Sheet2!$A$1:$A$10000,1,false)),"Inactive","")

where your customer IDs are in colA, rows 2 to 10000

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top