formula between sheets

I want to have a formula that goes between sheets. Here is what I need:


I'm keeping track of hours my employees work in Numbers. Every Sunday, I'm going to start a new sheet (and I name each sheet the date of the Sunday. For example the sheets are called "8/16/15" and "8/23/15" and so on). I want to know how many hours I'm "banking" for my budget. Meaning, I've budgeted a certain number of hours I can afford to have my part-time employees work for the year, but sometimes I work, so I don't need an employee to work and thus, "bank" those hours so I can have them work either more later or I can just keep that money.


So, I have the total number of hours my part-time employees work per week in cell J18 in every sheet. Every time that number (in cell J18) is below the number 24, I want to put the number of hours below 24 in a different sheet (called "The Bank") in the corresponding cell (if the part-timer worked 20 hours that week, I want the number 4 to go in the sheet called "The Bank").

In the sheet called "The Bank", column A is the dates of the week (for example: A1 is "8/16/15" and A2 is "8/23/15" and A3 will be "8/30/15") and then I want the number of hours "banked" in B1, B2, B3, and so forth for the corresponding week.

Please let me know if I'm not clear anywhere.

Thanks,

Mark

iMac, OS X Mountain Lion

Posted on Aug 21, 2015 6:43 PM

Reply
23 replies

Aug 21, 2015 7:10 PM in response to marknovom

When you say "sheet" what do you mean? Numbers has documents, and within documents sheets (tabs), and within each sheet it has tables and charts and other objects. Numbers of course can easily reference a table on another sheet. But I have a little trouble understanding what you are trying to do. Can you post a screenshot of what you would like your tables to look like?


Also, have you had a look at the Employee Schedule template (File > New and choose from the Template Chooser)? The templates are good starting point.


SG

Aug 21, 2015 9:51 PM in response to marknovom

Hi marknovom,


I do think there is some confusion between "sheet" and "table". In Numbers a sheet is a canvas that can have multiple tables, text boxes and so on. Having 52 or so sheets in a document would be a little awkward to navigate. Having 52 tables on a sheet, a snap.


So lets say you have a sheet with your weekly tables. The tables are named "8/30/15" and so forth.

User uploaded file

This formula looks in column A for a table name and builds a cell reference using that. You would be looking for J18 not E2.

As long as there is only one table named "8/30/15" in the document, we can build an address without worrying about sheet names. These two tables are on the same sheet for convenience. It could be anywhere in your doc.


Does this work for you?


quinn

Aug 22, 2015 3:57 AM in response to t quinn

OK. Here is some clarification and a couple of screenshots. The first one (that is color-coded) is for the week of 8/23/15. (Confession: because this is for work, I need to use Google Sheets and not Numbers).


I did some modifications to this last night, so the cell I want to reference is no longer J18.

My two part-timers are Bill and Steve. So I want their weekly totals to be added (or subtracted) to the tab "The Bank". When their weekly totals (in cell J16 and J17) are less than 24 hours (each), I want those hours to be added to the second screenshot. As you can see, they will work 20 hours and 18 hours respectively next week which is 10 hours below 48 hours (as I budgeted for two part-time employees at 24 hours per week).


