You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

numbers functions help

Hi Guys, can anyone please help?


I have a numbers sheet with many identical formulas. I want to change a value in all the formulas for the same value.


Does anyone know a quick way of being able to change the value in a formula multiple times without clicking in every formula to change it?


Cheers

MacBook Air 13″, macOS 11.4

Posted on Jun 26, 2021 2:29 PM

Reply
Question marked as Top-ranking reply

Posted on Jun 26, 2021 9:34 PM

NickB2708 wrote:

Does anyone know a quick way of being able to change the value in a formula multiple times without clicking in every formula to change it?


Here is a Find Replace in Formulas Automator Service (Dropbox download) that does what you describe. I made it a few years ago.


To use it you select cells the cells containing formulas you want to change, choose Numbers > Services > Find Replace in Formulas in your menu, and follow the prompts. It does not change cells that do not contain a formula.


To install it simply double-click the downloaded package, and if necessary give permission at System Preferences > Security & Privacy. Also make sure Automator.app is listed and checked at System Preferences > Security & Privacy > Privacy > Accessibility.


I suggest trying on a test document first to make sure it is doing what you want.


SG



6 replies
Question marked as Top-ranking reply

Jun 26, 2021 9:34 PM in response to NickB2708

NickB2708 wrote:

Does anyone know a quick way of being able to change the value in a formula multiple times without clicking in every formula to change it?


Here is a Find Replace in Formulas Automator Service (Dropbox download) that does what you describe. I made it a few years ago.


To use it you select cells the cells containing formulas you want to change, choose Numbers > Services > Find Replace in Formulas in your menu, and follow the prompts. It does not change cells that do not contain a formula.


To install it simply double-click the downloaded package, and if necessary give permission at System Preferences > Security & Privacy. Also make sure Automator.app is listed and checked at System Preferences > Security & Privacy > Privacy > Accessibility.


I suggest trying on a test document first to make sure it is doing what you want.


SG



Jun 26, 2021 5:40 PM in response to NickB2708

If you need to do this often or if that value is a parameter/variable that is common to a bunch of formulas, perhaps that value should be a cell reference vs hard coded into the formulas. This might be a good time to make that change.


As a general statement, it would not be a simple thing for the app to automatically update all the other non-identical formulas based on the change made to one formula, nor would you want that to happen usually.

Formula A = C2*5

Formula B = (C2-5)*5

If you change the "5" to a "6" in formula A, do both 5's get changed in formula B or just one (and which one) or do you not want it to change formula B at all?

But if cell D2=5 and

Formula A =C2*D2

Formula B =(C2-D2)*5

then it would "update all the formulas" whenever you change the value in cell D2.


To your question ,though, I cannot think of an easy way to update a number in a bunch of dissimilar formulas, except one at a time. I thought about using the FORMULATEXT formula in a new column, then copy / paste formula results to turn them into actual text, then find/replace to change the value in each, but then you have to copy/paste each "formula" one-by-one back to its matching cell to overwrite the old formula. Unless there are a lot of them, this entire procedure is just as much work.


It might be possible to do something with Applescript but I feel the time it would take to write and test the script would be longer than the time it takes to do it manually.

numbers functions help

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.