I am calculating a conditional MEDIAN of column C based on the value of column A. The following works:
But when I generalize the formula to include all rows except the first using OFFSET, I get a #VALUE! error:
Am I not using OFFSET correctly? The OFFSET formulas don't return errors when I input them individually into cells.
Excel Formula:
{=MEDIAN(IF(A2:A60=4770,C2:C60))}
But when I generalize the formula to include all rows except the first using OFFSET, I get a #VALUE! error:
Excel Formula:
{=MEDIAN(IF(OFFSET(A2,0,0,ROWS(A:A)-ROW(A2)+1)=4770,OFFSET(C2,0,0,ROWS(C:C)-ROW(C2)+1)))}
Am I not using OFFSET correctly? The OFFSET formulas don't return errors when I input them individually into cells.