Reputation: 6552
Looking for a way to subtract 2 different cells in every row. How would I make a formula. I have tried the following
=G&ROW()-B&ROW()
Upvotes: 0
Views: 7252
Reputation:
If you click the tiny black square at the right-bottom of the selected cell and drag the formula down it will copy it automatically increasing row numbers.
Upvotes: 1
Reputation: 7303
You can use
=G1-B1
in row 1, when you drag it Excel will automatically adjust it for you.
If you don't want Excel to change the range when you adjust, you should use $
=$G$1-$B$1
If you just wanted to adjust the row but keep the column static you can use
=$G1-$B1
etc.
Upvotes: 1