+ Reply to Thread
Results 1 to 11 of 11

Creating Database of Names from Poor Electronic System Output with Primary Job Role

  1. #1
    Registered User
    Join Date
    09-12-2014
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    15

    Creating Database of Names from Poor Electronic System Output with Primary Job Role

    Hi Everybody,
    Previously, I posted on this topic (Creating Database of Names from Poor Electronic System Output) and I was able to create the list of names that I needed through a VBA written by JohnTopley - unfortunately I was not specific in stating that I needed Columns C-J included in converting K and L into this list of names.

    I'm hopeful that somebody can help me now update that list of names with the role that those persons were entered under in the electronic system (Principal Investigator - labeled as PI Last and PI First in columns C and D, Research Coordinator as RC Last and RC First, Primary Administrative Contact as PAC Last and PAC First, etc.). The additional criteria for assigning this role is based on the greatest number of times that person is assigned that role; for example, if I am a PI 2 times but a Research Coordinator 10 times, I want my primary role to be pulled out as Research Coordinator.

    If somebody can not only create this but also update JohnTopley's VBA (example database and his VBA attached to thread) to include all users from Columns C and D as one person, E and F as one person, G and H as one person, I and J as one person, and then break K and L into the individual people with their primary job role, that would be amazing.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Creating Database of Names from Poor Electronic System Output with Primary Job Role

    If the output is shown on sheet output, just add this line

    ws2.Cells(rr, 3) = First_Last(1) & " " & First_Last(0)


    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-12-2014
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    15

    Re: Creating Database of Names from Poor Electronic System Output with Primary Job Role

    Hi AB33,
    That creates a combined name in column C in Output but it doesn't include any persons from C&D as one person, E&F, G&H, or I&J in the output. This doesn't also include the request for the VBA to look for the most common job title for each outputed user.

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Creating Database of Names from Poor Electronic System Output with Primary Job Role

    Please attach the desired output.

  5. #5
    Registered User
    Join Date
    09-12-2014
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    15

    Re: Creating Database of Names from Poor Electronic System Output with Primary Job Role

    Hi AB33,
    You'll see in the updated example that I've included in the output users from Columns C&D as one person through Column H to include them as potential names in our ultimate database. JohnTopley's VBA pulled in users from K and L but I need all the users from each of these studies to be pulled into the database in the easiset fashion since I'll have to do this every month for 1,000-10,000 studies. This is the primary request and the most important, i need a list of names from the electronic system output that will take me seconds to run instead of requiring more of my time.

    The seondary request is to have the VBA review the list of names and determine which column ithe name falls into the most and then assign that name that particular job role. This could be different from my HR database of job titles and could be useful data for reporting purposes.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Creating Database of Names from Poor Electronic System Output with Primary Job Role

    Ahm,
    It is difficult to understand how are you getting column D.
    First, John's code does not touch column K, so I do not know where column K is appearing on the code.
    Second, you are pulling in columns C and D below the last split of column L, i.e. rows 37 and below. I presume you do not want to mix these data with column L, that is, always appear separately.
    Where and how are getting these Primary Job?
    I see PI and RC. How do you come up with the maximum and minimum values?

  7. #7
    Registered User
    Join Date
    09-12-2014
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    15

    Re: Creating Database of Names from Poor Electronic System Output with Primary Job Role

    Hi AB33,
    To break it down to the simplest terms I can make it: I need all the names of every user that my electronic system outputs in the report I'm given every month in a simple to use list of names. My original issue that John Topley answered for me was splitting columns K and L apart because that output needs to converted into a single column of all those names. I need the PI (Columns C and D), the RC (Columns E and F), the Faculty Sponsor (Columns G and H), the PAC (Columns I and J), the Co-Investigators (Column K), and Other Study Personnel (Column L) all converted into a single column of names through the easiest process possible. Mingling them is not a problem because I just need a database of names that I can correlate to my HR's database of personnel to utilize Vlookup.

    Let's just ignore Column D in Output for now because the list of name is what I absolutely need.

    Please let me know if this is still confusing.

  8. #8
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Creating Database of Names from Poor Electronic System Output with Primary Job Role

    Yes, I am still not sure I understand your request.
    I have amended the code just to add column C and D, but there are not added in any order.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    09-12-2014
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    15

    Re: Creating Database of Names from Poor Electronic System Output with Primary Job Role

    Hi AB33,
    I went ahead and added in columns G-J using your code additions. That is a good first step. Now, I know the code is working on Column L to break those names up but I also need to break up Column K because those names are combined by the electronic system's output like Column L is. I tried to add that code but it screwed the macro up until I removed it. Can we add that in and then I'll at least have an accurate list of names from this report?

  10. #10
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Creating Database of Names from Poor Electronic System Output with Primary Job Role

    That is easy to add, but I am not sure which columns should be added from column K split. Does it follow the same split as column L?
    To be frank with you, I am still not sure if this what you wanted.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    09-12-2014
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    15

    Re: Creating Database of Names from Poor Electronic System Output with Primary Job Role

    It does follow the same split as Column L so this works perfectly. I'll take what you sent, addd my data to it, and then I can use that monthly to create my list of names.

    Thank you so much!

+ 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. Creating Database of Names from Poor Electronic System Output
    By fedewaj in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-14-2016, 10:33 AM
  2. [SOLVED] Electronic file system - VBA to inform when dates are older than 10 days
    By ramatthews in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-14-2016, 03:53 AM
  3. Creating Sub-Lists from 1 Primary List
    By SPF29 in forum Excel General
    Replies: 6
    Last Post: 02-19-2016, 03:08 PM
  4. [SOLVED] Split name and role, get rid of parentheses ex: Last, First (Role)
    By James Keuning in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-02-2014, 01:03 PM
  5. [SOLVED] Forecast output to ERP system
    By Vicarious in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-26-2014, 06:27 PM
  6. Creating Electronic Form Using Design Mode
    By AConneely in forum Excel General
    Replies: 4
    Last Post: 08-16-2012, 06:03 PM
  7. Primary key for database
    By yes sir in forum Access Tables & Databases
    Replies: 4
    Last Post: 08-21-2010, 09:20 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