I hoping someone can explain what I’m doing wrong here as I would like to get a clear understanding of how to do this correctly. When I copy the following formula from cell (C10) on one tab to cell (AC3) on another tab the “$B10 portion “#ref!” – yet the remaining portion looks fine. Can some please tell me what I need to do and what is causing issue – Thank you.
Formula (Cell C10 on one tab):
=IFERROR(SUMIFS($O:$O,$B:$B,$B10)/COUNTIFS($B:$B,$B10,$O:$O,”<>0″),””)
VB Code to copy is:
Sheets(gcsCombinedSheetName).Cells(lngLastRow, columnletter) = getConfigPosition.Offset(0, 2).Formula
Thanks,
Ciaran.
Thanks t0 Peter L and Peter S for the support on this one. I replaced .formula with .formulaR1C1 and wrote the formula using the related referencing. I then put an error checker on it and I could clearly see what elements of the code that where out of range.
Thanks again,
Ciaran.