+ Reply to Thread
Results 1 to 2 of 2

minimum value out of a subset

  1. #1
    Registered User
    Join Date
    01-03-2007
    Posts
    31

    minimum value out of a subset

    I have two arrays. One with dates. One with numbers. I want a function to return the min of the numbers, but only using numbers corresponding to a given date. Thanks and much appreciated.

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Assuming that A2:A10 contains the date, B2:B10 contains the corresponding number, and D2 contains the date of interest, try...

    =MIN(IF($A$2:$A$10=D2,$B$2:$B$10))

    ...confirmed with CONTROL+SHIFT+ENTER. If Column B can contain empty cells, try the following formula instead...

    =MIN(IF($A$2:$A$10=D2,IF($B$2:$B$10<>"",$B$2:$B$10)))

    ...also confirmed with CONTROL+SHIFT+ENTER.

    Hope 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