A time read as 7:30 without its am or pm is ambiguous, and a 12-hour time stored as text cannot be sorted. Checking each time against the source, and then forcing one 24-hour format on the whole column, removes the ambiguity for good.
Prerequisites
- The source document with the times
- The extracted sheet
- A copy of the source file, so the original stays untouched.
Steps
- List every time in the sheet beside the same time as printed in the source document.
- For each time, confirm the hour, the minutes and whether it is morning or afternoon.
- Convert each time to 24-hour format, for example 7:30 pm becomes 19:30, and write the rule on the sheet.
- Set the time column to a 24-hour time format for the whole column.
- Sort the column and confirm the order is chronological.
Worked example: Fictional clinic appointment times
The practice table below is a fictional five-appointment list. The hour column is the 24-hour hour of each appointment, and the total is their sum. The table below is fictional practice material, with fictional values. It is the expected result, worked out by hand, not a run of any tool.
| Patient | Time | Hour |
|---|---|---|
| Amara | 09:00 | 9 |
| Ben | 10:30 | 10 |
| Clara | 13:00 | 13 |
| Dev | 14:30 | 14 |
| Elena | 16:00 | 16 |
| Total | 62 |
Expected result. Five times checked, each matches the source, and the hours add to 62. UNTESTED: no AI extraction was run for this guide; the table shows the expected values a check should produce.
Limits
- A time without am or pm in the source cannot be settled by guessing, so ask the source or the organiser.
- A time stored as text will not sort correctly, so check the cell type as well as the value.
