Function Problems

Shift Excel Timestamps by Six Hours While Keeping Related Data

Jason MillerJason Miller Nov 12, 2026 869 views

Question details

Shift timestamps recorded at 10-minute intervals from 6:00 AM–6:00 PM to a 12:00 AM–12:00 PM schedule while preserving the related data in every record.

Shift Excel Timestamps by Six Hours While Keeping Related Data
Product
Microsoft Excel
Device & OS
not provided
Scenario
The timestamp column needs to be moved six hours earlier without separating or altering the data associated with each timestamp row.
Observed behavior
The existing times begin at 6:00 AM and end at 6:00 PM, but the required schedule begins at 12:00 AM and ends at 12:00 PM.
Before you start

Make sure the timestamp cells are real Excel time or date-time values, not text. Because the related data must stay matched to each record, change only the timestamp column and do not sort that column by itself.

Solution 1Recommended

Subtract Six Hours in a Temporary Timestamp Column

Use this method to shift existing time or date-time values six hours earlier while keeping all related row data in place.

Excel stores time as a fraction of one day. Six hours equals 0.25, so subtracting 0.25 changes 6:00 AM to 12:00 AM and 6:00 PM to 12:00 PM.

1
Insert a temporary column

Right-click the column next to the timestamp column, such as column B beside timestamps in column A, and select Insert.

2
Enter the shift formula

In the first temporary cell, such as B2, enter =A2-TIME(6,0,0). You can also use =A2-0.25.

3
Fill the formula down

Select B2 and drag the fill handle down, or double-click the fill handle, to apply the formula to all timestamp records.

4
Replace the original timestamps with values

Copy the adjusted cells in column B, select the first original timestamp cell in column A, then use Home > Paste > Paste Values to replace the original times without moving any related data.

5
Remove the temporary column

Verify that the first and last times are 12:00 AM and 12:00 PM, then right-click the temporary column header and select Delete.

Subtract Six Hours in a Temporary Timestamp Column
Related data stays aligned: Since only the values in the timestamp column are replaced and no rows are moved, the related data remains on the same records.
Work with Excel timestamps in WPS Office

Shift Timestamp Schedules Easily in WPS Spreadsheets

WPS Spreadsheets can adjust time and date-time values with the same familiar formulas used in Excel. Subtract six hours in a helper column, paste the calculated values over the original timestamp column, and keep each row's related data together.

  1. 1. Open the workbook in WPS Spreadsheets: Open the Excel workbook in WPS Office and select the worksheet containing the timestamp column.
  2. 2. Add a helper column: Insert an empty column beside the timestamps by right-clicking a column header and selecting Insert.
  3. 3. Calculate the earlier times: In the first helper cell, enter =A2-TIME(6,0,0), adjusting A2 to match the first timestamp cell.
  4. 4. Fill and paste values: Fill the formula down, copy the helper results, then use Paste Special > Values to replace the original timestamp values.
  5. 5. Delete the helper column: Check the adjusted time range, then delete the temporary helper column when the results are correct.
Use =A2-TIME(6,0,0) to move a timestamp six hours earlier.Keep related values aligned because rows do not need to be sorted or moved.Open, edit, and save Microsoft Excel .xlsx and .xls files.Use familiar spreadsheet formulas, number formats, and Paste Values commands.
microsoft office alternative - wps office

Frequently Asked Questions

What formula changes 6:00 AM to 12:00 AM in Excel?

If the original time is in A2, enter =A2-TIME(6,0,0) in another cell. This subtracts six hours, so 6:00 AM becomes 12:00 AM.

Why should I use a temporary column to shift timestamps?

A temporary column lets you review the adjusted times before replacing the originals. It also leaves every row intact, so related data remains associated with the correct timestamp.

Can I use 0.25 instead of TIME(6,0,0)?

Yes. Excel treats one day as 1, and six hours as 0.25. Use =A2-0.25 to shift a value six hours earlier, or =A2+0.25 to shift it six hours later.

Will subtracting six hours change the date in a date-time cell?

Yes, when the result crosses midnight. For example, subtracting six hours from 3:00 AM on May 10 returns 9:00 PM on May 9. Format the result as a date and time to verify it.