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
 

Some videos you may like

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Eric W

MrExcel MVP
Joined
Aug 18, 2015
Messages
10,645
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!
 

Watch MrExcel Video

Forum statistics

Threads
1,123,530
Messages
5,602,192
Members
414,513
Latest member
junbuggle

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