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
Sort By: 
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



Reply

Jun 26, 2021 4:13 PM in response to NickB2708

select one cell in the column, then update the formula.


select the cell again (after typing the return key to finish editing the formula).

copy

select the column of cells, paste


If it's more complicated than this, then post specifics about your formula for a more specific question.


Everyone here is very friendly and helpful


Best

Reply

Jun 26, 2021 4:52 PM in response to Wayne Contello

Hi Wayne, thanks for the reply but thats not going to work as the formulas are not identical. It's only one value within the formula that is common to all, that I need changing.


I'm thinking there must be some sort of way I can change this value once and it automatically updates all the formulas with that value?

Reply

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.

Reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

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.