+ Reply to Thread
Results 1 to 12 of 12

Company training file - select target group from list then select employees that attend

  1. #1
    Registered User
    Join Date
    09-18-2008
    Location
    Switzerland
    MS-Off Ver
    Office 2003
    Posts
    82

    Company training file - select target group from list then select employees that attend

    Hi all

    It's been a while since I've had to put together a solid excel database and my skills are really rusty! I'll explain what I'm aiming to do because there's a fair chance that you know a better way to solve this than my formula.

    I have to design a company training database, which shows which employee(s) have to attend which training based on a defined target group list in the database sheet, which lists all the names of that target group in separate columns/named ranges. There are around 10 target groups which overlap, i.e. an employee may be in about 3-4 target groups.

    So on the main sheet you enter the name, date of a new training module and which target group it is for. Or you add a new name in a target group ("new employees") and want to see which training modules he or she has to attend when.

    The goal is to select the target group of a new training module from a defined list (linked to database sheet) and then have an 'x' appear under each employee name included in that target group.

    My best guess is:

    =IF(target group selection = target group name, COUNTIF(target group range,name above column))

    This works just fine for one instance only. But since I have to check about 10 target groups or more the results turn up as FALSE when several COUNTIFs have the name in it.

    =IF(target group selection = target group A, COUNTIF(target group range A,name above),IF(target group selection = target group B, COUNTIF((target group range B,name above)

    Would appreciate any idea how to make this work, thanks!
    Attached Files Attached Files
    Last edited by Simon-ch; 10-25-2017 at 01:01 AM. Reason: uploaded the file

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Company training file - select target group from list then select employees that atten

    Try

    H5
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Copy across
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Registered User
    Join Date
    09-18-2008
    Location
    Switzerland
    MS-Off Ver
    Office 2003
    Posts
    82

    Re: Company training file - select target group from list then select employees that atten

    Quote Originally Posted by shukla.ankur281190 View Post
    Try

    H5
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Copy across
    Great, that works, thanks a lot!

  4. #4
    Registered User
    Join Date
    09-18-2008
    Location
    Switzerland
    MS-Off Ver
    Office 2003
    Posts
    82

    Re: Company training file - select target group from list then select employees that atten

    As an added extra, how would I get a cell with all the emails of the participants formatted like this [email protected]; [email protected].... easy to copy into invitations for admin staff.

    So wherever there's a '1' on the line based on the formula above it should do a vlookup of sorts and assemble it?

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,878

    Re: Company training file - select target group from list then select employees that atten

    There are no E-mail addresses listed in your workbook - where would Excel find them?

    We will leave it this time, but for future reference, this is a different query and really should have been raised in a new thread.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Registered User
    Join Date
    09-18-2008
    Location
    Switzerland
    MS-Off Ver
    Office 2003
    Posts
    82

    Re: Company training file - select target group from list then select employees that atten

    Thanks, the email addresses could be added next to the employees' names in the database worksheet. I'll upload it for reference if necessary
    Last edited by AliGW; 10-25-2017 at 04:35 AM. Reason: Unnecessary quotation removed.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,878

    Re: Company training file - select target group from list then select employees that atten

    Yes, that would be helpful. Always try to provide a sample file.

  8. #8
    Registered User
    Join Date
    09-18-2008
    Location
    Switzerland
    MS-Off Ver
    Office 2003
    Posts
    82

    Re: Company training file - select target group from list then select employees that atten

    I tried to transpose all values in the database in order to have easier formulas (on lines instead of columns) and avoid mistakes.
    I redefined the ranges and corrected the above formula as I understood it, unfortunately it doesn't seem to work that way.

    Could you please correct it for me and explain where I went wrong so that I could learn? Thanks a lot again!

    Additionally if you know of a better way to copy all attendants' emails into 1 cell to copy that would be great
    Attached Files Attached Files
    Last edited by Simon-ch; 11-03-2017 at 03:44 AM.

  9. #9
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Company training file - select target group from list then select employees that atten

    Will you please clear the thing what you want? Explain the problem and how you wish to solve the pattern?

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  10. #10
    Registered User
    Join Date
    09-18-2008
    Location
    Switzerland
    MS-Off Ver
    Office 2003
    Posts
    82

    Re: Company training file - select target group from list then select employees that atten

    I guess I wasn't very clear. The file was working as intended with the adapted formula you provided.

    1) You could select a "target_groups" in column H

    2) It would then indicate which employees attend that particular training module (columns M-BH) through the INDEX / MATCH formula you provided.

    Now for practical reasons I transposed the values in the database of the "target_groups" from columns to lines, in order to facilitate all the formulas and make editing easier.
    But I'm unable to edit your formula in a way that it works the same way with values transposed and would appreciate the help.

    The file is attached above (v2)

  11. #11
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Company training file - select target group from list then select employees that atten

    ok try

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    09-18-2008
    Location
    Switzerland
    MS-Off Ver
    Office 2003
    Posts
    82

    Re: Company training file - select target group from list then select employees that atten

    Perfect, thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 14
    Last Post: 01-12-2017, 01:41 PM
  2. Replies: 7
    Last Post: 06-09-2016, 09:48 PM
  3. how to auto select drop list item when closing file?
    By Imran Magsi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-14-2016, 02:39 AM
  4. [SOLVED] Modify existing code to select file instead of select folder
    By Gti182 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-04-2014, 09:41 AM
  5. [SOLVED] Need alternate syntax 'Select Case' on Target.Column and Target.Row at the same time.
    By 111StepsAhead in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2012, 11:19 AM
  6. Select a file out of a list of files
    By Michael Wise in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-01-2006, 02:45 PM
  7. Select a name from a list of employees using Excel
    By Tornado in forum Excel General
    Replies: 1
    Last Post: 01-07-2005, 04:06 PM

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