Simple clear advice in plain English

Dealing with odd working hours in Excel

Unusual working hours affects spreadsheet data

q-a-logo

Q I need help in sorting data in an Excel spreadsheet where the working day starts at 14:00 and ends at 06:00 the next day.

When I try to sort the data in this order, times between 14:00 and 23:59 appear in the correct sequence in the column but times after midnight 00:00 and 06:00 appear at the top the column and not at the end of the column where I want them to appear at the end of the day. I have to do a manual cut and paste to get around my ignorance.

Neil Tarry

A The simplest answer to this question is to add an extra column to the spreadsheet that includes the date.

Excel can sort by more than one column, so you can sort by the date first and then by the time. We’ll assume that the date is in column B and the time is in Column C. Select the range that you want to sort. Click on the Data menu and then on Sort. Click on Header row if you included the title row in the selection.

Click on the top dropdown menu and either select Column B or Date depending on whether you have a title row. Select Time or Column C in the dropdown menu below and make sure that Ascending is selected by both options. Click OK to sort.

Baffled by jargon? See our free online jargon buster

Article tags

Reader Comments

Excel Times

When I've had this problem in the past I usually enter the time in the early hours with 24 added to it. For example instead of 06:00 I'd enter 30:00. If you format the cells as Custom hh:mm then it displays it as 06:00 but when sorted it comes towards the end of the sorted list. Try doing a simple test using, say 06:00, 30:00, 18:00 & 12:00 in a column and sort it to see if it works.

Posted by Irbydatious, 20 Feb 2010

   

Add your comment

All fields must be completed. Your email address will not be displayed or used to send marketing messages.

All messages will be checked by moderators before appearing on the site.

See our Privacy Policy for more information.

Related articles

Using Wizard to create a form

Create a good Base for your data

Databases may sound very dreary but they are behind almost everything we do. We explain how to go about starting one of your own using Libre Office Base

Speed up your PC illustration

30 tips to help you get your PC back up to its original speed

Software problems may be the cause of a computer running more slowly than it should, but there are some free tools you can try to improve things

Word's undo feature

How to fix common PC errors

It’s easy to hit the wrong key when using a PC and throw yourself into a panic. There's no need to worry - we have easy fixes for 30 common everyday errors

Question & Answer

Q.Why are some of the keys on my keyboard doing strange...

> Read the answer

Q.Is my phone’s Bluetooth any use?

> Read the answer

Q.Can I switch boot drives so that I can work on older...

> Read the answer

Best deals on the web

img

Apple iMac 21.5" (MC309)

£926.40- Buy it now

img

Dell Inspiron 620 ST Intel Core i3-2100 3.10GHz / 3GB / 500GB / DVDRW / Win 7 Home Premium

£329.00- Buy it now

img

ZooStorm 7877-1023

£386.38- Buy it now

Latest issue & subscription deals

Poll

Are you concerned about viruses that target mobile phones?

Jargon Buster

Computing terms explained in plain English

Router

A device used to connect more than one computer or other device to the internet.

Great shopping deals from Computeractive