+ Reply to Thread
Results 1 to 6 of 6

Make lists of names of people who need training / Remove blanks from lists of names

  1. #1
    Registered User
    Join Date
    05-20-2010
    Location
    Montana
    MS-Off Ver
    Excel 2007
    Posts
    3

    Make lists of names of people who need training / Remove blanks from lists of names

    Hi everyone,

    I have a spreadsheet table with a list of names down the left side, and a list of required training events across the top. At the intersection of the name and training event is a cell with the date the training was completed.

    What I'd like to do with this is create a separate sheet that gives me a list, organized by training event, of the names of the people who have not completed that training.

    For example, if this is my little spreadsheet:


    _________security______marketing_______HR policy
    Bill_______1/19/10_______1/5/10
    Sally______1/1/10______________________2/13/10
    Jim________4/1/10______________________2/1/10
    Jane_______3/5/10_______ 2/21/10

    What I'd like to have is this:

    security_________marketing_________HR policy
    _________________Sally______________Bill
    _________________Jim________________Jane


    or this:

    marketing ________HR policy
    Sally_____________Bill
    Jim_______________Jane


    so I can determine who needs to be at each training event. I have about 150 people and about 75 training events to track, so what I've been doing: filtering, copying and pasting, is labor intensive to say the least.

    I have a mail merge document that lists training dates by individual, so each person can get a memo detailing which training they've done and which they need, but the department head wants a roll-up of requirements by event so the training can be scheduled, rosters generated, etc.

    I think of myself as an intermediate user, but I'm not really literate with macros. I can type in a macro from detailed instructions, but I think in formulas rather than VBA.

    Any help is appreciated.

    Frank
    Last edited by fjasper; 05-21-2010 at 04:36 PM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Make lists of names of people who need training

    You could try something on the lines of

    =IF(ISBLANK(B2),$A2,"")

    I have attached a demo workbook to explain

    Hope this helps.

    If you need any further information, please feel free to ask further

    However

    If this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody!
    Also
    If you are satisfied by any members response to your problem please consider using the scales icon top right of thier post to show your appreciation.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    05-20-2010
    Location
    Montana
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Make lists of names of people who need training

    Wow, thanks for the quick reply!

    So I took too long working on my reply and the forum logged me out. Dangit.

    The IF and ISBLANK got me the names, and I scrounged around looking for a way to get rid of the blanks. F5/Custom.../Blanks/Ctrl- didn't work (maybe because of XL2007?), so I hit the internet to see what else I could find.

    Suffice it to say I got a macro from http://www.mvps.org/dmcritchie/excel/delempty.htm, and tweaked it a little so it would count a formula with a null result as though it were a blank cell. While that makes it sound like I knew what I was doing, I really just fiddled with stuff until it did what I wanted. I really don't understand what half of the lines in this macro are doing, I'm afraid.

    Sub DelCellsUp()
    Application.Calculation = xlCalculationManual
    Dim rng As Range, ix As Long
    Set rng = [A3:CQ133]
    For ix = rng.Count To 1 Step -1
    If Len(Trim(Replace(rng.Item(ix).Text, Chr(160), ""))) _
    = 0 Then rng.Item(ix).Delete (xlUp)
    Next
    done:
    Application.Calculation = xlCalculationAutomatic
    End Sub

    It works, but it's slow, taking several minutes to process the 12,000 or so cells in the current version of the sheet. Is this an inefficient way to do it, or do I just need a new faster computer?
    Last edited by fjasper; 05-20-2010 at 04:10 PM.

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Make lists of names of people who need training

    Have you tried Auto filter?

    Put a spare column between your new fields > "security", ,"marketing", ,"HR policy"

    1/. AutoFilter "security" only for non-blanks

    2/. Copy the result.

    3/. Clear the Autofilter

    5/. Paste special > Values in the first row of the adjacent column

    6/. Repeat for the other two fields.

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Make lists of names of people who need training

    Or maybe using code, transfer to another sheet

    Try this in the sheet I posted previously, (Don't add the spare columns)
    Please Login or Register  to view this content.

    Hope this helps

    If you need any further information, please feel free to ask further

    However

    If this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody!
    Also
    If you are satisfied by any members response to your problem please consider using the scales icon top right of thier post to show your appreciation.

  6. #6
    Registered User
    Join Date
    05-20-2010
    Location
    Montana
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Make lists of names of people who need training

    The code I found is working, and I added a few lines that renew the external links so it will update the sheet before removing the blanks, and assigned the whole thing to a button that says "Update this sheet" on it. It seems to work, saving me hours of updating every time I use it! Thanks for your help!

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1