Find and Replace in formulas

I use the Calendar template from Numbers v6 to create a log of hours (and other statistical info).

Theses are tabulated into totals on each calendar month sheet. (It's visually more compelling)


I have a summary sheet that adds all the monthly totals in a Month by Years table.

I named the sheets consistently: 'mmm yy'

The total cells are the exact same REF locations on each sheet.


The 'formula' content is the cell reference in each monthly sheet: Jun 18::Calendar::$I$58

I have 4 stats per month X 12 months X 5 years = 240 references to plug into the summary sheet


I want to be able to search and replace on within the formula content only to swap the months out to 'wire' the summary sheet and avoid having to retype the months at 240 times in stead of 12 times?


Number 09' (V 2.3) used to have a nifty drop down called 'In: ' with option to select 'Formulas Only'


It is now gone and only a basic "gear" drop down menu remains with rudimentary 'whole word' and 'match case'. Any ideas how to do this in Number 6 without having to write a script in Script Editor?


Thanks in advance for any insights.




MacBook Pro

Posted on Feb 24, 2020 1:41 PM

Reply

Similar questions

6 replies

Feb 25, 2020 6:38 AM in response to Barry

Not as slick as the original 'Formulas Only' option, but this Find Replace in Formulas Automator Service (Dropbox download) offers the same general functionality using simple AppleScript.


Install by double-clicking the downloaded .workflow package, giving permission if necessary at System Preferences > Security & Privacy and making sure both Numbers and Automator are listed and checked at System Preferences > Security & Privacy > Privacy > Accessibility. This all takes about a minute.


Then, in a copy of your table (always a good idea to try on a copy to make sure it's doing what you want, select cells where to change the formulas and answer the two prompts.


As Barry points out, though, you might want to consider reworking your document so you don't have to change formulas.


SG

Feb 24, 2020 5:10 PM in response to French Artist

It is likely possible to accomplish this using INDIRECT, rather than having to edit using Find/Replace (in an environment where Find/Replace does not currently work).


Your image seems to indicate that a cell behind the displayed formula is the active one. Since this is the cell for Average hours per day for February, 2018, I'm curious as to the names of the Sheet and Table which would contain this information.


Can you provide further information regarding the structure of your document.

How many Sheets?

Names of the Sheets? Individual, and ones that follow a pattern in their naming.

Table names on the sheet(s) from which the 2019 data is to be collected.

A screen shot of one of the data tables, showing the row and column reference tabs would also be useful.


Regards,

Barry



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.

Find and Replace in formulas

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