Hello Guys,
I need some help. I have some commodity dates and price data in two separate columns and I am trying to find "min" and "max" values for various date ranges. I also need the specific date on which the minimum or maximum value is found.
I am using below formula to find "min" in a given date range: Its a array function!
{=MIN(IF(($C$4:$C$1000<=F15)*($C$4:$C$1000>=G15),$B$4:$B$1000,""))}
The "F" and "G" columns contain dates that I am specifying for date ranges, "C" column has all dates and "B" column has corresponding prices...
Now in order to find the specific date corresponding to the minimum value found through above formula I am using below formula: (again Array!!)
{=INDEX($C$4:$C$1000,MATCH(MIN(IF(($C$4:$C$1000<=F15)*($C$4:$C$1000>=G15),$B$4:$B$1000,"")),$B$4:$B$1000,0))}
Now the problem is that the minimum value in a given date range is identified correctly however since such value is repeated at multiple times the date shown is NOT WITHIN THE DATE RANGE specified to fetch the minimum value....
Can someone please help me out??
With Best Regards,
Vinay
I need some help. I have some commodity dates and price data in two separate columns and I am trying to find "min" and "max" values for various date ranges. I also need the specific date on which the minimum or maximum value is found.
I am using below formula to find "min" in a given date range: Its a array function!
{=MIN(IF(($C$4:$C$1000<=F15)*($C$4:$C$1000>=G15),$B$4:$B$1000,""))}
The "F" and "G" columns contain dates that I am specifying for date ranges, "C" column has all dates and "B" column has corresponding prices...
Now in order to find the specific date corresponding to the minimum value found through above formula I am using below formula: (again Array!!)
{=INDEX($C$4:$C$1000,MATCH(MIN(IF(($C$4:$C$1000<=F15)*($C$4:$C$1000>=G15),$B$4:$B$1000,"")),$B$4:$B$1000,0))}
Now the problem is that the minimum value in a given date range is identified correctly however since such value is repeated at multiple times the date shown is NOT WITHIN THE DATE RANGE specified to fetch the minimum value....
Can someone please help me out??
With Best Regards,
Vinay