How to automate copying dynamic data from Table 3 into static rows for each player in Table 'Top Players' using MacOS?

I have Table 3 which gets overwritten every day. Each player has a group of rows that are stacked on top of each other. Gerald, for instance, currently has rows 2 through 51 in Table "Top Players". And tomorrow I want to add a row to Gerald's section would be row 52 and then copy and paste the data from Table 3 into Row 52 as Static data so that row 52 will always have the same values while Table 3 does not. Hopefully that makes sense. And each player needs to have a row added in their section.


Does that make sense? Is that possible with numbers? Does automation in MacOS help with this or not if it can't be done within Numbers. Or something else without having to program something in C or Swift or anything else.




[Re-Titled by Moderator]

Original Title: I need to copy NON-static data EVERY DAY from Table 3 to Table "Top Players" but Gerald currently has rows 2 through 51, Bob from 52 through 70 and so on. And then tomorrow each has one more row with static data.

iMac (2017 – 2020)

Posted on Dec 25, 2025 4:05 PM

Reply
6 replies

Dec 29, 2025 2:36 PM in response to OlsonBW

> so I'm using Numbers which doesn't have a scripting language.


Numbers, at least on MacOS (not iOS) has extensive AppleScript support that can be used to automate a lot of functionality.


I still can't quite visualize what you're dealing with to know for sure, but if it's a matter of capturing some data, extracting the fields, and stuffing them into the spreadsheet, that's more than doable.

Dec 29, 2025 2:32 PM in response to Camelot

It's not a file that I'm importing. I'm actually highlighting and copying data off a website and then pasting it into a table. The data on the website is shown as a table but when I paste it into Numbers it ends up in a vertical column.


However I don't want it vertical, I want it horizontal so I have to use the "transpose" formula "(TRANSPOSE(Table 1::A1:A272)" in another table to transpose the contents from vertical to horizontal but it is all in one row but there are twelve players on each team so all twelve players are now in one row which isn't what I want.


So below the line with TRANSPOSE(Table 1::A1:A272) I have multiple lines where

A2 is "=R$1", B2 is "=S1" and so on across until Q2 is "=AH1"

A3 is "=AI$1" through Q3 is "=AY$1"

...

A16 is "=IV1" through Q16 is "=JL1".


But that's just a list of all the players for the day. And everyday those tables are overwritten with the next days stats even if they don't play a game that day.


So what I have is ANOTHER table 3 (the second table above). Each player's stats for each day need to be copied somewhere that they won't be overwritten. So what had is Table 3 where each player has rows of cells for each of the status for that day.


At the beginning of the year, each player has one row (one day) of stats.

On day 2, if they play or not, the stats for the year of averaged out by the number of games, not the number of years and that is the stats for 2 day on each players 2nd row of stats and so forth.

And that continues with a new row added BETWEEN the END of one players LAST row and the FIRST row of the next player. And when I paste the data into this new row it has to be static so that it doesn't change. This way I have a list for each day of the whole year.


What I'm realizing is that I probably need a separate sheet for each player and each and every day (not each of every game but every day) a new row will be added to the table for each player. But even that can't be automated in Numbers because Numbers has no scripting program like REXX in OS/2 that can be used for every app.


I would compare REXX to DOS commands but REXX is really a scripting/programing language that isn't just for batch files but can be used for any application that runs in OS/2. So a spreadsheet designed for OS/2 could use REXX as a programming language like VisualBasic for Excel except that REXX doesn't TOTALLY SUCK but is something that most average users could understand and really learn and make powerful programming inside an OS/2 spreadsheet.


The only problem is that IBM no longer makes Lotus 1-2-3 for OS/2 or I would be using that. So I'm stuck with Windows (NOT going to happen) or Linux (it's just not my cup of tea) and Libre Office - isn't amazing what you can and CAN NOT do in Libre office, so I'm using Numbers which doesn't have a scripting language.


If REXX could be used as a scripting/programming language for Numbers and other apps on MacOS it could be Apple's super power because it would immediately became magnitudes more powerful than it is now.

Dec 25, 2025 7:45 PM in response to OlsonBW

It is possible to automate lots of things, with enough work. This one might be a lot of work to automate so you might want to try something else.


If


  1. Your top table has dates like the bottom table
  2. The two tables are arranged the same, with the same kind of data (name, date, etc) in the same columns in exact the same order so the first columns of the bottom table are the same as the top table.
  3. And every row in the bottom table has the person's name, versus using merged cells.


Then you will be able to drag the data from the top table to the bottom and get it sorted into place.


After doing those 3 steps, use the Categories feature on the bottom table, categorizing by column A (by the names). Be 100% sure you have a name in every non-empty row or you will end up with a mess doing this.


Hide column A so you don't see the names on each row of the categorized table. You'll see what I mean when you get there.


To copy the data from the top table to the bottom:

  1. Uncategorize the bottom table by clicking "organize" in the toolbar then turning of categories. (Note that column A will be hidden so the names won't be visible. This is ok)
  2. In the top table, select the rows you want to move to the bottom table (click on the first row number then shift-click on the last row number)
  3. Click and hold on one of those row numbers until the rows lift from the table
  4. Drag them to the bottom table and drop them when/where you see a green line appear
  5. Turn categories back on


Dec 26, 2025 1:00 PM in response to OlsonBW

I think it is a bit much to be automated for most, if not all, spreadsheet apps. And it has to be automated (scripted), it cannot be done with formulas.


The more typical way to do this would be to get rid of the upper table and enter the new data at the bottom of the lower table. That way there is no moving and deleting required. Each non-empty row has a name (no merged cells in column A) and every row becomes a "record" in the "database" that can stand alone. You can sort and categorize this table or use formulas in another table to pull data from the table for display some other way.

Dec 29, 2025 11:07 AM in response to Badunit

I 100% agree with Badunit's suggestion here.


You're trying to do all of this in one pass, with the added complication that comes with inserting row between moving blocks of data.


It would be far, far easier, I feel, to just import the data as-is, and use categories or maybe even a pivot table to summarize, organize and sort the data. That way it doesn't matter if Gerald's data is consecutive or interspersed with Bob's, or even if Bob gets imported first. Use Numbers to build the formatted table in the desired order, rather than enforcing that requirement on you.

How to automate copying dynamic data from Table 3 into static rows for each player in Table 'Top Players' using MacOS?

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