Macro to update formula

Dummy Excel

Well-known Member
Joined
Sep 21, 2005
Messages
1,004
Office Version
  1. 2019
  2. 2010
  3. 2007
Platform
  1. Windows
HI All,

I have a formula:
Code:
=((IF(VLOOKUP(Response!$D$14,'Relationship Matrix'!$P$48:$S$58,'Relationship Matrix'!$U$49,FALSE)=1,(1+'KN Rates'!$M14),(1+'KN Rates'!$N14)))*(('KN Rates'!$K14*$G$38)+('KN Rates'!$F14*'Calc Sheet'!$G$35)))+'KN Rates'!$K$30
Although I need to add this to the end of the formula
Code:
)/'Exchange Rates'!$C$9
oh and an extra ( after the = sign.

I cant just drag the formula down as some of the reference points are different. Is there a way to update the cell via a macro? or better still highlight the cells that need amending and then run a macro to make those changes only to the hightlighted cells?

thanks
Sam
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Forum statistics

Threads
1,215,020
Messages
6,122,709
Members
449,093
Latest member
Mnur

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