+ Reply to Thread
Results 1 to 21 of 21

Maintenance Schedule Checklist

  1. #1
    Registered User
    Join Date
    02-23-2009
    Location
    south carolina, usa
    MS-Off Ver
    Excel 2003
    Posts
    9

    Maintenance Schedule Checklist

    I am trying setup a maintenance schedule checklist for a large list of items. Each item has a cycle in weeks for the checklist. I set up a nested if statement to check if the item is overdue or done based on the cycle and the current date. The if statement checks when the last time the item was done or overdue and populates an "X" for the next due date. It works fine as long as the cycle is 4 or less. After that there are too many if statements and I get an error. I'd rather not have to use a macro to get this to work. Any ideas?
    Attached Files Attached Files
    Last edited by matthemj2; 03-04-2009 at 02:33 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Maintenance Schedule Checklist

    Perhaps the below would work for you ?

    Please Login or Register  to view this content.
    The can be applied across your matrix G2:Q51
    I replicated your results with the above - and calculated > 4 week cycle.

    Note: uses OFFSET which is Volatile... you could use INDEX but it would be a little lengthier - let us know if this is what you want to do.
    Last edited by DonkeyOte; 03-02-2009 at 03:26 PM. Reason: quoted incorrect matrix range in narrative

  3. #3
    Registered User
    Join Date
    02-23-2009
    Location
    south carolina, usa
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Maintenance Schedule Checklist

    Thanks, this is what I was looking for. There is a slight problem tho. If i type done into G5, which has a cycle of 4 weeks, the next cell says overdue. since there is a cycle of 4 weeks the next 3 cells should be blank and the 4th with an X. Since the today is > the date atop the column its returning a overdue. it needs to not do this and should be blank based upon the previous cell being = to done. I imagine this can be solved by moving the today if statement somewhere else. Any idea?

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Maintenance Schedule Checklist

    I pondered on this for a while and concluded that a revised approach was in order... see the attached (sheet DOTE). I have inserted a new Row 1 in which there is a Column index identifier... this is so as to be able to avoid using Volatile function COLUMN in the LOOKUP function used in the subsequent results table itself.

    As such the *new* formula in G3 (old G2) becomes:

    =IF(AND(F3<>"OVERDUE",F$1>0,COLUMNS($G2:G2)-LOOKUP(10^10,CHOOSE({1,2},0,LOOKUP(2,1/ISNUMBER(MATCH($F3:F3,{"DONE","X"},0)),$F$1:F$1)))<$B3),"",IF(TODAY()-5>G$2,"OVERDUE","X"))

    This is applied across the entire table.

    I *think* this works...
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    10-11-2007
    Location
    Sweden
    MS-Off Ver
    365
    Posts
    251

    Re: Maintenance Schedule Checklist

    I didnīt really understand your problem but i tried to create a useful workbook anyway.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    02-23-2009
    Location
    south carolina, usa
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Maintenance Schedule Checklist

    DonkeyOte, we are one step closer. I was able to follow the logic of your last recommendation. This past one I got a little lost when you started using the arrays. This method does work. When a done is inputted, it puts a blank in for the appropriate cells and then populates the X in the right place. But it also puts an X in every cell there after(unlike the previous spreadsheets). I dont want someone to get confused when looking at the upcoming schedule and see that they have some thing due the next week with a cycle of 4 weeks and then think that they have to do it again the following week. Of course those extra X's go away and are replaced with blanks after the user puts the Done in. It may not be possible to achieve what I want the spreadsheet to do.

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Maintenance Schedule Checklist

    It should not be putting an X if every cell thereafter only wherever the next cycle is due... my sample file demonstrates that doesn't it ?

    Are you saying you should only ever have 1 X in a row at any one time -- that is to say the cycles should never repeat ?

  8. #8
    Registered User
    Join Date
    02-23-2009
    Location
    south carolina, usa
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Maintenance Schedule Checklist

    I would like it to show only one X in the row at any one time, specifically the next due date.

    Or I would like it to show only the X's of when it is due based on the cycle. For example, if I put done in cell H4, cycle of 2 weeks, then I4 is blank and J4 is X, as it should be. But K4 and all the cells in that row thereafter have an X. Based on what I want it to do K4 should be blank, L4 should have an X, M4 should be blank and so on. I've attached the file to show what i mean. In row 5 i've made the cells blank to show what it ideally would look like. I realize this is a difficult problem and your help is much appreciated.
    Attached Files Attached Files

  9. #9
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Maintenance Schedule Checklist

    Quote Originally Posted by matthemj2 View Post
    Or I would like it to show only the X's of when it is due based on the cycle. For example, if I put done in cell H4, cycle of 2 weeks, then I4 is blank and J4 is X, as it should be. But K4 and all the cells in that row thereafter have an X. Based on what I want it to do K4 should be blank, L4 should have an X, M4 should be blank and so on.
    I'm beyond confused ... in the file I provided if you put DONE in H4 you would get the following:

    I4: Blank
    J4: X
    K4: Blank
    L4: X
    M4: Blank
    N4: X
    O4: Blank
    P4: X
    Q4: Blank

    Using your own recent attachment and adding DONE to H4 I get the above results too.

    Please post a file where you have entered DONE into H4 and are getting these results you state as I can not replicate.

  10. #10
    Registered User
    Join Date
    02-23-2009
    Location
    south carolina, usa
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Maintenance Schedule Checklist

    That is strange. Maybe you could post a screenshot of yours as well.
    Attached Images Attached Images

  11. #11
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Maintenance Schedule Checklist

    In Post #4 I attached my entire file - I can't do much else I'm afraid.

  12. #12
    Registered User
    Join Date
    02-23-2009
    Location
    south carolina, usa
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Maintenance Schedule Checklist

    Do you think it could be something in my settings or maybe the fact that i'm running 2003?

  13. #13
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Maintenance Schedule Checklist

    2003, no

    Settings... unlikely.

    Please attach the file you used to generate your screenshot, I can deduce nothing from the screenshot other than it doesn't work.

  14. #14
    Registered User
    Join Date
    02-23-2009
    Location
    south carolina, usa
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Maintenance Schedule Checklist

    Your right. I did evaluate formula and it returns true for the final if statement so it should be putting a blank in, but it returns an X. Could the X be placed there by another cell?
    Attached Images Attached Images
    Attached Files Attached Files

  15. #15
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Maintenance Schedule Checklist

    I have to confess I am stumped...the attached shows what I see when I open your latest file (no changes made):

    Is there any VBA in your file -- there was none in the one you posted here, just curious.
    Attached Images Attached Images

  16. #16
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Maintenance Schedule Checklist

    I take it back ... something in there does not like running pre2007 ... I'm guessing the LOOKUP element... I will get back to you... profound apologies as I should have tested myself.

  17. #17
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Maintenance Schedule Checklist

    OK Dokey... the issue is as expected to do with how the ISNUMBER(MATCH with inline array constant executes in 2007 versus earlier versions... I've never come across that issue before so I've learnt something today.

    To resolve...

    The following formula in G3 (copied across matrix) should generate desired results:

    Please Login or Register  to view this content.

  18. #18
    Registered User
    Join Date
    02-23-2009
    Location
    south carolina, usa
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Maintenance Schedule Checklist

    Many thanks. It now works as I intended. My associates and I would have never gotten this in a 100 years.

  19. #19
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Maintenance Schedule Checklist

    No problem.

    I consider the issue arising from this to be VERY interesting ... I can not determine why it should work in 2007 but not in earlier versions given the functions used are entirely backwards compatible... in this context the issue *appears* to relate to how 2007 handles precedents versus earlier versions but I confess that I don't have the requisite knowledge to state this categorically and so I've taken the matter up with some others who may be able to confirm the true cause one way or another, unfortunately I can not provide a link to this discussion, however, I will post back here as and when I have useful feedback.

  20. #20
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Maintenance Schedule Checklist

    Seems very random, DonkeyOte...

    I'd be interested to see what your contacts say too.

    I looked at a few to compare results... didn't catch anything that should cause that in one cell and not another with same formula...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  21. #21
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Maintenance Schedule Checklist

    NBVC, I'm convinced that the issue centres around this part of the formulae and the handling of precedents etc...

    LOOKUP(2,1/ISNUMBER(MATCH($F3:P3,{"DONE","X"},0)),$F$1:P$1)

    In 2007 the Output of the overall formulae in the referenced cells ARE recognised whereas earlier versions seemingly do not recognise the results of the same cells - ie the above only ever returns an error pre 2007 ... hard to explain... what I would suggest if you're interested is to open the last file I posted in both a pre2007 and 2007 instance, if you analyse the above component across columns G:Q in a separate row you will see what I mean (hopefully).

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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