BeginnerEnvironmentEXCEL+20 XP
Beginner 42: Days between dates
Scenario
You are a data analyst. Environment sheet (column A = test_id, B = river, C = ph, rows 2–5). Subtract an earlier date from a later date to count days.
Question
Write the formula in the editor, press Check my answer, then try changing one small thing.
Your task
- Write the formula in the editor
- Press Check my answer
- Compare with the expected result
ExcelDate maths
Read the simple theory: CellsBeginner · COUNTIF & SUMIF — question 5 of 30
1. Choose your dataset
Pick an industry and a size. Your code and results change to match.
excel editorwater_tests
Snippets
💡 Explain my whole code, line by line (hover any word in the editor for a tip)
🌈 In short — no coding words
📋 Looks at the boxes (cells) on your sheet→✅ Shows you the answer
Altogether: this formula looks at the cells you named and works out one answer.
Start typing to see suggestions. Press Enter to use one. Red marks show the line to fix. Drag a bottom corner horizontally and vertically to resize.
Type your code here ↓
✍️ Tap here to type
Dataset & schema
water_tests
The tiny starter data. Bigger data scrolls.
Fields
| A: test_id | B: river | C: ph |
|---|---|---|
| W1 | Vaal | 7 |
| W2 | Orange | 6 |
| W3 | Vaal | 8 |
| W4 | Tugela | 5 |
Environment sheet only. Header is row 1, data is rows 2–5.
attempts: 0
▶ Output terminal
$ Press “Check my answer” — results appear here.Your next steps
Each item turns green when your answer includes it.
- Starts with =
- Uses Date maths