Calculate using a cell address that increases

kcompton

Board Regular
Joined
Mar 16, 2009
Messages
209
Hi - I am trying to calculate 200000 minus a number in a cell address that changes when I insert an additional row.
For example,
200,000 minus D3. (D3 is the sum of the range D1:D2)
but then I insert a row and the calculation has to become
200000 minus D4 (where D4 is the sum of the range D1:D3)

Thanks for any help -
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Is the cell you want to subtract ALWAYS the last cell in thet column?

There are a number of options, including:
1. Change the structure of your workbook, so that the SUM is at the top, instead of at the bottom (so that row won't move as rows are inserted).
2. Make it a named range and reference it that way (the named range will automatically move as you insert row).
3. Use a formula that returns the last cell in the column (see: https://exceljet.net/formula/get-value-of-last-non-empty-cell)
 
Upvote 0
Thank you Joe4 -
Yes, the cell is Always the last cell in the column.
I previously tried the Lookup option, but not in the correct format referenced int the link you provided.
Thank you so much for your help.
 
Upvote 0
You are welcome.
 
Upvote 0

Forum statistics

Threads
1,213,534
Messages
6,114,188
Members
448,554
Latest member
Gleisner2

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