Hi Jeremy,
Nice solution by quinn that showed me how to use the INDIRECT function. Thanks, quinn 🙂.
Just having a play with Numbers, I thought about Sheet names and unique Table names. If a Table has a unique name within a document, Numbers does not require the Sheet name.
A Sheet named Accounts for the Accounts Department (the Sheet name is not important because it is not used in any formulas). Each employee in Accounts has their own unique table.
(I have used 10% for Federal, an imaginary %)
Two Header Rows and one Footer Row.
Another Sheet named Sales for the Sales Department (again the Sheet name is not important).
Summary Sheet (and the Sheet name is not important):
Formula in D2
='Smith, John'::B9
(the Footer Row for Smith, John). No need for a Sheet name as 'Smith, John' is a unique Table in the document.
Formula in D3
='Smith, Jane'::B9
Yes, you have to point and click to get each reference. This is best done with all the Tables on one Sheet. Then Cut the tables and Paste them to the relevant Department Sheet. The formulas will automatically adjust.
Formula in D6
=SUM(D)
Formula in D7
=SUMIF($A,$A7,D)
(the sum of all Wages in the Accounts Department).
Formula in D8
=SUMIF($A,$A8,D)
(the sum of all Wages in the Sales Department).
CheckSum in D9
=D7+D8
Conditional highlighting in red because it does not equal D6
Fill Right to get formulas for Federal.
The Boing! in red (conditional highlighting because it does not equal OK) tells us that Brown, Anne has been listed as Admin, not Sales (as per her personal Table).
Formula in B2 (and Fill Down)
=IF(A2='Smith, John'::B1,"OK","Boing!")
Compares the Department in A2 with the Department in the unique Table 'Smith, John'::B1
OK, else Boing!
Oh well, I had fun playing with this 🙂.
Regards,
Ian