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
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
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.
 
Upvote 0

Forum statistics

Threads
1,214,812
Messages
6,121,704
Members
449,048
Latest member
81jamesacct

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top