+ Reply to Thread
Results 1 to 2 of 2

Array formula which will search the from date but not the end date

Hybrid View

  1. #1
    Registered User
    Join Date
    03-01-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    3

    Array formula which will search the from date but not the end date

    Evening All,

    Would anyone be able to help with my current problem. I am building a spreadsheet which manages PPE issues (all very exciting!). I am currently attempting to find the correct array formula to search records from table [Issues] between two dates - start=H2, End=M2 and display in a new table on a different sheet.

    The first formula works fine, displaying everything after the date in H2, the second will not.

    =IFERROR(INDEX(Issues[REF], SMALL(IF(Issues[Date]>=$H$2, ROW(Issues[REF])-MIN(ROW(Issues))+1), ROW(A1)), COLUMN(A1)),"")

    =IFERROR(INDEX(Issues[Quantity of Coveralls], SMALL(IF(AND(Issues[Date]>=$H$2,Issues[Date]<=$M$2), ROW(Issues[Quantity of Coveralls])-MIN(ROW(Issues[Quantity of Coveralls]))+1), ROW(A1)), COLUMN(A1)),"")


    If anyone could tell me where Im going wrong it would be greatly appreciated.
    Last edited by bagguley; 04-21-2015 at 05:49 PM. Reason: More detail

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Array formula which will search the from date but not the end date

    You're going wrong with the AND() function.

    Here is that expression in pseudo code:

    SMALL(IF(range>=$H$2,IF(range<=$M$2,ROW(range)-MIN(ROW(range))+1)),...
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. [SOLVED] Formula to compare date (including month and year) from a listed date to today's date
    By mhewitson15 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-11-2014, 05:31 PM
  2. Use VBA to Search for Todays Date from an array of Date and Paste Value
    By davis6774 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-16-2013, 07:11 PM
  3. [SOLVED] Array - Calculating the product of a column when date and year match a defined date
    By dow400 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-28-2013, 08:52 AM
  4. Replies: 2
    Last Post: 04-08-2012, 03:36 AM
  5. adding a date search to an array
    By stevie01 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 07-18-2009, 04:46 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