Home

fill formula to next row

sk1325
New Contributor

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 get=COUNTIF(A2:R155,B2)

 

please advise

2 Replies

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 link.

 

Hope that helps

wow!
it worked.

thanks
Related Conversations
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
Edge insider Dev bypasses IE mode website list
HotCakeX in Enterprise on
4 Replies