Locking values in a formula while dragging

eschrichj

New Member
Joined
Dec 8, 2016
Messages
7
I have a formula that I'm dragging down and taking data from each row as I drag it down. But I have a value taken from the top of the column that I want to stay the same as I drag the formula down.

=SUMIFS('Enter Data Here'!M:M,'Enter Data Here'!A:A,">="&'Monthly Reports'!L3,'Enter Data Here'!A:A,"<="&'Monthly Reports'!L4,'Enter Data Here'!J:J,"="&'Monthly Reports'!A46)

The formula works, but I want to be able to lock the portions highlighted red, so I don't have to manually fix it every time I drag the formula.

I saw that adding a $ sign will lock the values but every way I try it says there is an error in the formula, I may be adding it in the wrong place.

Thanks in advance
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Try:

=SUMIFS('Enter Data Here'!M:M,'Enter Data Here'!A:A,">="&'Monthly Reports'!$L$3,'Enter Data Here'!A:A,"<="&'Monthly Reports'!$L$4,'Enter Data Here'!J:J,"="&'Monthly Reports'!A46)

A $ before the column letter locks the column, before the row number locks the row, and before both means you're looking at a specific cell.
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,267
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top