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.

Automatic updates/adding of cells in Numbers

Hi guys,


I would like to make a table (later a chart out of it) which would show a specific number (my stock portfolio balance) to a certain date.


For example:

25.12.2021 the balance is 100$

tomorrow Numbers would automatically add 26.12.2021 and copy the “balance” cell’s Fx to a cell next to the new date.


Is there any way how I can create a table which would automatically add dates into one column and copy previous cell’s Fx to second column?


Thanks a lot!


Marek

Posted on Dec 24, 2021 6:43 PM

Reply
Question marked as Top-ranking reply

Posted on Dec 25, 2021 5:14 AM

MarekZel wrote:

automatically add dates into one column and copy previous cell’s Fx to second column?


If you set your table up like this you can get close to what you describe:




The values in row to are entered manually.


The formula in A3, filled down, is:


=A2+1


The formula in B3, filled down, is:


=D2


Now, when you place the cursor in a cell in row 4 and press return the date and balance will fill automatically into the new row.




SG

Similar questions

2 replies
Question marked as Top-ranking reply

Dec 25, 2021 5:14 AM in response to MarekZel

MarekZel wrote:

automatically add dates into one column and copy previous cell’s Fx to second column?


If you set your table up like this you can get close to what you describe:




The values in row to are entered manually.


The formula in A3, filled down, is:


=A2+1


The formula in B3, filled down, is:


=D2


Now, when you place the cursor in a cell in row 4 and press return the date and balance will fill automatically into the new row.




SG

Dec 24, 2021 11:51 PM in response to MarekZel

No, but…


You can make a list of dates in one column and place a formula in the following column that gets the balance value from the cell where it is calculated or retrieved when the date in the cell in the first column matches TODAY's date (or more likely, when it matches the date on which that balance was calculated).


I'm assuming, in the last part of that statement, that you are using the STOCK function to retrieve the 'current' values of the securities in your portfolio, and are aware that the values it retrieves are the previous day's closing prices on each security, the sum of which would be the 'balance' on that day.


The main bar to an 'automatic' operation here is that formulas 'know' only 'now' and have no memory of past conditions. Acquiring the values in hose cells would happen without direct intervention by the user. Keeping those values might require selecting the cell, copying its content, then using Edit (menu)> Paste formula values to remove the formula from that cell and replace it with the last calculated value.


A better process might use an Applescript routine to collect the needed values, sum then, add a new row to the tale for the new date, and insert date and the sum for that date into their respective cells.


Can't give you any specifics on that , but there are a few talented scripters participating in this community who may provide such a solution.


Regards,

Barry


Automatic updates/adding of cells in Numbers

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