I'm trying to VBA code a few calculations. As an Excel array (control-shift-enter) formula, it reads like {=TRIMMEAN(IF(B:B="X",C:C),H2)}, where it is looking at a set of groups (B:B = "X"; find rows that contain "X" in column "B") , then calculating the Trimmean function for column "C" in those rows only. (H2 being the % for Trimmean)
I'm not sure how to do this in VBA.
I'm assuming its some form of WorksheetFunction.TrimMean (Range (If...
This is only one of the array calculations I need to do, so I'm hoping if I can learn how to do this, I can use this example to do the rest of my formulas.
Thanks in advance,
Tim
I'm not sure how to do this in VBA.
I'm assuming its some form of WorksheetFunction.TrimMean (Range (If...
This is only one of the array calculations I need to do, so I'm hoping if I can learn how to do this, I can use this example to do the rest of my formulas.
Thanks in advance,
Tim