+ Reply to Thread
Results 1 to 7 of 7

Help needed for 52 Week cycle & Conditional Formatting

  1. #1
    Registered User
    Join Date
    03-18-2016
    Location
    Bristol
    MS-Off Ver
    2010
    Posts
    3

    Help needed for 52 Week cycle & Conditional Formatting

    Hi all,

    Hopefully someone can help me. I'm working on a spreadsheet which shows a list of vehicles and when their services are due by week number with a color coded system controlled by conditional formatting. For example, If a vehicle is due service on week 12, on week 10 the cell will change to 'Yellow' to book the vehicle in for service, Week 11 will change to 'amber' as a pre warning then on Week 12 the cell will change to 'Red' which will be the week it goes in for service. Please check 'Example 1' for a visual representation of this

    I've currently set it all up and all works bar any services that are due on Week 1. As you can see in 'Example 2' if a service is due on Week 1 and the current week is 52 then the color system does not kick in as the conditional formatting does not understand that their is a 52 week cycle. So if the week is 52 and a service is due on weeks 1 & 2 then the amber and yellow status does not kick in.

    If anyone can shed any light on this or point me in the right direction it would be greatly appreciated. If you need further information please feel free to ask

    Cheers,

    Josh
    Attached Files Attached Files

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Help needed for 52 Week cycle & Conditional Formatting

    Hello joshmortazavi,

    Have you tried to extend your 52 Week Cycle to 54 or 56 Weeks? The year or week number is of academic importance only, and can be easily handled within your situation.

    Regards.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Registered User
    Join Date
    03-16-2016
    Location
    Syracysem =New York
    MS-Off Ver
    2007
    Posts
    8

    Re: Help needed for 52 Week cycle & Conditional Formatting

    I don't have time to dig into this now, but I am thinking you modify how you do it just a little. Possibly having a cell that calculates what number to use to make the service due yellow, red, etc.

    For example, an if statement .....=if(current week <50, current week +2, if(current week = 51, 1, 2)) (change current week to the cell calculating your current week. Then point your conditional formatting to that cell so when the week service is due equals the new cell it turns yellow. You would have to do the same for the other colors.

    Let me know if you want me to look at it over the weekend for you.

    Marty

  4. #4
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,323

    Re: Help needed for 52 Week cycle & Conditional Formatting

    Try to calculate with dates and not with weeks.
    Take a look at this example.
    Fill in the service date in column F and see what happen
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  5. #5
    Registered User
    Join Date
    03-18-2016
    Location
    Bristol
    MS-Off Ver
    2010
    Posts
    3

    Re: Help needed for 52 Week cycle & Conditional Formatting

    Thanks for all your replies

    Been trying to understand this but can't get my head around it. Any chance you could provide an example I could play around with?

    Many thanks,

    Josh

  6. #6
    Registered User
    Join Date
    03-18-2016
    Location
    Bristol
    MS-Off Ver
    2010
    Posts
    3

    Re: Help needed for 52 Week cycle & Conditional Formatting

    Quote Originally Posted by Mschaub View Post
    I don't have time to dig into this now, but I am thinking you modify how you do it just a little. Possibly having a cell that calculates what number to use to make the service due yellow, red, etc.

    For example, an if statement .....=if(current week <50, current week +2, if(current week = 51, 1, 2)) (change current week to the cell calculating your current week. Then point your conditional formatting to that cell so when the week service is due equals the new cell it turns yellow. You would have to do the same for the other colors.

    Let me know if you want me to look at it over the weekend for you.

    Marty
    Many thanks for all your replies

    Would you be able to provide an example of this if you have time? Struggling to get my head around it but if you have an example in excel I can have a play around with it

    Quote Originally Posted by popipipo View Post
    Try to calculate with dates and not with weeks.
    Take a look at this example.
    Fill in the service date in column F and see what happen
    This is brilliant, however the servicing seems to be out by a week on each. for example should be 13 weeks but the next service reads 14 weeks after the first. Any ideas? Tried playing around with the formula however I'm definitely no expert at writing formula's

    Any help is much appreciated

    Thanks again
    Last edited by joshmortazavi; 03-22-2016 at 06:42 AM.

  7. #7
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,323

    Re: Help needed for 52 Week cycle & Conditional Formatting

    Please Login or Register  to view this content.
    Change the first formula into de second one.

+ 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. [SOLVED] Highlight week number using Conditional formatting - shows incorrect week
    By spliffter in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 02-26-2016, 09:52 AM
  2. [SOLVED] Conditional Formatting to show week over week improvement/decline
    By erikw48 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 06-15-2015, 10:22 AM
  3. [SOLVED] Conditional Formatting for Day of Week
    By mdt175 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-13-2014, 08:21 PM
  4. [SOLVED] Serial Number generator by Day, two week cycle, pattern driven?
    By Speshul in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-14-2014, 12:52 PM
  5. [SOLVED] Conditional Formatting Depending on Day of the Week
    By Bisquick in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-13-2013, 04:25 AM
  6. Conditional formatting needed for shape colour - is programming needed?
    By Farmboyuk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-14-2012, 07:27 AM
  7. Use VBA to calculate week cycle based on date
    By batteredveg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-09-2012, 11:06 AM

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