+ Reply to Thread
Results 1 to 3 of 3

Find each date in the current month and return the corresponding data

  1. #1
    Registered User
    Join Date
    07-29-2015
    Location
    FLA
    MS-Off Ver
    2007
    Posts
    8

    Find each date in the current month and return the corresponding data

    I am trying to find each date in the current month from a column of dates and return the corresponding data for each date in that month.

    On Sheet1:

    Column B is the list of dates for the year.

    Column E is the data I would like returned.

    On Sheet2:

    Column B is the list of dates for the current month, excluding Sundays.

    Column D is where I would like to put a formula to get the data from Column E of Sheet1.

    Cell I5: Dynamic cell containing the formula: TODAY()

    Cell I3: Dynamic cell referencing Cell I5 and the helper column K4:K15


    I have used the following formula (as an array), which lists the data in Sheet1, Column E:

    IFERROR(INDEX(Sheet1!$E$2:$E$367,SMALL((IF(LEN(Sheet1!$E$2:$E$367),ROW(INDIRECT("1:"&ROWS(Sheet1!$E$2:$E$367))))),ROW(A1)),1),"")

    BUT, it doesn’t search out the data for each month.

    Since the three cells in Column I of Sheet2 will change each month, I need a formula that will get that data as the months change.


    Thank you in advance for helping me.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Find each date in the current month and return the corresponding data

    If you enter this in I3 of sheet2, then you can do away with the lookup table on the right.

    =EOMONTH(I5,-1)+1

    To answer the question you asked, enter this one in D2 and fill down.

    =IFERROR(VLOOKUP(B2,Sheet1!$B$2:$E$367,4,0),"")

    edit:-

    You will need this one in B2 as well..

    =B2+1+(WEEKDAY(B2)=7)

    Otherwise you will get problems if the first day of the month is a Sunday. (try March 2015 if you want to test the theory).
    Last edited by jason.b75; 10-23-2015 at 04:10 PM.

  3. #3
    Registered User
    Join Date
    07-29-2015
    Location
    FLA
    MS-Off Ver
    2007
    Posts
    8

    Re: Find each date in the current month and return the corresponding data

    Thank you jason. All three formulas worked wonderfully.

    Marking the thread as solved.

    Thanks again for your help.

    ~fla

+ 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: 4
    Last Post: 09-09-2013, 05:06 AM
  2. [SOLVED] Find first date of the month in range and return column number
    By jben86 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-06-2013, 08:30 PM
  3. Return True or False if date range falls within current month
    By kieran614 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-17-2013, 12:02 PM
  4. [SOLVED] Date Formula to Return Week Number in Current Month based on Reporting Period
    By jeversf in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-25-2013, 12:10 PM
  5. Replies: 5
    Last Post: 10-04-2012, 07:06 AM
  6. Replies: 1
    Last Post: 08-13-2012, 11:18 AM
  7. [SOLVED] VBA to identify the current month and previous month based on system date
    By ravikumar00008 in forum Excel General
    Replies: 10
    Last Post: 07-26-2012, 10:04 AM
  8. Return current date if cells in range have data
    By brianmiller in forum Excel General
    Replies: 0
    Last Post: 02-18-2005, 07:48 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