+ Reply to Thread
Results 1 to 4 of 4

Search and Return Rows Based on Monthly Start-End Dates

  1. #1
    Forum Contributor
    Join Date
    02-25-2013
    Location
    Cleveland, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    116

    Search and Return Rows Based on Monthly Start-End Dates

    Hi All:
    A new addition to my recent posts for search and return.
    Since I need to keep a monthly inventory of expected shipments, can I have a formula to search the Produce Tab, and return the products that have a start and end date from the first to the last of each month?
    I tried to use recent array formulae but they don’t work for dates, unfortunately.
    Please note the date format, though the columns have been formatted to date, occasionally the formula returns a number, and I have to manually format the date columns again. So a formula that has the date format would be best.
    The workbook is attached.
    Merci,
    SP
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Search and Return Rows Based on Monthly Start-End Dates

    Try the array formula below in A2 of your June sheet. Confirm it with Ctrl + Shift + Enter, then fill down through however many rows you think you'll need, then fill right through your columns.

    =IFERROR(INDEX(Produce!$A$2:$F$100,SMALL(IF(MONTH(Produce!$D$2:$D$100)=6,ROW(Produce!$D$2:$D$100)-1),ROW(1:1)),COLUMN(A:A)),"")

    It's set up for 100 rows on your produce sheet; if you need more, change the "100"s in the formula to something bigger. Be sure to make sure the ranges are all the same size, though. For July, change the "=6" in the middle of the formula to "=7", for August "=8", etc. You can format the date column on your monthly sheets to the format of your choosing. Let me know if you have any difficulties.

  3. #3
    Forum Contributor
    Join Date
    02-25-2013
    Location
    Cleveland, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    116

    Re: Search and Return Rows Based on Monthly Start-End Dates

    Hi Cantosh,
    This is fantastic. I increased the number of rows as needed and it works so well. There is so much I don't even know I don't know!!!
    I will close the thread.
    SP

  4. #4
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Search and Return Rows Based on Monthly Start-End Dates

    Glad I could help! Take heart, knowing what you don't know is a sound step toward knowing something new.

+ 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: 2
    Last Post: 03-26-2016, 08:29 PM
  2. Monthly values linked with different start dates
    By Billium in forum Excel General
    Replies: 1
    Last Post: 10-29-2014, 07:04 PM
  3. [SOLVED] Return number of hours per month based on start and end dates
    By sparky1231 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-29-2014, 12:33 PM
  4. Find months between start and end dates and multiple the monthly revenue
    By Vinnie Chan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2013, 05:22 PM
  5. Replies: 5
    Last Post: 06-30-2011, 03:26 PM
  6. Replies: 19
    Last Post: 09-16-2009, 07:22 PM
  7. return rows based on MIN & MAX dates
    By robotlust in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-30-2008, 09:31 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