Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Franz Wong
Franz Wong

Posted on

     

Excel tips - lock column and row in formula

Suppose I would like to do something like this.

Alt Text

Instead of calculating interest by hand, of course we should use formula to do that.

We can put=A2*B2/100,=A2*B3/100 and=A2*B4/100 toC2,C3 andC4 respectively. But it is troublesome to prepare different formulas for each row.

Instead, we can use$ to lock both column index and row index forA2, so when we "paste" the formula, Excel will update the row index ofB for us.

We put=$A$2*B2/100 toC2 and copyC2.

Alt Text

When we paste the copiedC2 toC3, we will get=$A$2*B3/100 without additional modification.

Alt Text

But still, we need to keep pasting the formula to other cells. We can simply drag the small dot at the right bottom corner of the cell to the cells you want it to copy to.

Alt Text

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

  • Location
    Hong Kong
  • Joined

Trending onDEV CommunityHot

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp