Harry Covair
Member
Hi the forum,
I want to retrieve the absolute min temperature per day from 1833 to 2012.
The date and the min are in B2 to C65384
The day numbers are in F2-F32 and the month numbers are in G1-R1
I developed a formula to analyze the data:
{=SMALL(IF((LEFT(TEXT($B$2:$B$65384;"dd/mm/yyyy");2) =TEXT($F2;"dd"))*(MID(TEXT($B$2:$B$65384;"dd/mm/yyyy");4;2)=TEXT(G$1;"dd"));$C$2:$C$65384;0);1)}.
The Text function is used to avoid the problem with the dates before and after 1/1/1900.
The results are correct as long the temperatures are negative. In case of positive temperatures, the formula returns 0. I tried the SMALL and MIN function; the results are the same.
Could some people explain me what is going wrong in the formula?
Thanks in advance
Harry
I want to retrieve the absolute min temperature per day from 1833 to 2012.
The date and the min are in B2 to C65384
The day numbers are in F2-F32 and the month numbers are in G1-R1
I developed a formula to analyze the data:
{=SMALL(IF((LEFT(TEXT($B$2:$B$65384;"dd/mm/yyyy");2) =TEXT($F2;"dd"))*(MID(TEXT($B$2:$B$65384;"dd/mm/yyyy");4;2)=TEXT(G$1;"dd"));$C$2:$C$65384;0);1)}.
The Text function is used to avoid the problem with the dates before and after 1/1/1900.
The results are correct as long the temperatures are negative. In case of positive temperatures, the formula returns 0. I tried the SMALL and MIN function; the results are the same.
Could some people explain me what is going wrong in the formula?
Thanks in advance
Harry