I have a longitudinal dataset of size over time. Two example datasets are included in screenshot below.
At each timepoint, I am trying to find the minimum value in the range up to the current timepoint. I also need to exclude/ignore the size at Timepoint #1 (value in red) from all calculations.
I've had success using the MINIFS function as seen in the second example dataset below. In this example the formula is =MINIFS($B9:C9,$B9:C9,"<>"&$C$9). As can be seen, the minimum at Timepoint #2 = 50 since the function has correctly ignored the value of 50 in cell C9.
Where I am now coming across a problem is where the value in the cell to be excluded is equal to the value of the cell in the first range. This incorrectly returns a value of ZERO and can be seen in the first example dataset below. The same formula has been used: =MINIFS($B2:C2,$B2:C2,"<>"&$C$2) in this case. As can be seen, the size at Timepoint #0 = the size at Timepoint #1 (i.e. both are = 23). The minimum result = 0 when it should be = 23.
The formula works just fine at all other timepoints in both examples, it is only when the first cell in the range is same value as the cell to be excluded that the miscalculation occurs.
Does anyone know where I might be going wrong?!
View attachment 105116
At each timepoint, I am trying to find the minimum value in the range up to the current timepoint. I also need to exclude/ignore the size at Timepoint #1 (value in red) from all calculations.
I've had success using the MINIFS function as seen in the second example dataset below. In this example the formula is =MINIFS($B9:C9,$B9:C9,"<>"&$C$9). As can be seen, the minimum at Timepoint #2 = 50 since the function has correctly ignored the value of 50 in cell C9.
Where I am now coming across a problem is where the value in the cell to be excluded is equal to the value of the cell in the first range. This incorrectly returns a value of ZERO and can be seen in the first example dataset below. The same formula has been used: =MINIFS($B2:C2,$B2:C2,"<>"&$C$2) in this case. As can be seen, the size at Timepoint #0 = the size at Timepoint #1 (i.e. both are = 23). The minimum result = 0 when it should be = 23.
The formula works just fine at all other timepoints in both examples, it is only when the first cell in the range is same value as the cell to be excluded that the miscalculation occurs.
Does anyone know where I might be going wrong?!
View attachment 105116