+ Reply to Thread
Results 1 to 4 of 4

Need Formula IF a MONTH & DAY falls in a Specific Week (or between 2 dates)

  1. #1
    Registered User
    Join Date
    04-16-2013
    Location
    Colorado
    MS-Off Ver
    365
    Posts
    80

    Question Need Formula IF a MONTH & DAY falls in a Specific Week (or between 2 dates)

    This may be a simple formula, but I'm struggling with it. I need a formula that will identify if a Birthday (Month & Day) falls within a specific week (technically between 2 dates in the same week, regardless of year). So, if a month and day of someone's birthday (month & day) falls within the week I'm working with, I'd like to display "Birthday Week".

    So if A1 is the birthday, A2 is the week ending date and A3 is the week starting date, what would the formula be to display "BIRTHDAY WEEK" if TRUE and BLANK ("") if FALSE?

    A1 01/02/1980 (Birthday)

    A2 01/03/2020 (Week Ending Date)

    A3 12/29/2019 (Week Starting Date)

    Any help would be appreciated! Thank you!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Need Formula IF a MONTH & DAY falls in a Specific Week (or between 2 dates)

    Try this (e.g. in A4):

    =IF(AND(DATE(YEAR(A3),MONTH(A1),DAY(A1))<=A2,DATE(YEAR(A3),MONTH(A1),DAY(A1))>=A3),"BIRTHDAY WEEK","")

    Hope this helps.

    Pete

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,913

    Re: Need Formula IF a MONTH & DAY falls in a Specific Week (or between 2 dates)

    Or try:

    =IF(SUMPRODUCT(--(TEXT(A1,"ddmm")=TEXT(A2-{0,1,2,3,4,5,6},"ddmm"))),"BIRTHDAY WEEK","")

  4. #4
    Registered User
    Join Date
    04-16-2013
    Location
    Colorado
    MS-Off Ver
    365
    Posts
    80

    Re: Need Formula IF a MONTH & DAY falls in a Specific Week (or between 2 dates)

    Thank you Pete & Phuocam!!

    Phuocam, your formula worked perfectly - THANK YOU!!

    Pete, unfortunately, I couldn't get yours to work (not sure why).

+ 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. Replies: 1
    Last Post: 07-02-2017, 08:02 PM
  2. [SOLVED] Find where a specific week commencing date falls within a rolling10 week pattern
    By C J W in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-14-2017, 04:39 AM
  3. [SOLVED] Labeling dates based on the work week it falls under
    By imsteve123 in forum Excel General
    Replies: 4
    Last Post: 04-27-2015, 07:16 AM
  4. Replies: 1
    Last Post: 07-21-2014, 06:13 PM
  5. [SOLVED] Check if a Certain day of the week falls between two dates
    By cwang213 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-10-2013, 09:22 AM
  6. Replies: 6
    Last Post: 02-02-2009, 01:57 PM
  7. use dates to get week it falls on
    By Khaos176 in forum Excel General
    Replies: 6
    Last Post: 12-12-2008, 03:36 PM

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