1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Simple Urgent Excel Macro Help! Boss is killing me!

Discussion in 'Business Applications' started by Sabdogg99, Nov 14, 2011.

Thread Status:
Not open for further replies.
Advertisement
  1. Sabdogg99

    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.
     

    Attached Files:

  2. Rockn

    Rockn

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

    etaf Moderator

    Joined:
    Oct 2, 2003
    Messages:
    65,408
    First Name:
    Wayne
    you may want to remove the file - as this is a public domain and all those names will be on the internet
     
  4. etaf

    etaf Moderator

    Joined:
    Oct 2, 2003
    Messages:
    65,408
    First Name:
    Wayne
    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
     
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 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1026819

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice