How to replace part of the code?

Greenlee

New Member
Joined
Aug 31, 2014
Messages
23
I have formula
I want to replace all H to H9 how do I do that ? cause its to much work to replace 10000 formulas

=((E28/H12)*(F28*H12))
=((E29/H13)*(F29*H13))
=((E30/H14)*(F30*H14))

Much appreciate in advance
 

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.

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
37,883
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
I have formula
I want to replace all H to H9 how do I do that ? cause its to much work to replace 10000 formulas

=((E28/H12)*(F28*H12))
=((E29/H13)*(F29*H13))
=((E30/H14)*(F30*H14))

Much appreciate in advance
As long as your Column H row references are all two digits long, select the cell or cells where you want to make this change, press CTRL+H to bring up the Repace dialog box, put H?? (an H followed by two question marks) in the "Find what" field, put H9 in the "Replace with" field, click the "Options>>" button and make sure the "Match entire cell contents" check box is not checked, then press "Replace All".
 

István Hirsch

Well-known Member
Joined
May 16, 2013
Messages
1,634
…Or, if the numbers following H have more than 2 digits (H1234 etc.), do what Rick suggested, with „H*)” in the „Find what” box and „H9)” in the „Replace with” box (without quotes).
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,157
Messages
5,835,715
Members
430,382
Latest member
legolas97

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
Top