New Tool Radar

AI for Data & Spreadsheets

How to Check AI-Extracted Times in 24-Hour Format

Check AI-extracted times against the source and convert them to 24-hour format so morning and afternoon never swap.

Schematic illustration for How to Check AI-Extracted Times in 24-Hour Format: three numbered steps - List times beside the source; Check am and pm per row; Set 24-hour format.

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

  1. List every time in the sheet beside the same time as printed in the source document.
  2. For each time, confirm the hour, the minutes and whether it is morning or afternoon.
  3. Convert each time to 24-hour format, for example 7:30 pm becomes 19:30, and write the rule on the sheet.
  4. Set the time column to a 24-hour time format for the whole column.
  5. 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.

Sources

See all