So I want 10 to be inputed in cell B2 of "The Bank" (it's there now in the second screenshot because I wrote it, but I want the formula that would put the 10 there automatically). Obviously, if their total number of hours worked exceeds 48, a negative number would be put in "The Bank".


Please let me know if you need anymore more clarification.




User uploaded file

User uploaded file

Aug 22, 2015 7:41 AM in response to marknovom

Hi marknovom,


It does matter that your question involves Google Sheets. In Numbers you can reference a cell llike this: Sheet::Table::Cell. How do you do it in Google Sheets? What would a direct cell reference look like? I suspect you could use INDIRECT() to build your cell reference similarly to how I did it above.


You might have luck asking on a google forum. Csound1 is our resident "anything but Numbers" troll but I have never heard him suggest Google Sheets. Maybe they are similar enough to something he likes that he could provide a a solution.


quinn

Aug 22, 2015 10:35 AM in response to t quinn

Google Sheets uses the same system as everything else, specifically it uses Excels system, (=sheet>cell) in practice no formula writing is need, select the cell that will contain the result and type an = sign, then select the cell that contains the wanted data and press the enter key.


Or you could just name the cell as Bank the reference =#Bank will then collect data from the Bank cell, wherever it happens to be.


"Anything but Numbers" applies when Numbers can not do what the OP wants, but on the occasions when Numbers can it's fine, but I am happy to see that you still have a need to insult.

Aug 22, 2015 11:10 AM in response to Csound1

Hi Csound1,


You haven't actually answered the poster's question. He needs a formula that will return a value from a sheet referenced in the row. This is simply done in Numbers. "=J18" is not going to reference the various tables he needs to reference. Step up and provide a solution.


"Anything but Numbers" is your constant. Reference your initial response in this thread when a simple INDEX() formula is the Numbers solution. "This will require something other than Numbers though." This is simply untrue. I am calling it how I see it. You are both unreliable and uninformed when it comes to what is possible with Numbers. You must have a reason for posting other than helping the posters on the Numbers forum. I have been unable to come up with a flattering motivation for your posts.


quinn

Aug 22, 2015 11:13 AM in response to Csound1

There has been no trolling here, I think. There is legitimate confusion about what posters mean when they use the word "sheet." Generally I take "sheet" to mean a "tab" in Excel or Google Sheets or Numbers.


There is the added potential for confusion: in Numbers a cell must be in a table on a sheet. In Excel a cell can be directly in a sheet, or in a table in a sheet. (Google Sheets doesn't appear to have tables, so I assume cells are always in a sheet.)


All three (and other spreadsheet programs) can easily reference between sheets (tabs) by just using Csound1's method of typing = and then navigating to and clicking in the source cell. The Numbers table-oriented design introduces a lot of convenience (in essence each column and each row in a table with Header Rows and Header Columns is automatically a named range).


Excel and Google Sheets (and others) can also reference another document (also called a workbook in Excel). Numbers cannot do this. All references must be to cells within the same document (either in tables on the same sheet or in tables on another sheet). This limitation can be inconvenient in some use cases but has the virtue of encouraging organization of one's work so that it is not vulnerable to references being "broken" when a folder structure is changed or files are migrated to a new machine, etc.


SG

Aug 22, 2015 11:56 AM in response to t quinn

t quinn wrote:


Hi Csound1,


You haven't actually answered the poster's question.

"Formula between sheets", although not actually a question that was the OP's subject. The answer (as it often is) Numbers can't do that, my recommendation (also as it often is) don't use Numbers. Feel free to offer workarounds that may or may not match the functionality the OP requested.

Aug 22, 2015 12:45 PM in response to t quinn

t quinn wrote:


Hi SG,


If I am understanding you, then the solution I proposed above would work on google sheets provided they have INDIRECT(). I always assume that Excel has every function that Numbers has. Maybe google has it covered too.


quinn



Hi quinn,


According to this, Google Sheets does indeed have INDIRECT. The example is for reference between different sheets in the same "worksheet" (document).


Csound's latest post, of course, is not based not on fact recognizable to anyone who actually uses Numbers. Just like Excel and Google Sheets, Numbers has convenient reference between sheets. Because of its table-centric design it is more convenient than Excel if one wants to use "named" references. And based on my casual use of Google Sheets, I'd much prefer setting up "inter-sheet" references in Numbers.


I do have some difficulty following exactly what marknovom wants to do, and recommend studying the many templates available for Google Sheets, since that is what he needs to use for work.

SG

Aug 22, 2015 1:20 PM in response to SGIII

Csound's latest post, of course, is not based not on fact recognizable to anyone who actually uses Numbers. Just like Excel and Google Sheets, Numbers has convenient reference between sheets


Then please correct me. How does Numbers handle references between different sheets, how do you add extra sheets to a Numbers file? and then how do you reference a cell in one to receive data from the other?


By sheet I mean a new page containing a table in the same (or another) file. And if in Numbers it has to be on the same sheet (or 'tab' etc) how can that single page/sheet/tab be printed with printing any other data? Can a print area be selected?

Aug 22, 2015 1:52 PM in response to Csound1

Here is a document with two sheets (titled "Sheet 1 " and "Sheet 2")User uploaded file User uploaded file


Each sheet contains two tables titled "Table 1" and "Table 2"


to reference a cell in a table you would use the following form:


=Sheet 1::Table 1::A1


this references cell A1 of table "Table 1" on "Sheet 1"


A range would be:

=Sheet 1::Table 1::A1:B6


the general, canonical form, is

<SHEET>::<TABLE>::<CELL>[:<CELL>]


where the "[ ]" denotes options for ranges

I hope this helps.

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.

formula between sheets

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