Closed Thread
Results 1 to 15 of 15

Identify if date falls within a date range

  1. #1
    Registered User
    Join Date
    07-18-2012
    Location
    Coleshill, England
    MS-Off Ver
    Excel 2010
    Posts
    23

    Identify if date falls within a date range

    This is a pretty basic question but I'm struggling. Have tried searching but can't find the answer.

    I have 10k. properties with a date against each e.g. when the kitchen was installed in. The column just contains the date.

    For a 30 year business plan I need to identify which year the kitchens will need replacement based on a 20 year life cycle. I have columns 2017/18, 2018/19 etc. for the 30 years. If the kitchen was installed in say 1997 it will require replacement in 2017/18.

    Starting with 2017/18 I'm trying to identify all properties which had the kitchen replaced between 01/04/2017 and 31/03/2018 and will then change the formula for each subsequent year/column.

    Thanks in advance. Chris

  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,714

    Re: Identify if date falls within a date range

    It would help if you attached a sample Excel workbook, so that we can see exactly how your data is laid out (note, a sample workbook only needs about 10 or 20 records which are representative of your data).

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

    Pete

  3. #3
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Identify if date falls within a date range

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

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

    Re: Identify if date falls within a date range

    Hey Mike,

    congratulations on 3,000 posts.

    Pete

  5. #5
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Identify if date falls within a date range

    Quote Originally Posted by Pete_UK View Post
    Hey Mike,

    congratulations on 3,000 posts.

    Pete
    Ha thanks. I bet half of them are "please post a sample workbook."

  6. #6
    Registered User
    Join Date
    12-21-2011
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Identify if date falls within a date range

    yes, as mike, please share a worksheet.
    what i understand it would be done through IF() and AND() combo-formula

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,997

    Re: Identify if date falls within a date range

    You haven't given us much to go on, have you. Since your future dates look like financial years, rather than calendar years, I have assumed that you want years running from 1st April to 31 March.

    Try the formula in the sheet. I can't paste it stright in today for some reason...

    assuming dates are in A2 and your future year columns start from B2. If this isn't what you want - try explaining what you DO want.


    And... if it's not what you want, attach a sample Excel workbook? Please don't attach a picture of one.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,997

    Re: Identify if date falls within a date range

    Apols. You do have the date range requirement clearly identified. I can't edit my slightly carping comment out, as the Forum has developed a new feature - we can't edit our posts any more. FFS.

    Hopefully the formula (which the forum wouldn't let me post, either... FFS) will work OK, though.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,629

    Re: Identify if date falls within a date range

    If the formula included < or > , just add a space either side of them.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,997

    Re: Identify if date falls within a date range

    Even that doesn't always work...

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,629

    Re: Identify if date falls within a date range

    It does for me, I have to say.

  12. #12
    Registered User
    Join Date
    07-18-2012
    Location
    Coleshill, England
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Identify if date falls within a date range

    Apologies for the delay in returning to this thread.

    Glen, thank you for taking the time to respond even though you hadn't got all the information you required. Unfortunately I couldn't open your attachment - it's saying it's an attachment.php file and asking me to stipulate/find a program to open it.

    I've now managed to do what I wanted using =AND($S5>=U$1,$S5<=U$2)*$T5 and putting each year range e.g. 01/04/2016 31/03/2017 etc. above each column heading.

    I was hoping for a formula that would return a result straight from the date data but the above works which is the important thing, so job done.

    Chris

  13. #13
    Registered User
    Join Date
    02-18-2022
    Location
    NYC, USA
    MS-Off Ver
    Version 2201
    Posts
    1

    Re: Identify if date falls within a date range

    This helped me so much. I've been working on this same issue for 3 days. Can't thank you enough, you the man!

  14. #14
    Registered User
    Join Date
    02-23-2022
    Location
    london
    MS-Off Ver
    2021
    Posts
    17

    Re: Identify if date falls within a date range

    Hi everyone , any change you can help me with almost same issue.
    looking for a formula to auto- fill cells . Looking for a formula that will auto-fill the cell in multiple columns (same row ) if they are within the date range .
    So looking if date range from C6 and D6 are within the dates from J3 to CI3 to divide E6 in equal numbers in all the cells from same row and columns that are included in date range .
    sorry if a bit confusing but english isn't my 1st language , i did fill them in manualy (j6-N6) .
    Attached Files Attached Files

  15. #15
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,997

    Re: Identify if date falls within a date range

    Hi.

    It's a forum rule that you start your own thread, rather than "piggy-backing" on someone else's thread. This helps prevent massive confusion arising - which will happen if it is not clear which question is being answered. So please start your own thread and explain your own problem (make sure that, right from the start, you use a meaningful title (NOT things like "help needed" or "urgent problem"... think of the Google search terms that you would use to find the solution).

    A picture is worth 1,000 words. An Excel sheet is worth 1,000 pictures. So, prepare a SMALL sample sheet (10-20 rows, not thousands!!!). Make sure there is enough data to demonstrate your need. Make sure your desired results are shown, mock them up manually if necessary. Remember to remove ALL confidential information first!!!


    The yellow banner about sample worksheets, at the top of the screen tells you how to post a sheet here on the Forum.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 7
    Last Post: 07-14-2017, 12:04 PM
  2. [SOLVED] Formula to assign specific numbers if a date falls within a certain date range
    By headley4ever in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-24-2014, 04:16 PM
  3. Search date range +/- 7 days and return date that falls within range
    By tlafferty in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-13-2013, 03:26 PM
  4. [SOLVED] If statement to check if date falls between date range
    By mcranda in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-21-2013, 07:31 PM
  5. Replies: 15
    Last Post: 04-08-2013, 12:40 PM
  6. Mark cell if location matches and date falls between date range
    By DoodlesMama in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-24-2012, 07:54 PM
  7. How to shade a cell when a date falls within a certain date range
    By coedog123 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-19-2008, 11:37 AM

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