Forum Discussion
mayabrx
Sep 18, 2023Copper Contributor
Linking table to part of another table that sorts adjacent data
I'm creating a marking sheme for teachers and want to link tables across multiple sheets.
1. The file will have multiple sheets for each test.
eg:
Sheet 1 = Test 1
Sheet 2 = Test 2 etc
There are 11 tests in all so there will be 11 of these sheets.
2. Grades are inputted for 3 different subjects in a sheet by test section, then totalled, a percentage calculated, a weighted percent calculated, then an overall % across all subjects calculated based on the weight.
ISSUE: I want teachers to be able to input their students' names in a table on one sheet and the names link to all other sheets. If the names are sorted in the table, it should be sorted across all sheets, but I'm having issues with the grade data being sorted along with the names.
- ItsBhattiBrass Contributor
Linking one table to a specific part of another table while ensuring adjacent data remains sorted can be achieved through a process known as "cell linking" or "cell referencing." This allows you to connect data from different tables while maintaining the desired order.
Here's how you can do it:
Identify the Source Table: Determine the table containing the data you want to link to another table. This will be your source table.
Select the Target Cell: In the source table, select the specific cell or range of cells that you want to link to the other table.
Copy the Data: Copy the selected data (Ctrl+C on Windows or Command+C on Mac).
Move to the Target Table: Navigate to the location in the target table where you want to insert the linked data.
Paste the Data as a Link: Right-click on the target cell and choose "Paste Special" or "Paste as Link" (the exact option may vary depending on your software). This will paste the data from the source table as a link in the target table.
Verify Data Integrity: Ensure that the adjacent data in the target table remains sorted as desired. The linked data will automatically update if changes are made in the source table.
This method allows you to maintain a connection between the two tables while preserving the sorting order of adjacent data in the target table. It's particularly useful when you need to reference data from one table without disrupting the organization of another table.
- JKPieterseSilver ContributorHow are you pulling in those grades next to the names? (which formula are you using)
- mayabrxCopper Contributor
Hi JKPieterse
Here is a snapshot of what the sheet looks like currently in the snapshot shows an example of a formula used:
- Columns D, E, F, J, K, O, P, Q and R are entered manually. These are the total marks for each section in the tests of the respective subjects
- Totals (i.e. columns G, L and S) are calculated using the SUM function (columns G, L and S)
- Columns H, M and T use a version of the function seen in the snapshot i.e. =IF([@[MathTotal]]="","",([@[MathTotal]]/$G$4)*100)
- Columns I, N and U use a version of this function: =IF([@[M%]]="","",([@[M%]]/$H$4)*$I$4)
- And the overall grade is calculated using the data in columns I, N and U i.e. =IF(OR([@[MW%]]="",[@[ELAW%]]="",[@[CWW%]]=""),"",(([@[MW%]]+[@[ELAW%]]+[@[CWW%]])/2)*100)
- If and OR functions are used so the cell remains blank if there is no data to pull
- JKPieterseSilver Contributor