Forum Discussion
sk1325
Feb 22, 2019Copper Contributor
fill formula to next row
i'm trying to copy this formula =COUNTIF(A2:R155,B2) to the next row and fill the it to =COUNTIF(A2:R155,B3). what happens when i drag the box =COUNTIF(A3:R156,B2) . if i copy the formula and paste i...
Haytham Amairah
Feb 22, 2019Silver Contributor
Hi,
You have to make the criteria range absolute (Locked) by preceding the row and column references by the dollar sign as follows:
=COUNTIF($A$2:$R$155,B2)
This will prevent the range from changing when copying the formula down.
To learn more about that, please check out this https://support.office.com/en-us/article/switch-between-relative-absolute-and-mixed-references-dfec08cd-ae65-4f56-839e-5f0d8d0baca9.
Hope that helps
- sk1325Feb 22, 2019Copper Contributorwow!
it worked.
thanks