+ Reply to Thread
Results 1 to 9 of 9

MultiLookup with Multiple Criterions with Multiple values falling in Date Ranges.

  1. #1
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    MultiLookup with Multiple Criterions with Multiple values falling in Date Ranges.

    MultiLookup with Multiple Criterions with Multiple values falling in Date Ranges.

    Dear Forum,

    Please do not see the query as a repeat of my previous threads as its a completely new requirement..
    Its just that MUltilOOkup is a wide and neccessary requirement..

    P.S. I always try to name the Threads based on the concepts so thats it may help others to even refer them for their needs..

    About the requirement now,
    I have data of Banking Accounts which are closed in one of the years and they need to be extracted only if they appear in a
    Financial Year Range such as 1st-Apr-XXXX to 31st-Mar-XXXX+1

    Please see the attachement for more information..

    Regards
    E
    Attached Files Attached Files
    Last edited by e4excel; 01-07-2011 at 07:29 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: MultiLookup with Multiple Criterions with Multiple values falling in Date Ranges.

    Again, assuming I've understood the requirements and given the existing setup

    First - add the conditional count to restrict no. of subsequent Arrays

    Please Login or Register  to view this content.
    Last edited by DonkeyOte; 01-07-2011 at 05:26 AM. Reason: modified Array - inserting some IFs to exit Array cals earlier where permitted

  3. #3
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Re: MultiLookup with Multiple Criterions with Multiple values falling in Date Ranges.

    Dear DO, Good Morning..!

    It works well but it displays only two values for the Financial Period of
    1st Apr 2009 to 31st Mar 2010
    End Date of Financial Year----31-Mar-2010

    It should display 4 values for 2010 as the Closing Date are falling in the range of the above financial period..

    I dont know whether the Column of Status should be there or not I just have it thinking maybe it might be useful, however I didnt use it as explicitly mentioning it Closed should not mean forever as the Account was active till the closing date..

    So my humble request to you is to check whether without that column its possible or not...!

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: MultiLookup with Multiple Criterions with Multiple values falling in Date Ranges.

    Quote Originally Posted by e4excel View Post
    It works well but it displays only two values for the Financial Period of
    1st Apr 2009 to 31st Mar 2010
    End Date of Financial Year----31-Mar-2010

    It should display 4 values for 2010 as the Closing Date are falling in the range of the above financial period..
    Then why categorically state otherwise in your sample file ?

    If you want those closed mid year to be active in that years return change the Date tests accordingly, ie: >= rather than >

  5. #5
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Re: MultiLookup with Multiple Criterions with Multiple values falling in Date Ranges.

    Dear DO,

    I am sorry if there was any confusion in my explanation as its difficult to take a Starting reference point as the Finanial year has begun from 1st Apr 2006 to 31st Mar 2007
    and ending till 1st Apr 2016 to 31st Mar 2017 in the list in the Column A..

    Now as its difficlut to explain the presence of the closing date placemetn i a year I had shown the sample ans in the Cells from F23 till K29..

    I am not sure whether that Status of "Active" or "Closed" can be useful and therefore I have just added it as a helper column..

    The important thing is the Closing Date if any...I was also thinking before putting the query on the forum of having Today in the date column for non-closed accounts but decided against the same as they are still active and do not need any END-Reference..

    "Simply put any date after the 31st Mar of any year ( XXXX ) would appear in the next Financial Year of 1st Apr XXXX to 31st Mar XXXX+1"

    So, the dates
    24-Feb-10 ------1st Apr XXXX to 31st Mar XXXX+1 where X= year(24-Feb-10)
    31-Jan-10 ------1st Apr XXXX to 31st Mar XXXX+1

    I am just trying too hard to explain..

    Hope this helps..!

    Regards
    E

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: MultiLookup with Multiple Criterions with Multiple values falling in Date Ranges.

    The formula you have does what you asked for per the sample and the suggested revision (ie simply modifying operator test from > to >=) does what you later requested.
    Given the above there's nothing further I can add - I suggest you review my suggestions and implement accordingly.

    Incidentally - your examples above are wrong - both dates fall into FY10 - ie the +1 does not exist (it is 0 in both cases)

  7. #7
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Re: MultiLookup with Multiple Criterions with Multiple values falling in Date Ranges.

    Quote Originally Posted by e4excel View Post

    "Simply put any date after the 31st Mar of any year ( XXXX ) would appear in the next Financial Year of 1st Apr XXXX to 31st Mar XXXX+1"

    So, the dates
    24-Feb-10 ------1st Apr XXXX to 31st Mar XXXX+1 where X= year(24-Feb-10)
    31-Jan-10 ------1st Apr XXXX to 31st Mar XXXX+1


    Regards
    E
    You are right, I [Mod: edit - awkward translation!] made a mistake in explaining it should be where X= year(24-Feb-10)-1
    So the answer would be 2010-1=2009..

    SO, 1st Apr XXXX to 31st Mar XXXX+1 -->1st Apr 2009 to 31st Mar 2010

    Dear DO, I am really sorry for the above mistake but I will explain the need, this bank account nos should appear only if ther out of the the Range..

    The probable answers are as shown..

    31-Mar-2010--------------31-Mar-2011

    6049 414 8837-----------6048 414 8837
    6049 414 8728-----------6048 464 8846
    6049 464 3847
    6049 464 8846

    when the criterions selected are
    Akhilesh Chodhury

    Bank C

    1st Apr 2009 to 31st Mar 2010

    31-Mar-2010

    I tried doing that ">" to ">=" but I am afraid it did not work, I would appreciate if you have a look at it just one more time please..

    Regards
    Last edited by DonkeyOte; 01-07-2011 at 07:49 AM.

  8. #8
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Wink Re: MultiLookup with Multiple Criterions with Multiple values falling in Date Ranges.

    Dear DO,

    I tried doing that ">" to ">=" but I am afraid it did not work, I would appreciate if you have a look at it just one more time please..
    It worked ! Hurray..!

    I just tried it in the actual formula in Cell D26 and had not tried it in D25 to get the count, after trying that I got it working..
    Sorry for the trouble.


    Thanks a lot for all your help..

    Regards
    E

  9. #9
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Re: MultiLookup with Multiple Criterions with Multiple values falling in Date Ranges.

    SOrry for the confusion.!

    I got it working as i said and I posted the reply maybe simultaneously unaware of your reponse..

    I was just trying to foucs more on the code in the Cell D26 and forgot to make the changes in the cell D25 and then after lot of trial and error did it unbeknownst of your replies..

    So all in all, i am sorry for any inconvenience caused to you and thanks a lot for the help.
    Thread already marked as SOLVED..

    REgards E
    Last edited by DonkeyOte; 01-07-2011 at 07:50 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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