+ Reply to Thread
Results 1 to 2 of 2

Index Array return values between dates

  1. #1
    Registered User
    Join Date
    03-29-2017
    Location
    London, UK
    MS-Off Ver
    2016
    Posts
    11

    Index Array return values between dates

    Hi

    I have a formula (see below) which returns data from an array perfectly, it is based on concatenating a 2 character code and a specific date (displayed as an integer)

    =INDEX(Sheet1!A:A,SMALL(IF(concat(Sheet1!$Q$2:$Q,Sheet1!$P$2:$P)=$A$4,ROW(Sheet1!$Q$2:$Q)),ROWS(D$3:D3)))

    Cell A4 contains the argument which is a concatenation of the 2 digit character code plus the date , therefore 'KB' + 11/09/2017 would equate to "KB42989" this in turn relates to concat(Sheet1!$Q$2:$Q,Sheet1!$P$2:$P)=$A$4 in the formula.

    I would like to make the argument based between dates i.e. 11/09/17 to 15/09/17 would be KB42989 to KB42993, i've tried changing my argument to first look for the unique character code, then equal to or greater than 42989 and less than 42993.

    There is probably a much easier way of achieving this but i can't work it out.

    Many thanks

    Pros

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Index Array return values between dates

    =INDEX(Sheet1!A:A,SMALL(IF((Sheet1!$Q$2:$Q="KB")*(MATCH(Sheet1!$P$2:$P,$A$3:$A$5)=2),ROW(Sheet1!$Q$2:$Q)),ROWS(D$3:D3)))
    a3=0, a4=11/09/17, a5=15/09/17,
    and much faster

+ 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. Index array to return me a list of values
    By xatomicx in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-04-2017, 05:31 PM
  2. Replies: 2
    Last Post: 03-15-2017, 08:22 AM
  3. [SOLVED] Help with an Index Match formula so that it return values in order (dates)
    By michelle 1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-23-2016, 11:40 AM
  4. Replies: 5
    Last Post: 12-02-2015, 05:23 AM
  5. [SOLVED] Use INDEX MATCH to return data between dates and get AVERAGE of values in two colums
    By Jay S. in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-01-2015, 08:59 PM
  6. Replies: 7
    Last Post: 10-10-2014, 05:40 PM
  7. Use Index/Match Function to Return Values from an Array
    By 00pumpkin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-11-2013, 02:22 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