+ Reply to Thread
Results 1 to 15 of 15

Help with auto-populating text

  1. #1
    Registered User
    Join Date
    06-20-2019
    Location
    Reading, Pennsylvania
    MS-Off Ver
    Excel 2016
    Posts
    8

    Help with auto-populating text

    I am trying to create an overtime chart for work that will automatically populate text in the cells adjacent to the cell where text is entered. For example, if I enter B in cell A1, I want A to automatically enter in cell B1 and C to automatically enter into B2. Is this possible? Also, can I keep the sheets separate? So it pulls the information from sheet 2 whenever the text is entered in sheet 1? So in the attached workbook it would be referring to the names in the Employee column on sheet 2. An additional question I have is would it be possible to also have a calendar on a 3rd sheet that inserts the name on the corresponding date you enter when you make an entry on sheet 1?
    Attachment 629118Attachment 629119
    Attached Files Attached Files
    Last edited by MrHernandez07; 06-21-2019 at 06:16 PM. Reason: Attaching workbook

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Help with auto-populating text

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    06-20-2019
    Location
    Reading, Pennsylvania
    MS-Off Ver
    Excel 2016
    Posts
    8

    Re: Help with auto-populating text

    Okay I attached a sample. the first sheet is basically exactly what I will be using. Sheet 2 is the basic, it will just have much more data and full names which should eliminate confusion with same names. Any help would be greatly appreciated, or even if someone can let me know that what I need is not even possible

  4. #4
    Registered User
    Join Date
    06-20-2019
    Location
    Reading, Pennsylvania
    MS-Off Ver
    Excel 2016
    Posts
    8

    Re: Help with auto-populating text

    any advice is helpful, even a simple "can't be done"

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Help with auto-populating text

    It's not clear what you are looking for since your spreadsheet (sheet1) is empty. Give some examples of what you would enter and what you would expect to appear automatically (and why).
    What's the difference between an operator, wind up and let off?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  6. #6
    Registered User
    Join Date
    06-20-2019
    Location
    Reading, Pennsylvania
    MS-Off Ver
    Excel 2016
    Posts
    8

    Re: Help with auto-populating text

    Sorry, I can see now how it would be confusing. So on sheet 1 in the Employee off column I will enter a name of who will be off. I will enter the date and the shift. At that time I would like the employee covering column to fill in the name above and the name below the employee off from sheet 2. Basically A&C cover B, B&D cover C, C&A cover D, and D&B Cover A from each group. If I can get that part figured out, I can probably work on everything else I need it to do from there. It will have to reference the cells rather than that specific text because the names will change with turnover.

    As far as Wind-Up, Let-off, etc. those are the different machines. They each are responsible for covering each other within their group (4 people). A,B,C, &D are the 4 shifts.

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Help with auto-populating text

    Okay, almost there. Question:
    I notice Eric appears on here twice. Will names appear on the list more than once? Your employee covering sheet doesn't specify what piece of equipment to pull the name from. This isn't an issue if the names appear in a single column (as they do on your example) and don't repeat.

  8. #8
    Registered User
    Join Date
    06-20-2019
    Location
    Reading, Pennsylvania
    MS-Off Ver
    Excel 2016
    Posts
    8
    For sample purposes I only used first names. On my final copy I'll have last names included as to eliminate any confusion with that. The second part of my post was also the question of a calendar. Is it possible to have a 3rd sheet with a calendar that inputs the name on the date specified when an entry is made in sheet 1? I apologise for all the questions I'm just still daily new to Excel and I really would like to learn how to actually do all this stuff. Thanks again for the help!

    Quote Originally Posted by ChemistB View Post
    Okay, almost there. Question:
    I notice Eric appears on here twice. Will names appear on the list more than once? Your employee covering sheet doesn't specify what piece of equipment to pull the name from. This isn't an issue if the names appear in a single column (as they do on your example) and don't repeat.

  9. #9
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Help with auto-populating text

    Okay, I am giving 2 solutions.
    Solution 1 assumes that the number of employees for each machine is consistent (in this case 4 for each machine) Solution 1 results in a longer formula.

    Solution 2 does not assume that so requires some manual effort initially. I set up 2 blank spaces between each machine and then copied the first name on the list above to the first blank, and the last name on the list below to the second blank. Then I added a blank space " " after these names so they are (to Excel) different than the original names. (So "John" versus "John "). Solution 2 results in a fairly short formula.

    Solution 1: In C2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    In C3
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Then copy that pair of cells and copy them down the page.

    [B][/Solution 2:B] In Solution 2, the MATCHs will ignore the names with the spaces after them so things are much simplier. In C2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    In C3
    =IFERROR(INDEX(Sheet2!$D$3:$D$26, MATCH(B2, Sheet2!$D$3:$D$26,0)+1),"")

    See attached workbook
    Attached Files Attached Files

  10. #10
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Help with auto-populating text

    RE: the calendar. Yes, it would be (maybe) possible. The solution would depend on how the calendar is set up. On any given date, there are multiple shifts with each shift having multiple machines with someone assigned to each machine. How would you set that up?

  11. #11
    Registered User
    Join Date
    06-20-2019
    Location
    Reading, Pennsylvania
    MS-Off Ver
    Excel 2016
    Posts
    8

    Re: Help with auto-populating text

    For the calendar the following conditions would need to be met:
    1. Only 18 employees per day. After 18 we start a waiting list.
    2. An entry may only be made if the name above or below (employee covering) is not already on that day from it's respective group (machine).

    There are certain days that are exempt from these conditions so we would remove them from those days to allow unlimited entries. The calendar does not need to have any other information other than the name. It is simply used to let employees know that their day off has been approved.

    By the way, Thank you VERY much for your help! This is definitely more than I would have been able to figure out on my own. I can certainly see an Excel class coming up for myself in the near future.

    So I've been working on it and I still have along way to go but I've made a few changes. Again, thanks a ton! I'm figuring out a lot by working with what you gave me. I attached what I have so far
    Attached Files Attached Files
    Last edited by MrHernandez07; 06-29-2019 at 11:09 PM. Reason: Attached new sample

  12. #12
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: Help with auto-populating text

    If I understand correctly then columns A:B on the calendar sheet could be filled with date and name using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note that for this proposal to work dates will are individually placed on the OT Sheet (i.e. Brian Sullivan 7/1-7/3)
    Column C could be filled with the number of employees whom will be off that day using: =IF(A2="","",COUNTIFS(A$2:A2,A2))
    If this isn't what you want, please include expected results on the calendar sheet so that we can attempt to replicate them using formulas/code.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  13. #13
    Registered User
    Join Date
    06-20-2019
    Location
    Reading, Pennsylvania
    MS-Off Ver
    Excel 2016
    Posts
    8

    Re: Help with auto-populating text

    Okay Attached is what I am looking to do. I made 3 entries on the Overtime Sheet and matched the entries on the calendar how I would like them to come up.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    06-20-2019
    Location
    Reading, Pennsylvania
    MS-Off Ver
    Excel 2016
    Posts
    8

    Re: Help with auto-populating text

    up top... still curious if this part is possible

  15. #15
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: Help with auto-populating text

    This proposal employs a redesigned overtime signoff form in columns J:T. The formulas are the same formulas as in the original.
    Calendar dates in rows 3 and 22 are dates custom formatted "d"
    The formula that populates the calendar is: =IFERROR(INDEX('OT Sheet'!$L$2:$L$42,AGGREGATE(15,6,(ROW($A$2:$A$42)-ROW($A$1))/('OT Sheet'!$J$2:$J$42=B$3),ROWS($A$1:$A1))),"")
    Note that the calendar is only filled through July 13th.
    Let us know if you have any questions.
    Attached Files Attached Files

+ 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. Auto populating text fields on websites and scraping the web
    By damainkilla in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-04-2017, 01:18 PM
  2. VBA Code for Auto-Populating Text From One Table to Another
    By Rmkoonie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-31-2017, 08:56 AM
  3. [SOLVED] Auto Populating
    By punkyb in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-21-2014, 11:39 AM
  4. Auto populating
    By jorjacman in forum Excel General
    Replies: 8
    Last Post: 01-02-2014, 05:48 PM
  5. [SOLVED] Cell not auto-locking after auto-populating
    By Hillster in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-13-2012, 10:23 AM
  6. Auto populating UserForm Combo and Text boxes from Validated data sets
    By ZIXILPLIX in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-04-2010, 12:55 AM
  7. auto populating off of username
    By KLahvic in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-11-2009, 11:41 AM

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