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

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Eric W

MrExcel MVP
Joined
Aug 18, 2015
Messages
12,224
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.
 

eschrichj

New Member
Joined
Dec 8, 2016
Messages
7
Okay that was my mistake, I was doing it only before the column letter, not both.

Thanks Eric!
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,673
Messages
5,838,706
Members
430,565
Latest member
cheredia

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
Top