+ Reply to Thread
Results 1 to 6 of 6

Lookup lowest value in a list for an item for a specific date

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    04-13-2010
    Location
    England
    MS-Off Ver
    Office 2016 365
    Posts
    211

    Lookup lowest value in a list for an item for a specific date

    Hi,

    I've been trying to do the following:

    I have a list of machines and i have a long list of services for those machine. Each machine has a contract start date. I want to find the first service (i.e. service entry with the lowest date value) that comes AFTER the contract start date

    I tried a couple of ways to no avail, any help is greatly appreciated! See the example attached and thanks for any help!

    (also posted on ozgrid http://www.ozgrid.com/forum/showthre...348#post620348)

    Ta

    J
    Attached Files Attached Files
    Last edited by JungleJme; 07-26-2012 at 04:55 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,018

    Re: Lookup lowest value in a list for an item for a specific date

    Can you also upload example workbook?
    Never use Merged Cells in Excel

  3. #3
    Forum Contributor
    Join Date
    04-13-2010
    Location
    England
    MS-Off Ver
    Office 2016 365
    Posts
    211

    Re: Lookup lowest value in a list for an item for a specific date

    I had uploaded an xlsx and then thought i would add an .xls instead. In tyring to do so IE crashed 5 times in a row for no apparent reason.

    The original xlsx should appear now. I'll try uploading an xls again in a minute once the real possibility of me putting my fist through my monitor has passed......

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Lookup lowest value in a list for an item for a specific date

    hi JungleJme, this seems to work:
    =MIN(IF(($A$16:$A$21=A3)*($B$16:$B$21>B3),$B$16:$B$21))

    copy this formula & paste into the formula bar. then press CTRL + SHIFT + ENTER

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,018

    Re: Lookup lowest value in a list for an item for a specific date

    Try this (comfirmed with ctrl+shift+enter):

    Formula: copy to clipboard
    =MIN(IF(($A$16:$A$21=$A3)*($C$16:$C$21="Yes")*($B$16:$B$21>B3),$B$16:$B$21))

  6. #6
    Forum Contributor
    Join Date
    04-13-2010
    Location
    England
    MS-Off Ver
    Office 2016 365
    Posts
    211

    Re: Lookup lowest value in a list for an item for a specific date

    Thanks guys, seems to work on the sample - have put it into my main table and got a couple of erroneous looking results could be the data though, will investigate and report back

    ---------- Post added at 10:28 AM ---------- Previous post was at 10:21 AM ----------

    Yeh, that works great - errors were down to other factors! Thanks gents.

+ 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