+ Reply to Thread
Results 1 to 5 of 5

Return dates from one data table to records in a different table with start and end date

  1. #1
    Registered User
    Join Date
    09-20-2012
    Location
    Southern Maine, USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Return dates from one data table to records in a different table with start and end date

    Hello! I am trying to get the values from column "T" into column "O" when the values in "T" are between the values in "G" and "H". I have included the data. Both sets of data will eventually be named tables.




    Example.xlsx
    Last edited by Gretsch308; 10-05-2012 at 09:26 AM. Reason: Trying to make title more understandable.

  2. #2
    Registered User
    Join Date
    09-20-2012
    Location
    Southern Maine, USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Return dates from one data table to records in a different table with start and end da

    I think I solved this. There may be other ways. This is how I did it. I would still be interested in alternative solutions. Thanks for looking!



    Solution.xlsx
    Last edited by Gretsch308; 10-05-2012 at 03:12 PM.

  3. #3
    Forum Contributor
    Join Date
    10-02-2012
    Location
    Bumi Nusantara
    MS-Off Ver
    Excel 2010; Excel 2016
    Posts
    136

    Re: Return dates from one data table to records in a different table with start and end da

    the formula should be like this

    =IF(MONTH(A2)+1=MONTH(B2),DATE(YEAR(A2),MONTH(A2)+1,DAY(1)-1),"")

    copy down

  4. #4
    Registered User
    Join Date
    09-20-2012
    Location
    Southern Maine, USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Return dates from one data table to records in a different table with start and end da

    dwint FTW!!!! That worked perfectly! Much cleaner than my solution as well. Thanks!!!

  5. #5
    Registered User
    Join Date
    09-20-2012
    Location
    Southern Maine, USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Return dates from one data table to records in a different table with start and end da

    I think the formula has a small flaw. If the first day or last day of the month is in either the start date or the end date, the formula will return a blank cell.

+ 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