+ Reply to Thread
Results 1 to 4 of 4

Extract records between dates on multiple condition

  1. #1
    Forum Contributor
    Join Date
    12-03-2014
    Location
    India
    MS-Off Ver
    2016 .......
    Posts
    390

    Lightbulb Extract records between dates on multiple condition

    Hi,
    I am hereby attaching the file which contains sample data & 2 results
    Kindly help me to extract records
    1. require Docno
    2. The result date change then no. of records must be as per the Originate date
    3. Records must be extracted on the basis of Responded date

    viz. If I run 31/03/2020
    then record originate below the date must appears but if they have responded date i.e. below or equal to result date then it must be excluded.
    But if the responded date is above the result date then it must be added in list as well as those records which don't have responded date must be added in list
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Extract records between dates on multiple condition

    What results do you expect when the date changes and why? WHy for instance do docnos 345 & 378 feature at all for 31 March 2021?

    If you want to see records for a particular date/month...whatever, why not use a Pivot Table and a Slicer to filter it.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Extract records between dates on multiple condition

    Please try at H4
    =IF(ROWS(H$4:H4)>$H$2,"",INDEX(A$4:A$10,SMALL(IF(($C$4:$C$10=0)+($B$4:$B$10<=$J$2)*($C$4:$C$10>$J$2),ROW(A$4:A$10)),ROWS(H$4:H4))-ROW(A$3)))

    Confirm with Ctrl+Shift+Enter
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    12-03-2014
    Location
    India
    MS-Off Ver
    2016 .......
    Posts
    390

    Re: Extract records between dates on multiple condition

    Quote Originally Posted by Bo_Ry View Post
    Please try at H4
    =IF(ROWS(H$4:H4)>$H$2,"",INDEX(A$4:A$10,SMALL(IF(($C$4:$C$10=0)+($B$4:$B$10<=$J$2)*($C$4:$C$10>$J$2),ROW(A$4:A$10)),ROWS(H$4:H4))-ROW(A$3)))

    Confirm with Ctrl+Shift+Enter
    Thank you so much....

+ 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. Extract unique records with date criteria: between 2 dates
    By Phlebas1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-19-2019, 01:48 AM
  2. [SOLVED] Extract records between two dates with criteria - Gap analysis
    By bala04msw in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-28-2016, 05:45 AM
  3. Extract records from a data sheet with name and dates criteria
    By ovgarcia24 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-01-2016, 12:11 PM
  4. [SOLVED] Extract multiples records from adatabase which meet a specific condition
    By Danny77 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-22-2013, 09:05 AM
  5. SUMProduct help counting # of records between 2 dates with additional condition
    By krichmond0306 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-12-2012, 02:48 PM
  6. I wanT to extract Multiple-Records based on a condition.
    By all4excel in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-15-2007, 02:00 PM
  7. [SOLVED] What formula/fn would I use to count multiple condition records?
    By Joshcat99 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-26-2005, 09:05 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