![]() |
bulk replacement of cell reference within formula
In a formula with 8 IF queries, for example
=IF(B13="Blah",Blah!$C$37,IF(B13="Stuff",Stuff!$C$ 37)) etc, how do I replace all the cell references (say $C$37) in one go, without having to overwrite each one separately? I tried highlighting the formula then utilising Find & Replace in the Edit menu (which has a option to look in formulas) to no avail. Would appreciate assistance ans there are tonnes to change |
Answer: bulk replacement of cell reference within formula
Excel will replace all instances of the cell reference in the formula with the new cell reference you specified. Repeat these steps for any other cell references you want to replace in the formula. |
bulk replacement of cell reference within formula
Replace works for me. Don't highlight the formula. Just select any individual
cell or the range in which you want the replacements. Ensure that Match Entire cell contents is NOT checked and that you are looking in formulas. Click on replace all. Tip: It is a good idea to ensure you have a backup of your workbook when performing this type of operation in case you get it wrong. Regards, OssieMac "Twishlist" wrote: In a formula with 8 IF queries, for example =IF(B13="Blah",Blah!$C$37,IF(B13="Stuff",Stuff!$C$ 37)) etc, how do I replace all the cell references (say $C$37) in one go, without having to overwrite each one separately? I tried highlighting the formula then utilising Find & Replace in the Edit menu (which has a option to look in formulas) to no avail. Would appreciate assistance ans there are tonnes to change |
bulk replacement of cell reference within formula
Thank you for responding...it would appear that highlighting the formula was
indeed the problem. "OssieMac" wrote: Replace works for me. Don't highlight the formula. Just select any individual cell or the range in which you want the replacements. Ensure that Match Entire cell contents is NOT checked and that you are looking in formulas. Click on replace all. Tip: It is a good idea to ensure you have a backup of your workbook when performing this type of operation in case you get it wrong. Regards, OssieMac "Twishlist" wrote: In a formula with 8 IF queries, for example =IF(B13="Blah",Blah!$C$37,IF(B13="Stuff",Stuff!$C$ 37)) etc, how do I replace all the cell references (say $C$37) in one go, without having to overwrite each one separately? I tried highlighting the formula then utilising Find & Replace in the Edit menu (which has a option to look in formulas) to no avail. Would appreciate assistance ans there are tonnes to change |
All times are GMT +1. The time now is 05:09 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com