+ Reply to Thread
Results 1 to 15 of 15

Search large date range with narrow filetered range

  1. #1
    Registered User
    Join Date
    07-28-2014
    Location
    CO
    MS-Off Ver
    2013
    Posts
    15

    Search large date range with narrow filetered range

    I need to be able to query a large date range by a small beginning and end date range and return a count when the value is =<, => each search criteria. i.e. - Search one year of dates from a table by Beg: 7/23/2012 to End: 10/21/2012 and return a count.

    Thanks

  2. #2
    Registered User
    Join Date
    07-28-2014
    Location
    CO
    MS-Off Ver
    2013
    Posts
    15

    Re: Search large date range with narrow filetered range

    I forgot to mention that the beginning and end dates are dynamic and I will need to reference the cells, i.e. B102 "Beg" B102 "End".

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    47,533

    Re: Search large date range with narrow filetered range

    Sounds like you just need a COUNTIFS formula.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    07-28-2014
    Location
    CO
    MS-Off Ver
    2013
    Posts
    15

    Re: Search large date range with narrow filetered range

    I have tried to come up with a resolution but have not had any luck... I was hoping to get an example. Just a newbie.

    Thanks

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    47,533

    Re: Search large date range with narrow filetered range

    Maybe you could share with us what your data looks like and what you have tried.

    A sample workbook showing the range you want to "query", the cells with the data criteria, the cell where you want the output ... and, ideally, mock up the output you expect to see.

    Regards, TMS

  6. #6
    Registered User
    Join Date
    07-28-2014
    Location
    CO
    MS-Off Ver
    2013
    Posts
    15

    Re: Search large date range with narrow filetered range

    Here is what I have tired so far:

    =COUNTIFS('2Data'!B2:B501,">=B101&<=B102")

  7. #7
    Registered User
    Join Date
    07-28-2014
    Location
    CO
    MS-Off Ver
    2013
    Posts
    15

    Re: Search large date range with narrow filetered range

    Market Analysis.xlsx

    The values I need to return are in the "Calculations" sheet, I am querying the 2Data sheet.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    47,533

    Re: Search large date range with narrow filetered range

    Not looked at the sheet but ...
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Regards, TMS

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Search large date range with narrow filetered range

    Here is your workbook with countif formulae in the yellow coloured area.

    TMS and I have the same basic formula which I have copied across all the same columns as you have start and end dates for.
    Attached Files Attached Files
    Last edited by newdoverman; 08-01-2014 at 07:49 PM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  10. #10
    Registered User
    Join Date
    07-28-2014
    Location
    CO
    MS-Off Ver
    2013
    Posts
    15

    Re: Search large date range with narrow filetered range

    Thanks what I came up with when I dropped in your formula.

    Many thanks

  11. #11
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    47,533

    Re: Search large date range with narrow filetered range

    You're welcome.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  12. #12
    Registered User
    Join Date
    07-28-2014
    Location
    CO
    MS-Off Ver
    2013
    Posts
    15

    Re: Search large date range with narrow filetered range

    If I could get help on this last issue, I can finish my last three calculations, I need to search the sale price data based upon the same filtered date ranges found in Num Sales with MEDIAN value....

    I appreciate your help!!

    https://drive.google.com/file/d/0B-p...it?usp=sharing
    Last edited by druth; 08-01-2014 at 09:19 PM.

  13. #13
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Search large date range with narrow filetered range

    Take a look at the Orange range on the Calculations worksheet. If the column selected isn't correct, replace with the correct column. (the range has to be the same dimension as the other ranges)
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    07-28-2014
    Location
    CO
    MS-Off Ver
    2013
    Posts
    15

    Re: Search large date range with narrow filetered range

    Thank you sir. Sorry I was not clear, but my data set is dynamic. Is there any way to accomplish my objective with a formula or will this require a macro?

    Market Analysis.xlsx

    Better data for testing in this iteration....

  15. #15
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Search large date range with narrow filetered range

    I converted your data on Data2 to a table. This makes the listing dynamic and the example formulae in the yellow shading will adjust as the table grows. The values in your regular table use regular ranges while the yellow area shows formula with Table Nomenclature.
    Attached Files Attached Files

+ 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: 3
    Last Post: 08-13-2013, 09:44 AM
  2. 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
  3. Best way to display usage information across a large date range
    By Orionfi in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 04-19-2013, 03:10 PM
  4. Narrow selection in range as typing
    By lostreception in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-21-2010, 02:17 PM
  5. [SOLVED] How to search a range for a suburb in a large range
    By Bogan.. in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-22-2005, 09:05 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