+ Reply to Thread
Results 1 to 12 of 12

Index and Match Help

  1. #1
    Registered User
    Join Date
    12-16-2015
    Location
    Qatar
    MS-Off Ver
    2010
    Posts
    4

    Index and Match Help

    Good day,

    I am having an issue getting a cell to return information from a large database based on two specific criteria.

    I have attached a sample of the problem below.

    What I need to happen is for the Report Tab to search the DB_IFR tab for both the information in column A (Report tab) as well as cell B2 (also in Report Tab).

    What I need the formula to return is the latest date that can be found in column J (Date (Uploaded)) (on the DB_IFR tab).

    The image that I have attached is what I need the final product to look like.

    I have tried my hand at the index and match combination but find myself getting stuck due to me never having used this formula combo.

    ANy help will be greatly appreciated, and thank you!

    Regards,
    PFT
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: Index and Match Help

    getting there
    Frob first, tweak later

  3. #3
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Index and Match Help

    Added a helper row in the Report worksheet (row 2) because Excel doesn't like Merged cells too much. It was unclear to me which date column you wanted returned, so I referenced column J in the formula. If that is incorrect, just change that reference and it should work.
    Attached Files Attached Files
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  4. #4
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: Index and Match Help

    In Cell B3,
    =SUMPRODUCT(MAX((DB_IFR!$G2:$G18882=Report!B$2)*(DB_IFR!$C2:$C18882=$A3)*(DB_IFR!$J2:$J18882)))

    Fill down.


    You need Find / Replace spaces in J:J to make the column dates instead of text.

    Format your report as dates.

    Add conditional formatting for dates=0 to be white font, or add an If clause to show "" instead of 0 (slower formula and already is slow)
    Attached Files Attached Files
    Last edited by Neil_; 01-18-2016 at 11:24 AM.

  5. #5
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Index and Match Help

    Quote Originally Posted by Neil_ View Post
    Add conditional formatting for dates=0 to be white font, or add an If clause to show "" instead of 0 (slower formula and already is slow)
    The reference to 18882 (almost 19k rows) vs. the 1882 (almost 2k) in DB_IFR is a big factor in the slowdown. Along with this, it looks like your formula only references the DB_IFR workbook. Row 1 in report references IFR, IFA, and IFC tabs.

  6. #6
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: Index and Match Help

    @mcmahobt. I think your dates are wrong. B6 (MQAE622-K0H-5212) should be 18-Jan-2015 not 30-Dec-2014

    From Filters
    KentzDocNo Revision Date (Uploaded)
    MQAE622-K0H-5212 B1 30-Dec-2014
    MQAE622-K0H-5212 B1 18-Jan-2015
    Last edited by Neil_; 01-18-2016 at 11:32 AM.

  7. #7
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: Index and Match Help

    Filled in rest of cells. Posted partial solution earlier as a pointer. Thanks for noticing my deliberate mistake macmahobt
    Attached Files Attached Files
    Last edited by Neil_; 01-18-2016 at 11:50 AM.

  8. #8
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Index and Match Help

    With Neil's point that you're looking for the MAX date (missed that the first time), you could use this in my previously posted workbook in cell B4 of the Report worksheet:

    Please Login or Register  to view this content.
    Entered as an ARRAY FORMULA with CTRL+SHIFT+ENTER

    This does not require any data manipulation to the Text Strings you have currently entered as Dates (thanks, DATEVALUE), but I agree with Neil in that you should format those as dates.

    This is processing intensive with how many arrays are being used, so I turned off the formula calculations, so it may take a few minutes to calculate. I suggest when you aren't trying to calculate the entire sheet to turn off automatic calculations.

  9. #9
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Index and Match Help

    Quote Originally Posted by Neil_ View Post
    Filled in rest of cells. Posted partial solution earlier as a pointer. Thanks for noticing my deliberate mistake macmahobt
    One last nitpick, your ranges for column J stop at row 1882; this will not pickup the extended range of 1947 in the IFC worksheet.

  10. #10
    Registered User
    Join Date
    12-16-2015
    Location
    Qatar
    MS-Off Ver
    2010
    Posts
    4

    Re: Index and Match Help

    Guys,

    Thanks for the quick reply! Your solution was perfect for my requirements but it has now made me realise a formula that I wrote the other day isnt doing what I need.

    So the dates that you returned in the previous problem need to be relfacted in a month to month table.

    For example:

    The KentzDocNo item reflecting in Report 3!A32 is MQAE622-K0A-9654 this is inturn grouped into the code PR1 (Report 3!B32). If you look in Report!A3 this represents the group that this cell is in (it contains several other Document codes each with their own dates corressponding to their revision i.e. C1, C2, B1, B2, etc)

    Currently, The KentzDocNo item reflecting in Report 3!A32 has three separate dates (10-Apr-15, 20-May-15 and 21-Sep-15) the formula that I wrote that tries to group these revisions into months groups the revisions and returns them as one month (shown as a "3" in cell Report!AL3:AM3) This needs to be reflected as a "1" in the respective months ("1" in April, "1" in May and "1" in September)

    I am not sure if I have explained this properly, but let me know if I can assist with any more explaination?

    Thanks very much in advance!

    Kind regards,
    PFT
    Attached Files Attached Files

  11. #11
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Index and Match Help

    Can you elaborate on why the formula (which does not necessarily need the date ranges to function) should return a 1 instead of a 3? That is throwing me off.

  12. #12
    Registered User
    Join Date
    12-16-2015
    Location
    Qatar
    MS-Off Ver
    2010
    Posts
    4

    Re: Index and Match Help

    Is all three revisions happened in the same month i.e. Jul-15 then a three in that column would be appropriate. However, what happens with the above example is that that document number has three revisions that occur in different months. This means that the three reflecting in Jul-15 should only be a one (unless there are other documents with that particular coding that have revisions that occurred in that month).

+ 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] Match-Index in stead of Index-Match lookup Array among Arrays
    By Numnum in forum Excel General
    Replies: 2
    Last Post: 10-15-2015, 02:08 PM
  2. INDEX MATCH MATCH/OFFSET MATCH MATCH with named ranges
    By Andrew-Mark in forum Excel General
    Replies: 3
    Last Post: 02-27-2015, 10:56 PM
  3. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  4. [SOLVED] Index Match from a cell populated from index match
    By MarcLewis in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-15-2013, 05:30 AM
  5. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  6. Replies: 3
    Last Post: 05-02-2013, 01:31 AM
  7. Replies: 5
    Last Post: 02-29-2012, 08:51 PM

Tags for this Thread

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