+ Reply to Thread
Results 1 to 3 of 3

Formatting by week

  1. #1
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2007--2010
    Posts
    663

    Formatting by week

    Hi, I need help coloring for the week.
    In the attached file I would like to be able to color line 10 as line 16,
    by week and, changing the month, they adapt to the week
    Thank you
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    Excel 2019 (Win 10 - Work) & 365 Subscription Insider (Win 10 - Home)
    Posts
    35,393

    Re: Formatting by week

    This is a bit tricky, as I am not entirely clear how you want it to look, but you can use this in C17 drag copied across to calculate the week number:

    =WEEKNUM($C$2+COLUMNS($C17:C17)-1,2)

    You will need rules for each of the colours:

    =C17=$C17

    =C17=$C17+1

    =C17=$C17+2

    =C17=$C17+3

    =C17=$C17+4

    =C17=$C17+5
    Attached Files Attached Files
    Last edited by AliGW; 02-15-2020 at 05:53 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  3. #3
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2007--2010
    Posts
    663

    Re: Formatting by week

    fast and perfect as always
    Thank you
    Solved

+ 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