Try this:
=INDEX(FREQUENCY((F3,J3,N3,Q3),Dates!A4:B4-{1,0}),2)
Here's how that works....
With
Dates!A4: 01-JAN-2007
Dates!B4: 31-JAN-2007
The first part of the FREQUENCY function lists the cells to test.
(F3,J3,N3,Q3),
The second part creates 3 BINS....2 Explicitly....1 automatically.
Those bins are:
1) Up through 31-DEC-2006
2) Over 31-DEC-2006 and up through 31-JAN-2007
3) (everything greater than 31-JAN-2007)
Each date in (F3,J3,N3,Q3) falls into one of those bins.
The only bin we care about is the 2nd bin
...Over 31-DEC and through 31-Jan
The INDEX function pulls the value from that bin.
Is that something you can work with?
Bookmarks