Forum Discussion
AlexJamieson
Nov 09, 2021Copper Contributor
Formula repeating when dragging down
Hi all, When I drag my formula down, it is repeating the same formula (ie referencing the same cells as in the first row) rather than referencing the appropriate cells for the row. ...
Riny_van_Eekelen
Nov 09, 2021Platinum Contributor
AlexJamieson Try this in D2 and copy down:
=COUNTIFS($A$2:$A$31,">="&C2,$A$2:$A$31,"<"&C3)
AlexJamieson
Nov 09, 2021Copper Contributor
You are my hero. Can you please explain the changes you made to the formula? What is the function of the "&" symbol?
- Riny_van_EekelenNov 09, 2021Platinum Contributor
AlexJamieson If you would be comparing a range to a fixed value, let's say 1300, you could use ">=1300" as the criteria. But when you want to link the value to a cell reference, you need to write it like ">="&C2. That will make the cell reference dynamic and change when you copy the formula down.
- SamOconnor248Apr 14, 2025Copper Contributor
I am using this formula
=IF(L18=P8,0,IF(L18=P9,50,IF(L18=P10,100,"")))
I want to repeat in cells below but the reference cells (P8, P9 and P10) keep moving down 1
- Riny_van_EekelenApr 15, 2025Platinum Contributor
not sure I follow, but perhaps use absolute references, like $P$8, $P$9, $P$10.
- AlexJamiesonNov 09, 2021Copper ContributorThank you for taking the time to explain 🙂