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

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

337-f3-lp

How to sort lists easily in Word, Excel and Open Office columns

Microsoft Office and Open Office word processing and spreadsheet programs have simple ways of sorting lists of data in tables and spreadsheets

Question & Answer

Q.How do I store musician and other information about...

> Read the answer

Q.Why can't my browser find the website address I typed...

> Read the answer

Q.All updates have been downloaded, so why won't Windows...

> Read the answer

Best deals on the web

img

Apple MacBook Pro (MC724LL/A)

£999.99- Buy it now

img

Sony Vaio VPCF23P1E/B

£679.98- Buy it now

img

Samsung 300E5A-A01DX

£449.99- Buy it now

Great benefits for subscribers!

Most popular articles

Poll

Which is your preferred web browser

Jargon Buster

Computing terms explained in plain English

GIF

Grahics Interchange Format. A type of image file often used on the web, but now largely superseded by...

Great shopping deals from Computeractive