How Test Cases Work in Excel and Google Sheets Questions
Test cases tell Testlify what to check in a candidate’s spreadsheet. Each test case checks a cell, a range or a sheet. You can score the question as a whole, or give each test case its own score.
Before you start
- You need a Microsoft Excel or Google Sheets question. To create one, see How to create a Microsoft Excel question.
- Google Sheets questions use a link to your template, entered in Google spreadsheet file. Excel questions use an uploaded .xlsx file.
Test case types
Cell
Enter an Identifier such as Sheet1!H2 and the Expected value, for example 340.
Range
Enter an Identifier such as Sheet1!H2:H7.
Sheet
Enter the sheet name, such as Sheet1, and choose whether it should be Available: Yes or No.
Formatting
For cells and ranges, you can also require a Formatting option: Highlight, Wrap, Bold or Border. All input is treated as text. Press Enter in a field for multi-line input.
Add a test case
- In the question form, click Test cases.
- Choose Cell, Range or Sheet.
- Fill in the Identifier and the other fields for that type.
- If you score by test case, set the Correct score and Negative score.
- Click Add test case.

Score each test case separately
- In the question form, click Show options.
- Set Scoring level to Test case level.
- When you add each test case, set its Correct score and Negative score.
With Question level scoring, you set one Maximum score for the whole question instead.
What happens next
When a candidate submits the question, their file is checked against your test cases and scored using the scoring level you chose.
Troubleshooting
I can’t see Correct score and Negative score on a test case
Set Scoring level to Test case level under Show options.
Still need help?
Contact support@testlify.com.