+ Reply to Thread
Results 1 to 11 of 11

conditional formatting of cell = multiple of ref date recurring ( Days or Weeks or Months)

  1. #1
    Registered User
    Join Date
    02-19-2017
    Location
    Hamilton, New Zealand
    MS-Off Ver
    2016
    Posts
    11

    Question conditional formatting of cell = multiple of ref date recurring ( Days or Weeks or Months)

    I'm trying to build a 2wk long Gantt that will display recurring tasks in any 2wk period from a list of tasks, first occurrence date, duration's and recurrence interval type.

    So far I have:

    A two week 15min interval date/time range in F1:BCO1 that increments based on a reference start date in B2. F1=B2+0.010417

    Task start dates in column B
    Task Duration in column C
    Task Calculated end date in Column D

    I have figured how to conditionally format the cells to the right of the task if they are in columns where the date in F1:BCO1 falls within the task duration.

    What I want to be able to do is add recurring tasks and have conditional formatting if a cells column date is equal to a multiple of a selected option for recurrence interval such as monthly, bimonthly etc....

    I found this (Separate to my timeline):

    =IF($A$14=8,EDATE(B14,24),IF($A$14=0,B14+1,IF($A$14=2,B14+28,IF($A$14=1,B14+7,IF($A$14=3,EDATE(B14,1),IF($A$14=7,EDATE(B14,12),IF($A$14=4,EDATE(B14,3),IF($A$14=5,B14+126,IF($A$14=6,EDATE(B14,6))))))))))

    When the formula is placed in C14 and dragged along row 14, It creates a list of dates at the recurrence interval set in A14. I need the reverse but I don't understand it well enough to reverse it.

    (Its recurrence type is set by entering 0 to 8 in A14 & it's start date is to be Entered ito B14)

    0 Days
    1 Weeks
    2 4wks
    3 Months
    4 Quarterly
    5 4 Monthly
    6 1/2 Yearly
    7 Annually
    8 Bi-Annually

    Any help reverse engineering this would be fantastic. I'd really like to understand whats actually going on too if I can.

    Thanks in advance, Belta.
    Last edited by Belta; 02-20-2017 at 04:52 AM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: conditional formatting of cell = multiple of ref date recurring ( Days or Weeks or Mon

    EDATE simply adds the number of MONTHS so for 8 (b-annual) it adds 24 while the other calculations simply add number of days so 28 for a 4-week (not calendar) month.

    Not sure what you mean by "reverse" this.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    02-19-2017
    Location
    Hamilton, New Zealand
    MS-Off Ver
    2016
    Posts
    11

    Re: conditional formatting of cell = multiple of ref date recurring ( Days or Weeks or Mon

    Thanks JohnTopley

    What does "Remember to desensitize the data." mean sorry.
    Shoot... I'm guessing you men remove all the private personal data from it such as tasks and contact details. Sorry it's late NZ.

    I'll complete a mockup after work tomorrow approx 20hrs from now.
    Last edited by Belta; 02-20-2017 at 05:11 AM.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: conditional formatting of cell = multiple of ref date recurring ( Days or Weeks or Mon

    Thank you.

  5. #5
    Registered User
    Join Date
    02-19-2017
    Location
    Hamilton, New Zealand
    MS-Off Ver
    2016
    Posts
    11

    Re: conditional formatting of cell = multiple of ref date recurring ( Days or Weeks or Mon

    Thank you JohnTopley

    I haven't been able to spend the time I wanted on a moc up. But in a nutshell what I'm after is:

    If a cells date= specified multiple (day of the week, number of days, months or years) selected in another cell, then highlight a third cell, else blank.

    I hope this is much clearer. I'm sorry I'm so new to excel I'm struggling even to explain what I'm trying to achieve.

    Thanks again

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: conditional formatting of cell = multiple of ref date recurring ( Days or Weeks or Mon

    Sorry but need a file: just 5 or 10 rows with expected output will suffice.

  7. #7
    Registered User
    Join Date
    02-19-2017
    Location
    Hamilton, New Zealand
    MS-Off Ver
    2016
    Posts
    11

    Red face Re: conditional formatting of cell = multiple of ref date recurring ( Days or Weeks or Mon

    Hi again JohTopley,

    You actually solved my question Thankyou,

    I've uploaded my moc up. Please let me know if you can see anything that's going to lead to an error. My aim is to nest all of the conditional formatting formula so whatever combination of days and frequency of recurrence is selected the dates in the timeline will be formatted to illustrate each recurring task accordingly.


    I haven't got it exactly how I want it but in the process of mocking it up, with what you've said in mind I've managed to workout all the workings I need on the "Trials" tab to get the conditional formatting to work (It's currently just set to "yes" / "No"). The "Shapes" tab is the one I'll end up with the finished project on. It'll have options to select each of the frequencies on the Frequencies Tab.

    I plan on creating data entry user forms for task/note entry.
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: conditional formatting of cell = multiple of ref date recurring ( Days or Weeks or Mon

    My only observation is on the "Shapes" tab: why have you merged cells rather than just make the (a single) cell width narrower? If you are to do any calculations based on that sheet it will be a nightmare!

    But glad you it working though not sure (how) I helped!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  9. #9
    Registered User
    Join Date
    02-19-2017
    Location
    Hamilton, New Zealand
    MS-Off Ver
    2016
    Posts
    11

    Re: conditional formatting of cell = multiple of ref date recurring ( Days or Weeks or Mon

    Hi JohnTopley,

    Each of the cells in the hidden row 1 in Shapes have 1/4hr time intervals so task durations can be shown to 1/4 hr accuracy.

    Once I understood that:
    "EDATE simply adds the number of MONTHS so for 8 (b-annual) it adds 24 while the other calculations simply add number of days so 28 for a 4-week (not calendar) month."

    I was able to work it backwards so if the frequency for recurrence reference is 8 and the date/time in row 1 minus the start date is able to be divided by the interval EDATE with zero remainder using MOD then format the cell in the same row as the task in that column. very happy chappy thank you. Are you happy for me to keep the thread open until I'm sure I've actually been able to apply the moced up Trails to the actual Shape Tab in case I need your help?

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: conditional formatting of cell = multiple of ref date recurring ( Days or Weeks or Mon

    Yes: i "discovered" the 1/4 hour intervals BUT I would still advise against using merged cells: they cause many problems if they are required in calculations.

    It would be better if you closed this thread (mark as SOLVED) and opened a new one if and when required: you can always refer back to this thread if appropriate.

  11. #11
    Registered User
    Join Date
    02-19-2017
    Location
    Hamilton, New Zealand
    MS-Off Ver
    2016
    Posts
    11

    Re: conditional formatting of cell = multiple of ref date recurring ( Days or Weeks or Mon

    Okay, thanks for your help JohnTopley

+ 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. RD calculation based on No.of weeks,days,months,years
    By santbiju in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-05-2016, 05:38 PM
  2. RD calculation based on No.of weeks,days,months,years
    By santbiju in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-05-2016, 07:40 AM
  3. [SOLVED] Add additional days/weeks/months based on user input
    By pauldaddyadams in forum Excel General
    Replies: 3
    Last Post: 12-09-2015, 01:29 PM
  4. Alot monthly volumes to particular days by weeks that span months
    By Vaslo in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-22-2013, 06:13 PM
  5. [SOLVED] Returning 'Number' of 'Days' or 'Weeks' or 'Months' with # and text
    By PERE in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-30-2013, 08:45 PM
  6. Replies: 0
    Last Post: 10-19-2010, 02:22 PM
  7. Replies: 1
    Last Post: 01-21-2005, 12:06 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