+ Reply to Thread
Results 1 to 9 of 9

Automaticly fill in wokring shifts

  1. #1
    Registered User
    Join Date
    11-13-2013
    Location
    Holland
    MS-Off Ver
    Excel 2007
    Posts
    7

    Automaticly fill in wokring shifts

    Hello,

    first of all sorry for my bad englisch. I`m dutch. I`m creating a timetable for my colleague at work. On the left side I planned all the workers on shifts. Now I want to the shifts automaticly filled in on the right side vertically. Offcourse wenn I change a number on the left side it has to change on the right side. Eventually this timtable will be for over 100 workers.

    If I`m not clear please let me know.

    Greetz Patrick
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    01-11-2012
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    133

    Re: Automaticly fill in wokring shifts

    I am not sure if this is what you need. If not, perhaps explain more on the form with arrows. etc.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-13-2013
    Location
    Holland
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Automaticly fill in wokring shifts

    Yes,

    this is exactly how it should look like but now it@s not automatic. For example, if I change the first shift for worker 1 from 0600-1500 to 1200-2100 this change also has to be made on the right side. Lik I said in the end this timetable will be for 100 workers so I don@t want to copy all the cells one by one every 4 weeks.

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Automaticly fill in wokring shifts

    Copy this into I2:

    =IFERROR(INDEX($B$2:$F$23,MATCH(I$1,OFFSET($A$2:$A$23,0,MATCH($H2,$B$1:$F$1,0)),0)-1,MATCH($H2,$B$1:$F$1,0)),"")

    And paste over and down as far as needed.

    pbeumer.xlsx
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  5. #5
    Registered User
    Join Date
    11-13-2013
    Location
    Holland
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Automaticly fill in wokring shifts

    Nice,

    this I exact what I need. Now I have to transfer this to my big timetable. Thank you very much.

  6. #6
    Registered User
    Join Date
    11-13-2013
    Location
    Holland
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Automaticly fill in wokring shifts

    I succesfully used the formula on my major timetable. Now I want to learn what this formula did but I don`t know really how to read it. Can you tell me in several steps what your formula does?

  7. #7
    Forum Contributor
    Join Date
    01-11-2012
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    133

    Re: Automaticly fill in wokring shifts

    The formula is called index and match. You can google "excel index and match" and see how it works.

  8. #8
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Automaticly fill in wokring shifts

    There's a few formulas at work here.

    The first is IFERROR which defaults to an output should the first operation result in an error. In this case, we are defaulting to "" which means blank.

    I also used INDEX and MATCH.

    Parameters:
    MATCH(look for what, look for it where, 0 for exact match)

    INDEX(in what table, pull value from the nth row, pull value from the nth column)

    Since you have multiple sets of data for each header, we also used OFFSET.

    OFFSET(what reference, how many rows, how many columns)

    So, OFFSET(A1,1,1) really pulls the value of B2 which is one row down and one column over.

    Putting it altogether, I am indexing your whole table, and using offset to choose a variable column. When it finds an exact match for the row, I'm pulling the value from directly above.

  9. #9
    Registered User
    Join Date
    11-13-2013
    Location
    Holland
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Automaticly fill in wokring shifts

    Well thank you but this is going far above my head. I`m dutch so wenn I have the time this weekend I look all the stuff up in Dutch and see if I can read it. Wenn I have a new problem I definitely go to this forum!!!!

    Thanx Thanx Thanx!!!

+ 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. Automaticly auto fill help
    By FSalgueiro in forum Excel General
    Replies: 1
    Last Post: 07-26-2013, 08:40 PM
  2. Insert ID automaticly
    By ncaravela in forum Excel General
    Replies: 1
    Last Post: 04-28-2010, 09:38 AM
  3. Automaticly create Appointments from XL
    By zbor in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 09-11-2009, 03:47 AM
  4. how to print worksheet automaticly
    By jerr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-28-2008, 11:50 AM
  5. expand toolbar automaticly
    By Marc Daems in forum Excel General
    Replies: 2
    Last Post: 05-08-2006, 08:35 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