Simple Urgent Excel Macro Help! Boss is killing me!

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Sabdogg99

Thread Starter
Joined
Nov 14, 2011
Messages
1
Hi I have a very basic macro I need coded. I have an excel file with Column A,B,C,D,E,F,G Column B = last name of user Column C = first name of user Column D - institution number There are about 5000 users listed who have trained on Equipment X. I need to find which Equipment X trained users are also trained on equipment Y. Column E, F, G are the same setup as B,C,D and list out the folks who are trained on equipment Y (about 3000 users). I need a Macro go through each user and in Columna A...check if user trained on Equipment X is also trained on Equipment Y (which basically entails seeing if a particular B,C,D set of info is found in the list of 3000 users in E,F,G. Some names are idential but their instituion will be different so the macro needs to make sure it checks the complete record (if #B,#C,#D = any #E,#F,#G). If it finds the name put a 1 in the respective column A next to the name of the equipemnt X trained peron. If not put a 0. Does this make sense...any help would me MUCH appreciated!

See attached file.
 

Attachments

Joined
Jul 29, 2001
Messages
21,334
Sounds like a good place to use a database instead of a spreadsheet.
 

etaf

Wayne
Moderator
Joined
Oct 2, 2003
Messages
65,487
you may want to remove the file - as this is a public domain and all those names will be on the internet
 

etaf

Wayne
Moderator
Joined
Oct 2, 2003
Messages
65,487
I would concatenate ABC and DEF and then use a vlookup

so in column I
do the follwoing

A2&B2&C2

in column J
do the following

D2&E2&F2

copy down all the rows

now you have the unique reference - first , last , company

now in A2

=VLOOKUP(I2,J:J,1,FALSE)
copy down all the rows

should find all the matches
and give the name - where theres no match = #N/A
problem will be spaces in the names - as you have different names format in the two columns
ie look at B2 compared to E2 - theres a space - so we may need to remove all the spaces

I have done the code - BUT wont load as it has names in - dummy data is always better
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top