Why does my formula change?

gaj104

Well-known Member
Joined
Nov 9, 2002
Messages
864
Hi. I seem to have a problem. I have a simple formula subtracting from one cell from the other. However, when I insert a line and pull down one of the values the formula changes and references become offset.
Book1
ABCD
1From this
2
3100.00300.00(200.00)
4100.50350.30(249.80)
5200.00500.00(300.00)
6600.00600.00-
7
8To this
9
10100.00100.00
11300.00(350.30)<--- Line insereted and amount dragged down
12100.50350.30(399.50)
13200.00500.00(400.00)
14600.00600.00600.00
Sheet1


Anyone know how I fix this?

Thanks
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Don't use drag and drop.

Thats is not what I call a solution! If I dont drag and drop I need to copy, paste then delete the line. This takes far more time, especially as I have to do this process about 50 times over.

I thought there might be a way doing it using the indirect or address function.

EDIT:

Worked out the answer:
=(INDIRECT(ADDRESS(ROW(),1)))-(INDIRECT(ADDRESS(ROW(),2)))
 
Upvote 0
gaj104 said:
Don't use drag and drop.

Thats is not what I call a solution!

You did not ask for a problem to solve. It was rather why do I get =A11-B12 instead of =A11-B11 you seem to have expected.

If I dont drag and drop I need to copy, paste then delete the line. This takes far more time, especially as I have to do this process about 50 times over.

I thought there might be a way doing it using the indirect or address function.

EDIT:

Worked out the answer:
=(INDIRECT(ADDRESS(ROW(),1)))-(INDIRECT(ADDRESS(ROW(),2)))

This is not an optimal solution either with all those volatile functions.

If you are on Excel 2003, just make of the data and processing area a list by means of Data|List|Create List. This functionality will correctly copy down the formulas automatically. Just insert a row where you need and enter the data. Subtracting will happen instantly with the right references.
 
Upvote 0

Forum statistics

Threads
1,214,897
Messages
6,122,151
Members
449,068
Latest member
shiz11713

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
Back
Top