+ Reply to Thread
Results 1 to 5 of 5

Returning an entry from a table based on the current date

  1. #1
    Forum Contributor
    Join Date
    08-14-2012
    Location
    Derby, England
    MS-Off Ver
    Excel 2010
    Posts
    257

    Returning an entry from a table based on the current date

    Hi, I hope someone can help me on this one as I was struggling for hours last night trying to use lookups, index and match scenarios but was getting nowhere,

    In the attachment is a table with every date in a year, and I want to be able to return the week number in col 1 based on the current date. So the formula looks up today's date using the now() function in the table (14th Aug) and returns me 33. I don't know if its the now() that's causing the problem because it is looking for the date and time etc or should that not matter?

    Thanks

    John
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Returning an entry from a table based on the current date

    While I'm sure it can be done with a lookup you're not overlooking:

    =WEEKNUM(I2)

    Are you?

  3. #3
    Forum Contributor CheshireCat's Avatar
    Join Date
    10-11-2011
    Location
    Victoria, Canada
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    258

    Re: Returning an entry from a table based on the current date

    Or, (in Excel 2010) for weeks beginning on a Saturday,

    Please Login or Register  to view this content.
    Docendo discimus.

  4. #4
    Forum Contributor
    Join Date
    08-14-2012
    Location
    Derby, England
    MS-Off Ver
    Excel 2010
    Posts
    257

    Re: Returning an entry from a table based on the current date

    Thanks for the help on this guys. I'm actually using the Australian financial calendar, so Week 1 is actually 30 June 2012. I had the weeks wrong in the example I posted. Do you know how I can get it to return the Week number for that calender?

  5. #5
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Returning an entry from a table based on the current date

    Is it as simple as:

    =WEEKNUM(NOW()-181)

+ 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