+ Reply to Thread
Results 1 to 10 of 10

How to search data between date range

  1. #1
    Forum Contributor
    Join Date
    04-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    113

    How to search data between date range

    Dear all,

    I have data in which Date wise,Customer wise,Product wise sale is mentioned,As I have five years data I want excel should show the data between the date range I selected,Here If I select only date so excel should show all the sale between that range.

    And if I select Date & customer so excel should show sale for that particular customer,And If I select Date,Customer name,and Item code, So it should show that particular item sale for the particular customer between that range.

    Kindly help me in this regards,

    Thanks

    Dev.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: How to search data between date range

    Try

    in C8

    =IFERROR(INDEX(Sale12TO17!$F$2:$F$2000,SMALL(IF((Sale12TO17!$F$2:$F$2000=$C$3)*(Sale12TO17!$G$2:$G$2000>=$B$3)*(Sale12TO17!$G$2:$G$2000<=$B$5)*(IF(Index!$D$3<>"",Sale12TO17!$I$2:$I$2000=$D$3,1)),ROW(Sale12TO17!$F$2:$F$2000)-ROW($F$2)+1,""),ROWS($F$2:$F2))),"")

    Enter with Ctrl+Shift+Enter

    copy down

    Change highlighted range for other columns
    Last edited by JohnTopley; 06-19-2017 at 10:56 AM.

  3. #3
    Forum Contributor
    Join Date
    04-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    113

    Re: How to search data between date range

    Dear JohnTopley,

    Thank you so much, Formula given by you is working great. It will help me a lot.

    Thanks
    Dev.

  4. #4
    Forum Contributor
    Join Date
    04-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    113

    Re: How to search data between date range

    Dear JohnTopley ,

    Formula given by you is working great,I want to add another 1 conditions in that,If Customer & Item code is not selected(Field are blank) it should show all customers & item sales for the date range given.

    Attached sample file for reference....

    Kindly help in this regards,

    Thanks in advance

    Dev.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: How to search data between date range

    Try

    =IFERROR(INDEX(Sale12TO17!$G$2:$G$2000,SMALL(IF(IF($D$3<>"",(Sale12TO17!$F$2:$F$2000=$D$3),1)*(Sale12TO17!$G$2:$G$2000>=$C$3)*(Sale12TO17!$G$2:$G$2000<=$C$5)*(IF($E$3<>"",Sale12TO17!$I$2:$I$2000=$E$3,1)),ROW(Sale12TO17!$F$2:$F$2000)-ROW($G$2)+1,""),ROWS($G$2:$G3))),"")

    Change all formulae as per highlighted area
    Last edited by JohnTopley; 06-22-2017 at 02:44 AM.

  6. #6
    Forum Contributor
    Join Date
    04-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    113

    Re: How to search data between date range

    Dear JohnTopley,

    Excellent,Brilliant, Have no words to describe,You are simply genius.
    Now It work as I want,

    Thanks and regards,

    Dev

  7. #7
    Forum Contributor
    Join Date
    04-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    113

    Re: How to search data between date range

    Dear JohnTopley,

    Sir facing one problem here, I have selected one customer(ABDULHUSAIN ABDULALLY HAKIM) for this customer we sold 150kg 25-01001(item) between 1st May 2017 to 31st May 2017, it is giving total sold qty correctly but in the invoice wise details it doesn't show one invoice.

    the same problem is coming for each customer.(one invoice is missing in details)

    attached sample sheet for reference.

    Dev.
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: How to search data between date range

    My typo error ..

    in B7

    =IFERROR(INDEX(Sale12TO17!$G$2:$G$2000,SMALL(IF(IF($D$3<>"",(Sale12TO17!$F$2:$F$2000=$D$3),1)*(Sale12TO17!$G$2:$G$2000>=$C$3)*(Sale12TO17!$G$2:$G$2000<=$C$5)*(IF($E$3<>"",Sale12TO17!$I$2:$I$2000=$E$3,1)),ROW(Sale12TO17!$F$2:$F$2000)-ROW($G$2)+1,""),ROWS($G$2:$G2))),"")

    Change in All formulae

  9. #9
    Forum Contributor
    Join Date
    04-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    113

    Re: How to search data between date range

    Dear JohnTopley,

    Thanks you much sir,

    Regards,

    Dev.

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: How to search data between date range

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Search date range for quantity sum
    By tavwtby in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 10-21-2016, 05:14 PM
  2. Search large date range with narrow filetered range
    By druth in forum Excel General
    Replies: 14
    Last Post: 08-02-2014, 09:01 AM
  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. Search for records in a date range
    By excelgroupie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-11-2012, 03:38 PM
  5. Search range for a date
    By denfan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-09-2012, 10:20 AM
  6. Search for keywords in a date range
    By excelgroupie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-22-2012, 02:40 PM
  7. Formula to search for today's date and return range of data
    By paramore in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-15-2012, 02:17 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