+ Reply to Thread
Results 1 to 5 of 5

Help with array using date range and matching a third constant

  1. #1
    Forum Contributor
    Join Date
    02-27-2004
    Location
    California, United States
    MS-Off Ver
    Excel 2016
    Posts
    315

    Help with array using date range and matching a third constant

    I have a sheet that I am able to fill in from my data if the data matches a date.

    I need to be able to fill in the sheet if the data falls between two dates and the data column Distr R starts with the two characters "12". Here is the array formula I am using:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    F1 is the starting date. I have attached a sample workbook to assist in understanding what I am trying to do.

    Ideas?

    Thank you in advance for your assistance!
    Attached Files Attached Files

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Help with array using date range and matching a third constant

    In B3 Cell - Array Formula - Requires CTRL+SHIFT+ENTER

    =IFERROR(INDEX(Data!A$2:A$79,SMALL(IF((Data!$B$2:$B$79>=$F$1)*(Data!$B$2:$B$79<=$H$1)*(LEFT(TRIM(Data!$C$2:$C$79),2)="12"),ROW(Data!$B$2:$B$79)-MIN(ROW(Data!$B$2:$B$79))+1),ROW(A1))),"")

    Drag it down and right...

    Array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER.
    Last edited by :) Sixthsense :); 12-12-2013 at 09:57 AM.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    02-27-2004
    Location
    California, United States
    MS-Off Ver
    Excel 2016
    Posts
    315

    Re: Help with array using date range and matching a third constant

    Thank you very much!!!

    I love you guys!!!! This site is so awesome!!!!!!!

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Help with array using date range and matching a third constant

    Glad it helps you and thanks for the feedback and rep

  5. #5
    Forum Contributor
    Join Date
    02-27-2004
    Location
    California, United States
    MS-Off Ver
    Excel 2016
    Posts
    315

    Re: Help with array using date range and matching a third constant

    Just so you know that I didn't use your formula verbatim. This is how it came out once I adapted it to my workbooks:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Thank you again for your help!!!! The solution works like a dream.

    Cliff

+ 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. Indexing and matching data from date range and matching
    By Rickomicko in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-19-2013, 11:46 AM
  2. Constant Array
    By ffffloyd in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-08-2010, 04:36 AM
  3. Constant Array?
    By Pherion in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-27-2009, 05:47 PM
  4. [SOLVED] Build an array constant with DATE function
    By CliffD in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-11-2006, 09:55 AM
  5. A constant array?
    By Thief_ in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-21-2005, 06:06 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