MIN(INDEX formula which ignores blanks or zeros?

SHARRIS2013

New Member
Joined
Jan 3, 2013
Messages
10
Hi i am using the below formula

=MAX(INDEX((Sheet1!A1:A59>=B1)*(Sheet1!A1:A59<=C1)*Sheet1!B1:B59,))

I tried to adapt it to use the MIN function but because my range covers periods in the future some cells are still blank, is there a way of using the formula to incorporate MIN but ignoring any blank or zero values in sheet 1 column B?

An example is
Sheet 1
A1-A59 runs from 01/12/2012 - 28/01/2013
B1-B59 only has values in upto 04/01/2013 as tomorrows data isnt available yet

Sheet 2
B1 is 05/12/2012
C1 is 20/01/2013

I want the fomula to use the dates in B1 and C1 to look at the values in sheet 1 column B and find the minimum withour returning a 0 value as the dates 05/01/2013-20/01/2013 have no values yet
tomorrow once i update my data i would need the formula to then take into account upto the 5th and continue each day up until the 20/01/2013 is reached

Thank you
 

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
For MIN you will need an array formula:

=MIN(IF((Sheet1!A1:A59>=B1)*(Sheet1!A1:A59<=C1)*Sheet1!B1:B59,Sheet1!B1:B59))

confirmed with Ctrl+Shift+Enter.
 

Forum statistics

Threads
1,082,275
Messages
5,364,181
Members
400,785
Latest member
Mahar92

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top