Welcome to DU!
The truly grassroots left-of-center political community where regular people, not algorithms, drive the discussions and set the standards.
Join the community:
Create a free account
Support DU (and get rid of ads!):
Become a Star Member
Latest Breaking News
Editorials & Other Articles
General Discussion
The DU Lounge
All Forums
Issue Forums
Culture Forums
Alliance Forums
Region Forums
Support Forums
Help & Search
Excel question. How to lock a cell in a formula
I have done this many times in the past but don't remember how. ie =sum(b1:b500) what do i put in front of B1 to make it constant? Rather than going down a step when copying it down. ie =sum(b2:b501)
InfoView thread info, including edit history
TrashPut this thread in your Trash Can (My DU » Trash Can)
BookmarkAdd this thread to your Bookmarks (My DU » Bookmarks)
6 replies, 1336 views
ShareGet links to this post and/or share on social media
AlertAlert this post for a rule violation
PowersThere are no powers you can use on this post
EditCannot edit other people's posts
ReplyReply to this post
EditCannot edit other people's posts
Rec (0)
ReplyReply to this post
6 replies
= new reply since forum marked as read
Highlight:
NoneDon't highlight anything
5 newestHighlight 5 most recent replies
Excel question. How to lock a cell in a formula (Original Post)
tiredtoo
Apr 2022
OP
Turbineguy
(38,366 posts)1. $
I think.
sanatanadharma
(4,074 posts)2. Yes, $A$1 to 'lock' cell A1
tiredtoo
(2,949 posts)3. thanks EOM
taxi
(1,943 posts)4. Naming the cell works good too
Naming cells and ranges gets rid of the problems of having to fix formula when things get moved around.
Using your example: give the range of b2:b501 a name, call it betslost
Your formula would be =sum(betslost)
It won't matter if rows or columns are inserted or deleted, for example: you inserted six more columns. Now what was in B is now in column G. Wherever the formula =sum(betslost) appears still works.
twodogsbarking
(12,228 posts)5. I think it was f4 but the f's are gone from today's keyboards.
HubertHeaver
(2,526 posts)6. Keyboards no longer give an f?