+ Reply to Thread
Results 1 to 7 of 7

How to fill row based on multiple criteria with the most recent of multiple matches

  1. #1
    Registered User
    Join Date
    02-28-2013
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    3

    How to fill row based on multiple criteria with the most recent of multiple matches

    Hi All,
    This is my first post, though I have used the site in the past and it has saved my a** countless times. So thanks for that. Anywhosle, I have a problem that I thought I had solved by reading other posts, but I ran into a hiccup that I cannot overcome and has been frustrating me for weeks.
    At work I have to take samples and distribute them to people, then log a bunch of information every time, which means I need to manually look up multiple pieces of information from multiple sources and it's just taking too long. To fix this I created a MATCH INDEX Formula (I do not have it on me or in the attached example sheet now, but I can find it on Tuesday when I'm back at work) that fills in a sample name into column C by looking for values for both columns A&B of the same row in the the entire sheet.

    (Please see the attachment)
    The main problem I am having now is that when there have been multiple aliquots of the same sample, the INDEX MATCH function will only look up the first value it comes across, which is causing it to return the incorrect value for 'amount remaining'. What I need is a function that can do the index-match magic for the MOST RECENT of the multiple values.

    A second problem that I have not even begun to figure out is that since I have multiple sets of the same sample (i.e. duplicate, & triplicate for some), I need a function that can search (sequentially) the "Sample Log" sheet, then the "Sample Duplicate List" sheet, and finally the "Sample Inventory" sheet for matching values corresponding to the typed-in box & position. This would be SO helpful, but to me it sounds like it might be too complicated for practical use in excel, so I do not have high expectations for this second part.

    Thank you very much for taking the time to read & (hopefully) help me solve this thing!
    Attached Files Attached Files

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to fill row based on multiple criteria with the most recent of multiple matches

    Hi proctc,

    welcome to the forum.
    The main problem I am having now is that when there have been multiple aliquots of the same sample, the INDEX MATCH function will only look up the first value it comes across, which is causing it to return the incorrect value for 'amount remaining'. What I need is a function that can do the index-match magic for the MOST RECENT of the multiple values.
    where I can find this in your sheet... better to share your expected output as well ? thanks.



    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to fill row based on multiple criteria with the most recent of multiple matches

    Maybe a filter on the sheet Sample Inventory (in combination with the formula subtotal)?
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    02-28-2013
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: How to fill row based on multiple criteria with the most recent of multiple matches

    Dilipandey- For example, the output in F14 with my current formula would be 200 (from cell H2), but I would want it to output the value in cell H10 (100) because that would be the "current" amount of sample left.

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to fill row based on multiple criteria with the most recent of multiple matches

    Okay.. use below formula:-

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


    enter this using key combination: ctrl shift enter.

    See attached:- DummySample 1.xls


    Regards,
    DILIPandey
    <click on below * if this helps>

  6. #6
    Registered User
    Join Date
    02-28-2013
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: How to fill row based on multiple criteria with the most recent of multiple matches

    Thank you very much! That is precisely what I was looking for!

  7. #7
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to fill row based on multiple criteria with the most recent of multiple matches

    you are welcome proctc...
    cheers


    suggest you to mark this thread as [SOLVED].. thx


    Regards,
    DILIPandey
    <click on below * if this helps>

+ 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