That works well. Now I want to have a column that will calculate total points for each participant. I will have 11 columns with names Points 1, Points 2 etc
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Okay, that's a very common requirement! You want to sum up values from specific, non-contiguous columns.
Here's how you can do it in your ParticipantsTable, assuming you've added a new column named "Total Points".
Let's assume:
Your ParticipantsTable has columns like: Participant Name, Task 1, Points 1, Task 2, Points 2, ..., Task 11, Points 11.
You've added a new column at the end (or wherever you prefer) called "Total Points".
"Points 1" is in column C, "Points 2" is in column E, "Points 3" is in column G, and so on.
Solution 1: Using SUM with FILTER (Modern Excel - Recommended)
This is the most elegant and robust way if your "Points X" columns are clearly identifiable by their headers.
In the first cell of your "Total Points" column (e.g., if "Total Points" is column Z, and your first participant data is in row 2, this would be cell Z2):
@[Task 1]:[Points 11]: This is structured table referencing. The @ symbol means "this row". So, it's selecting all the cells from the "Task 1" column to the "Points 11" column for the current row. This range includes both task completion times and points.
[[#Headers],[Task 1]:[Points 11]]: This part selects the header text for the columns from "Task 1" through "Points 11". So it will be an array like {"Task 1", "Points 1", "Task 2", "Points 2", ...}.
SEARCH("Points", ...):
This searches for the text "Points" within each header from step 2.
If "Points" is found, it returns the starting position (a number).
If "Points" is not found (e.g., in "Task 1"), it returns a #VALUE! error.
ISNUMBER(...):
This checks if the result of SEARCH is a number.
It will return TRUE for headers containing "Points" (like "Points 1", "Points 2").
It will return FALSE for headers not containing "Points" (like "Task 1", "Task 2").
FILTER(Range_to_filter, Condition):
Range_to_filter: This is ParticipantsTable[@[Task 1]:[Points 11]] (the values in the current row for all task and points columns).
Condition: This is ISNUMBER(SEARCH("Points", ...)) (the array of TRUE/FALSE values indicating which columns are "Points" columns).
FILTER returns an array containing only the values from the current row where the corresponding header contained "Points". So, it effectively extracts just the point values for that participant.
SUM(...):
Finally, SUM adds up all the numbers in the array returned by FILTER.
How to use:
Add a new column to your ParticipantsTable and name it "Total Points".
In the first data row of this new column, enter the formula above.
Because you're using an Excel Table, the formula should automatically fill down for all other participants. If not, you can drag the fill handle.
Solution 2: Using SUMPRODUCT (Works in all Excel versions, good if columns are strictly alternating)
If your "Points X" columns are always every other column starting from a known "Points" column, SUMPRODUCT can be used. This is a bit less flexible if the column order isn't perfectly consistent or if headers don't always contain "Points".
Assuming:
C2 is "Points 1", D2 is "Task 2", E2 is "Points 2", F2 is "Task 3", G2 is "Points 3", etc.
So "Points" columns are C, E, G, I, K, M, O, Q, S, U, W (for 11 points columns).
The full range of task and points columns for row 2 is B2:W2.
Given you're on modern Excel, Solution 1 (SUM(FILTER(...))) is the most robust and flexible, as it directly identifies the columns to sum based on their header names. It doesn't rely on a strict alternating pattern.
Choose the one that best fits your comfort level and table structure! The SUM(FILTER(...)) is generally preferred for its clarity and dynamic nature when dealing with Excel Tables.