Formula picks up added column INDIRECT

hebertam

New Member
Joined
May 9, 2022
Messages
2
Office Version
  1. 365
Platform
  1. MacOS
Hi, I have a spreadsheet that tracks payments made against a current balance and updates the remaining balance, and I was working on a way for the 'Remaining Balance' formula to pick up new columns that are added when a new payment comes in. I uploaded an image to hopefully clarify. I was working with the indirect function and have gotten it to partially work, but is there a way to flash fill verses manually correct for the "R1C1" in each formula? Is there a work around for this, or a better formula all together?

A couple notes:
-My actual spreadsheet has hundreds of rows, and it is not "my spreadsheet" so I cant make sweeping format changes
-Payments come in very sporadically, so I was hoping not to add a bunch columns for potential future payments as place holders
- I know if I correct "R2C" to become "R3C" for row 3, "R4C" for row 4, etc. the formula works (although this maybe a completely backwards approach in the first place, lol), but as you can see when I try to flash fill it wants to draw back to "R2C" messing up the remaining balance of each line.
Screen Shot 2022-05-09 at 9.50.05 PM.png
Screen Shot 2022-05-09 at 9.53.33 PM.png


Thanks!
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hi hebertam,

Welcome to MrExcel!!

This should do the trick (starting in cell F2 and copied down as required):

=B2-SUM(C2:INDIRECT("R"&ROW()&"C"&COLUMN()-1,FALSE))

Regards,

Robert
 
Upvote 0
Welcome to the MrExcel board!

What about changing to OFFSET and in F2, copied down

=B2-SUM(C2:OFFSET(F2,0,-1))
 
Upvote 0
Solution
You're welcome. Glad we could help. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,215,831
Messages
6,127,148
Members
449,364
Latest member
AlienSx

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