+ Reply to Thread
Results 1 to 4 of 4

Inserting date range in a cell?

  1. #1
    Registered User
    Join Date
    04-03-2012
    Location
    USA
    MS-Off Ver
    excel starter
    Posts
    1

    Inserting date range in a cell?

    Does anyone know how to insert a date range in a cell that is based on your computers clock. I want to use something like the =today() function, but I want it to be for the current week. Any ideas, or is this not possible?
    Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Inserting date range in a cell?

    Can you use =WEEKNUM(TODAY()) ?

    Or is that not what you are looking for?
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

  3. #3
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Inserting date range in a cell?

    Actually, perhaps you were looking for this:

    Start date (monday): =(TODAY())-WEEKDAY((TODAY()),1)+2

    End date (sunday): ="Start data"+6

  4. #4
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Inserting date range in a cell?

    if your date, for e.g., TODAY(), is in K21, following could be in L21:

    =TEXT((K21-WEEKDAY(K21)+1),"dd-mmm-yy")&" to "&TEXT((K21+7-WEEKDAY(K21)),"dd-mmm-yy")

    this would display '01-Apr-12 to 07-Apr-12' in L21.

    or perhaps a little more dynamic:

    =TEXT((TODAY()-WEEKDAY(TODAY())+1),"dd-mmm-yy")&" to "&TEXT((TODAY()+7-WEEKDAY(TODAY())),"dd-mmm-yy")

    is this what you are looking for?
    Last edited by icestationzbra; 04-03-2012 at 01:08 PM.

+ 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