+ Reply to Thread
Results 1 to 10 of 10

I need to label dates according to the current date.

  1. #1
    Registered User
    Join Date
    05-29-2015
    Location
    Birmingham UK
    MS-Off Ver
    2010
    Posts
    8

    I need to label dates according to the current date.

    Hello.

    I have been racking my brains for a while now trying to find a solution. Basically I have a set of data with 20 days worth of information displayed in columns. The data is refreshed everyday so will shift by one column each day. I need a way of labelling each column according to which day it is today by inserting an extra row on top.

    I.e - If the first column of data is Tuesday 08/01/2016, I want it to be labelled 'Current Week', until Saturday, when I want to be labelled 'Current Week Plus 1' instead. And then next Saturday be labelled 'Current Week +2" and so on.

    Any ideas of how to do this?

    Thanks in advance

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,054

    Re: I need to label dates according to the current date.

    Here, try this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You might want to adopt WEEKNUM to match your first day of week as:
    WEEKNUM(serial_number,[return_type])

    Where return_type is:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    05-29-2015
    Location
    Birmingham UK
    MS-Off Ver
    2010
    Posts
    8

    Re: I need to label dates according to the current date.

    Many thanks for your quick response!! Makes total sense and is kinda obvious now I've used it! Thanks again

  4. #4
    Registered User
    Join Date
    05-29-2015
    Location
    Birmingham UK
    MS-Off Ver
    2010
    Posts
    8

    Re: I need to label dates according to the current date.

    And how do I change it so that Saturday is first day? Do I enter that into the formula?

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,054

    Re: I need to label dates according to the current date.

    Yes.
    In all WEEKNUM formula change for example:
    WEEKNUM(A2)
    into
    WEEKNUM(A2, 16)

    Spred it over two weeks and then you will see does it match.
    If not change 16 based on above table into some other number till you get desired output.

  6. #6
    Registered User
    Join Date
    05-29-2015
    Location
    Birmingham UK
    MS-Off Ver
    2010
    Posts
    8

    Re: I need to label dates according to the current date.

    Whoop thanks again

  7. #7
    Registered User
    Join Date
    05-29-2015
    Location
    Birmingham UK
    MS-Off Ver
    2010
    Posts
    8

    Re: I need to label dates according to the current date.

    Hi

    I have another question, I have now labelled all of the columns, but now need to get the sum of each row where the columns equal' Current Week', then "Current Week plus 1", etc.

    Would you know how best to do this?

  8. #8
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,054

    Re: I need to label dates according to the current date.

    A SUMIF formula will do but attach example workbook for more details.

  9. #9
    Registered User
    Join Date
    05-29-2015
    Location
    Birmingham UK
    MS-Off Ver
    2010
    Posts
    8

    Re: I need to label dates according to the current date.

    example.xlsx

    Hi

    Please see attached - the yellow cells need a formula to get the correct values manually typed in.

    Thanks

  10. #10
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,054

    Re: I need to label dates according to the current date.

    Here.
    You just need to have same headers as criteria to match.
    I've also adopt previous issue with week numbers.

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

+ 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. sum costs to date & return current dates
    By rikkyshh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-22-2014, 09:22 AM
  2. UserForm label to show current date
    By Tomtril in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-13-2013, 06:57 AM
  3. [SOLVED] Filter dates according to current date
    By babbeleme1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-20-2013, 04:57 PM
  4. Replies: 0
    Last Post: 05-18-2013, 03:29 AM
  5. Label to display current Date, Time
    By robbert in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-13-2008, 04:18 PM
  6. [SOLVED] How do I get the most current date from a list of dates?
    By GenaM in forum Excel General
    Replies: 4
    Last Post: 07-18-2006, 10:30 AM
  7. Calculating dates based on the current date
    By DavidW in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-29-2006, 08:50 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