+ Reply to Thread
Results 1 to 9 of 9

Lookup Date and find Week Number (Bespoke Calendar)

  1. #1
    Registered User
    Join Date
    12-14-2018
    Location
    Staffordshire, England
    MS-Off Ver
    365
    Posts
    60

    Lookup Date and find Week Number (Bespoke Calendar)

    Hi All,

    I am trying to locate a formula for locating the week number from a date from a bespoke calendar. On the attached as an example the date is in Column I and would return the appropriate calendar week from column B in column K and so looking up the date from the range in columns F & G. Is this possible or would I need to reformat to make it so?

    Many thanks,
    Gaz
    Attached Files Attached Files

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Lookup Date and find Week Number (Bespoke Calendar)

    Try into K2:

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

    accept with Ctrl+Shift+Enter
    I am not sure how You want to set thresholds, I've put >= start, < end, You can change it as You need to.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Registered User
    Join Date
    12-14-2018
    Location
    Staffordshire, England
    MS-Off Ver
    365
    Posts
    60

    Re: Lookup Date and find Week Number (Bespoke Calendar)

    Hi, it worked OK for the first date I tried (12/9/2018) But then everything else is just returning week 41?

    Thanks,
    Gaz

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Lookup Date and find Week Number (Bespoke Calendar)

    or can try =INDEX(B:B,MATCH(I2,F:F))
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Lookup Date and find Week Number (Bespoke Calendar)

    Quote Originally Posted by Gazsim View Post
    Hi, it worked OK for the first date I tried (12/9/2018) But then everything else is just returning week 41?

    Thanks,
    Gaz
    Capture.JPG

    Works fine imho. Did you keep proper date format (US, I guess in col F/G)

  6. #6
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Lookup Date and find Week Number (Bespoke Calendar)

    Quote Originally Posted by samba_ravi View Post
    or can try =INDEX(B:B,MATCH(I2,F:F))
    It will stop working if you resort columns (ex. A or B)

  7. #7
    Registered User
    Join Date
    12-14-2018
    Location
    Staffordshire, England
    MS-Off Ver
    365
    Posts
    60

    Re: Lookup Date and find Week Number (Bespoke Calendar)

    Hi, yes sorry was a format issue with the dates! However have now noticed it is not working when the date falls on the 'end date' from column G?
    Thanks
    Gaz

  8. #8
    Registered User
    Join Date
    12-14-2018
    Location
    Staffordshire, England
    MS-Off Ver
    365
    Posts
    60

    Re: Lookup Date and find Week Number (Bespoke Calendar)

    Just to note that now resolved - the date had a time attached which wasn't immediately visible,

    Thanks

  9. #9
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Lookup Date and find Week Number (Bespoke Calendar)

    You welcome.
    If you happy with solution, please use Thread tools and mark thread as SOLVED.

+ 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. [SOLVED] Lookup formla to allocate a calendar date to a week based on a table
    By shrijan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-08-2016, 02:42 AM
  2. Find date from year and week number
    By pnperl in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-17-2014, 04:04 AM
  3. Replies: 6
    Last Post: 05-08-2013, 01:46 PM
  4. [SOLVED] lookup a date according to week number from one worksheet and add it to another
    By sonor_nut in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-11-2013, 10:18 AM
  5. Formula to find week number from a date
    By yourskarthik1983 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-15-2010, 01:33 AM
  6. date --> calendar week number
    By jmwismer in forum Excel General
    Replies: 8
    Last Post: 10-03-2009, 10:39 AM
  7. vba to find the month and week number from given date
    By Anil2007 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 04-27-2009, 07:43 PM

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