Autofill formula but lock parts of that formula

mrfee

New Member
Joined
Aug 29, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I have an add row button that adds a new table row and updates the formula.

The formula in one of the cells is =IF(B8 = "", "", B8 - B3-B3+C3+C3-D3)

When I add a row using the button it autofills the formula and changes it to =IF(B9 = "", "", B9 - B4-B4+C4+C4-D4)

I want the B column to update but I need C3+C3-D3 to stay the same.

This is a template sheet for calculating rails and styles of cabinet doors , C3 and D3 is user input that will change from sheet to sheet based on the width of the frame.

Is this possible?
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Welcome to the MrExcel board!

Like this?
Excel Formula:
=IF(B8="","",B8-B3-B3+C$3+C$3-D$3)
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,251
Members
448,556
Latest member
peterhess2002

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