use cell contents of a formula calculate cell reference

In Apple "Numbers", In order to update a spreadsheet every time values are added, I first need to calculate the number of days between the first date entry and the latest date, using the COUNTA() method. That gives me the row number of the latest entry. To this I "CONCATENATE" a known column letter to a cell reference.


Using this cell reference, I would like to know how I can use the contents of the cell to update the information in the rest of the spreadsheet. Is it possible?


Any help would be much appreciated.

thanks in advance.

iMac, OS X El Capitan (10.11.2), 4Gb memory

Posted on Jun 9, 2016 2:50 PM

Reply
7 replies

Jun 9, 2016 7:55 PM in response to 2Skip2

I suggest posting a screenshot.


there is a function called indirect() which takes a string which you can construct from the content of cells and then uses that string as a reference.


if you know how many cells are in a column and you want the value in the last cell of column C for the table named "Table 1" you can do this:


=indirect("C"&rows(C))


rows(C) returns the number of rows in column C (which would be the same no matter what column you used). I the table had 15 rows, then

C&"rows(C)"

would be

"C15"


indirect("C15") would return the value in cell C15

Jun 10, 2016 7:55 AM in response to 2Skip2

Hi Skip,


It may be possible, but several details will have to be supplied to come up with an answer to "How would it be possible to..."


COUNTA would give you the number of entries in a range of cells. How would tis relate to the "number of days" between the first day entry and the latest date (entry?)?


How would the 'range of cells' be determined?


What are the contents of the (referenced?) cell?


How would this content be used to 'update the information in the rest of the spreadsheet'?


If you want to retrieve the value from a cell in a specific column and the same row as the most recent date entered in another specific column, MATCH and INDEX may be a better pair of functions for this task.

User uploaded file

Cell A2 of Table 2 (the smaller table) contains this formula:

=INDEX(Table 1::A:E,MATCH(MAX(Table 1::A),Table 1::A,0),MATCH("words",Table 1::1:1,0))


While this will not solve your issue, it will provide an initial step—getting the contents of the referenced cell (in this case E13 on Table 1).


What do you need to do with that content?


Regards,

Barry

Jun 10, 2016 11:32 AM in response to SGIII

HI SG,


These examples, with views of the sorted table and with no repeated values in column E may make the differences in results from MATCH and COUNTA more clear.

Small tables contain:

MATCH and MATCH formula from my post above.

MATCH ans fixed column formula from your post above

COUNTA and fixed column formula from your post above


Sorts are done on column A of the larger table.


As entered:

User uploaded file

Sorted ascending

User uploaded file

Sorted descending

User uploaded file

Your use of a fixed column and a one dimension range for INDEX is likely more efficient that the two dimension range and use of MATCH to determine the row and column values of the target cell used in my version.


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.

use cell contents of a formula calculate cell reference

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