+ Reply to Thread
Results 1 to 21 of 21

Yearly Schedule Populate With and X

  1. #1
    Forum Contributor
    Join Date
    10-06-2015
    Location
    USA
    MS-Off Ver
    MS office 2010
    Posts
    123

    Yearly Schedule Populate With and X

    I am building a yearly schedule for preventative maintenance on equipment. I have the due date populated on tab1 but in tab two I want each machine I listed to have an X under the month it is due. For example, machine 1 is due 4/12 then an X should auto populate under April with an X. Machine 2 is due 8/22 then an x should auto populate under Aug with an X.

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Yearly Schedule Populate With and X

    Post a sample workbook so we can see how your data is setup. Include how you would like the results to show.
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Forum Contributor
    Join Date
    10-06-2015
    Location
    USA
    MS-Off Ver
    MS office 2010
    Posts
    123

    Re: Yearly Schedule Populate With and X

    Example.xlsx

    Here you go!

  4. #4
    Forum Contributor
    Join Date
    10-06-2015
    Location
    USA
    MS-Off Ver
    MS office 2010
    Posts
    123

    Re: Yearly Schedule Populate With and X

    See tab 3. I have entered an example of what I want to auto populate.

  5. #5
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Yearly Schedule Populate With and X

    Try this. Drag across/down:

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    10-06-2015
    Location
    USA
    MS-Off Ver
    MS office 2010
    Posts
    123

    Re: Yearly Schedule Populate With and X

    That worked!!! Thanks!

  7. #7
    Forum Contributor
    Join Date
    10-06-2015
    Location
    USA
    MS-Off Ver
    MS office 2010
    Posts
    123

    Re: Yearly Schedule Populate With and X

    What if I want the X to be replaced with the next level PM. For Example, in tab 1 there is a PM type of L2 and it should be displaid as L1 for the next PM on the schedule?Example.xlsx

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Yearly Schedule Populate With and X

    Here are two formulae that work with your example workbook. I entered a row above the text months with the month numbers
    Enter in B11 and fill across and down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

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


    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    9
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    10
    Machine Number
    Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
    11
    3
    x
    12
    4
    x
    13
    5
    x
    14
    9
    x
    15
    13
    x
    16
    14
    x
    17
    16
    x
    18
    17
    x
    19
    18
    x
    20
    19
    x
    21
    20
    x
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  9. #9
    Forum Contributor
    Join Date
    10-06-2015
    Location
    USA
    MS-Off Ver
    MS office 2010
    Posts
    123

    Re: Yearly Schedule Populate With and X

    Instead of entering an X and you want it to display the next PM type due how would I enter that into the formula? For example machine 3 had a L2 PM completed and I want the X to state L1 and vise versa?

  10. #10
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Yearly Schedule Populate With and X

    Here is a way:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


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


    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    8
    9
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    10
    Machine Number
    Jan
    Feb
    Mar
    Apr
    May
    Jun
    Jul
    Aug
    Sep
    Oct
    Nov
    Dec
    11
    3
    L2
    12
    4
    L2
    13
    5
    L2
    14
    9
    L1
    15
    13
    L2
    16
    14
    L2
    17
    16
    L2
    18
    17
    L1
    19
    18
    L1
    20
    19
    L2
    21
    20
    L2
    22
    21
    L2
    23
    22
    L1
    24
    38
    L1
    25
    40
    L1
    26
    41
    L2

  11. #11
    Forum Contributor
    Join Date
    10-06-2015
    Location
    USA
    MS-Off Ver
    MS office 2010
    Posts
    123

    Re: Yearly Schedule Populate With and X

    That works but where you have L2 it should be L1 because the original cell states L2 and vise versa.

  12. #12
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Yearly Schedule Populate With and X

    The following will reverse the L1 to L2 and visa versa
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    9
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    10
    Machine Number
    Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
    11
    3
    L1
    12
    4
    L1
    13
    5
    L1
    14
    9
    L2
    15
    13
    L1
    16
    14
    L1
    17
    16
    L1
    18
    17
    L2
    19
    18
    L2
    20
    19
    L1
    21
    20
    L1
    22
    21

  13. #13
    Forum Contributor
    Join Date
    10-06-2015
    Location
    USA
    MS-Off Ver
    MS office 2010
    Posts
    123

    Re: Yearly Schedule Populate With and X

    The formula does not seem to be working. It is stating there is an error of a circular reference and could not be created.

  14. #14
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Yearly Schedule Populate With and X

    You have likely entered a cell reference to the active cell by mistake. What I have shown you is an actual copy of my worksheet so you know that the formula does work.
    Attached Files Attached Files

  15. #15
    Forum Contributor
    Join Date
    10-06-2015
    Location
    USA
    MS-Off Ver
    MS office 2010
    Posts
    123

    Re: Yearly Schedule Populate With and X

    Thank you. It was something to do with my conditions. I didnt realize I had put one in but couldnt seem to remove it where ever it was so I created a new sheet. Here is another one. I have the next level PM for a different type machine auto populating but I need the next level after that to populate six months after the first. For example machine 6 is due in Feb for an "A" then Aug. should Have and "S" and vise versa. Please see the attached. FMC Schedule 1.1.xlsx

  16. #16
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Yearly Schedule Populate With and X

    I think that the solution to your problem lies in VBA in order to get the results into one set of months. However, I did come up with this solution that may work.
    In Schedule!B7 enter this formula and Fill across to Schedule!M7 and then fill down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In Schedule!N7 enter this formula and fill across to Schedule!Y7 and then fill down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  17. #17
    Forum Contributor
    Join Date
    10-06-2015
    Location
    USA
    MS-Off Ver
    MS office 2010
    Posts
    123

    Re: Yearly Schedule Populate With and X

    That works as well. Is there a way to make it to where it auto populates in the same calendar instead of having it in two different calendars?

  18. #18
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Yearly Schedule Populate With and X

    That is the problem that I couldn't work out. When a condition in a formula is met, the formula stops processing. The situation is set up so that the cells 6 months apart become interdependent and always want to be the opposite of the other. The first decision made by the formula is to enter the opposite of what is on the PM Electrical leakage worksheet.

    I have just thought of something and if it works out I will get back to you.

  19. #19
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Yearly Schedule Populate With and X

    This "appears" to work for the second half of the year but the rest of the year fails. (my brain is fried).
    Enter this in B7 and fill across and down. Maybe you can see what I'm missing:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  20. #20
    Forum Contributor
    Join Date
    10-06-2015
    Location
    USA
    MS-Off Ver
    MS office 2010
    Posts
    123

    Re: Yearly Schedule Populate With and X

    Okay, My brain is fried as well. I have added another column to the first tab. It projects the next PM type, would that extra column help it populate for both dates? The PM completed and the projected PM? See the attached.FMC Schedule 1.1.xlsx

  21. #21
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Yearly Schedule Populate With and X

    Enter this in B7 and fill across and down:
    =IF(AND(MONTH('PM Electrical leakage'!$L14)=B$5,'PM Electrical leakage'!$J14="A"),"S",IF(AND(MONTH('PM Electrical leakage'!$L14)=B$5,'PM Electrical leakage'!$J14="S"),"A", IF(LOOKUP(MONTH('PM Electrical leakage'!$L14)+6,{7,8,9,10,11,12,13,14,15,16,17,18;7,8,9,10,11,12,1,2,3,4,5,6})=B$5,'PM Electrical leakage'!$J14,"")))
    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 Populate a Yearly Calendar
    By ChiefCheese in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-02-2015, 07:59 AM
  2. Shift Schedule - 3 Shift Coverage - Auto Populate Roll-up Summary Schedule
    By chips1256 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-31-2012, 09:32 AM
  3. Replies: 0
    Last Post: 08-28-2012, 04:36 PM
  4. Populate Schedule From Shift Selection
    By mesodumb in forum Excel General
    Replies: 0
    Last Post: 08-01-2012, 02:59 PM
  5. Auto Populate Training Schedule in Calendar
    By Wessmaster in forum Excel General
    Replies: 2
    Last Post: 02-06-2012, 12:40 PM
  6. formula to pre-populate schedule
    By ch715a in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-08-2011, 06:22 AM
  7. Populate schedule using if statement?
    By jeremy3721 in forum Excel General
    Replies: 1
    Last Post: 09-28-2007, 05:19 PM

Tags for this Thread

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