Day of the month
| A | |
|---|---|
| 1 | Date |
| 2 | 3/9/2024 |
Formula: C2: =DAY(A2)
Result: 9
March 9 gives 9.
DAY with worked examples you can test in the live grid. The argument details are in the Excel guide.
The arguments and common errors are covered in the DAY Excel guide; check the function help in Google Sheets for its own argument list.
| A | |
|---|---|
| 1 | Date |
| 2 | 3/9/2024 |
Formula: C2: =DAY(A2)
Result: 9
March 9 gives 9.
| A | |
|---|---|
| 1 | Date |
| 2 | 3/9/2024 |
Formula: C2: =DAY(EOMONTH(A2,0))-DAY(A2)
Result: 22
March has 31 days; subtract the 9 already used.
| A | |
|---|---|
| 1 | Date |
| 2 | 3/9/2024 |
Formula: C2: =IF(DAY(A2)<=15,"First half","Second half")
Result: First half
Day 9 is not above 15, so the date is in the first half.
A tiny spreadsheet with example data. Edit the formula or any number and see the result.
Formula in F2: =DAY(A2)
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Start | End | Holiday | Time | Result | |
| 2 | 3/15/2026 | 6/20/2026 | 5/1/2026 | 14:45 | 15 | |
| 3 | 1/31/2026 | 2/28/2026 | 5/9/2026 | 09:30 | ||
| 4 | 12/24/2025 | 1/9/2026 |
Google Sheets is used here only as a descriptive product name. FormulaCamp is not affiliated with Google.
Enter — commit · F2 — edit · F4 — $ in a reference · Ctrl+C/Ctrl+V — copy and paste · Ctrl+Z — undo
Esc or F6 — leave the sheet for the «Check» button · Shift+Tab in the first cell — back to the page