+ Reply to Thread
Results 1 to 8 of 8

Highlighting Current Week??

  1. #1
    Registered User
    Join Date
    11-11-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    33

    Highlighting Current Week??

    Say these are my rows A< B< C < D < E
    How do shade the current weeks row
    Thanks


    18-Mar... 24-Mar.... 3,565.00 .... 30.00 .... 1%
    25-Mar... 31-Mar.... 3,535.00 .... (380.00).... -11%
    1-Apr ... 7-Apr.... 4,771.52 .... 285.03 ..... 6%
    8-Apr ... 14-Apr.... 4,440.47.... (521.19).... -12%
    15-Apr.... 21-Apr.... 3,130.47 .... 648.62 ..... 21%

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Highlighting Current Week??

    Highlight the range you want to apply the CF to, Select Conditional Formating, select "use formula" and then enter this...

    =WEEKNUM($B1)=WEEKNUM(TODAY())
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    11-11-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: Highlighting Current Week??

    Hey Dibs

    It worked to a degree but highlights next week meaning starting tomorrow

    Weeks are Monday to Sunday....East Coast USA..time zone

    Thanks

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Highlighting Current Week??

    I tested it by adding another week - 22 Apr:29 Apr - and it worked fine.

    Try changing the CF formula to...
    =WEEKNUM($B1,2)=WEEKNUM(TODAY(),2)

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Highlighting Current Week??

    Try it like this...

    Let's assume the data is in the range A2:G6.

    =$A2=TODAY()-WEEKDAY(NOW(),2)+1
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Registered User
    Join Date
    11-11-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: Highlighting Current Week??

    They both worked
    Good job Dibs and Valco

    If I want to do the same for current month what would it be

    JAN 1-Jan-13 ... 31-Jan-13
    FEB 1-Feb-13...... 28-Feb-13
    MAR 1-Mar-13 ..... 31-Mar-13
    APR 1-Apr-13 ...... 30-Apr-13

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Highlighting Current Week??

    Maybe this...

    Month names in column A.

    =$A2=TEXT(NOW(),"mmm")

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Highlighting Current Week??

    or...
    =MONTH($B1)=MONTH(TODAY())

+ 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