There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
bios black screen blue screen blue screen of death boot computer connection crash css dell display driver drivers email error firefox firefox 3 hard drive internet internet explorer itunes laptop lcd linux malware monitor network networking outlook outlook 2003 outlook express password printer problem problems ram router security slow software sound sprtcmd.exe trojan usb video virus vista windows windows xp wireless
Business Applications
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Business Applications >
enter 4 digits and have a colon split into 2x2's


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
wirdip's Avatar
Junior Member with 4 posts.
 
Join Date: Jun 2008
Experience: Intermediate
23-Jul-2008, 06:06 PM #1
enter 4 digits and have a colon split into 2x2's
Hi,
I enter huge amounts of data into my spreadsheet (excel 2003) most of the data are times (24 hour clock) which have to be in the following format 12:00. it would speed up my input if I could omit the colon and have excel put it in for me. I have tried all the formatting options and none seem to work, any help would be appreciated.
Also some of the cells turn red if a delivery is more than 60 mins late, I need a simple way of counting these late arrivals. I thought of using countif function.
Regards Alan
Plantsman's Avatar
Senior Member with 210 posts.
 
Join Date: Jan 2008
Experience: Intermediate
23-Jul-2008, 07:21 PM #2
Click on the column that will contain the times e.g. if you are going to enter the times into column F, then click on column F at the top of the spreadsheet. You'll see the entire column become highlighted.
Now select "Format" from Excel's top line menu and select "Cells..." from the list that appears.

The "Format Cells" window will appear on your screen. Make sure the "Number" tab is selected and click "Custom" under the "Category" header.

In the single line entry box under the word "Type"...overtype whatever is in the box (probably the word "General") with: 0":"00

That is: zero Quote colon quote zero zero - with no embedded spaces. This format tells Excel the take the numbers you enter into that cell, treat them as numbers, and insert a colon before the last two digits.

Click "OK" to dismiss the "Format Cells" window.
Now any set of numbers you enter into the column you formatted will be treated as a number not a time. In addition, you can now save a bit of time entering data because you don't have to enter the colon. For example: to enter a time of 21:45, simply enter 2145. When you press Enter or move to another cell, Excel will insert the colon for you.
__________________
Plant something for Earth's sake.
zabusant's Avatar
Computer Specs
Distinguished Member with 2,081 posts.
 
Join Date: Sep 2007
Experience: I win some, I lose some!
23-Jul-2008, 07:45 PM #3
Hi wirdip!

There is no easy way to "work with colors" in excel. You would have to write some VBA code to deal with the problem, which is not really worth it in your case. Since the cells get colored on a condition (when a delivery is 60 minutes late), it is much easier to count that.

So, just insert a =NOW() function in an empty cell in an empty column (don't worry about the date that is also shown, excel is smart enough to deal with it). Then, in another column, substract the two times (lets say you put =NOW() in G1 and the original times are in column A, just select the next free column - H - and write in =$G$1-A1 and copy it downwards. Then you can use the simple countif function and of course you can hide these columns so they don't bother you.

I hope this helps.
Aj_old's Avatar
Computer Specs
Senior Member with 624 posts.
 
Join Date: Sep 2007
Location: Moldova
Experience: Intermediate
24-Jul-2008, 01:57 AM #4
I think you should use 2 columns in first (let say A) you input the time as you wanna and in the second you type this formula that will convert number you typed into time:

Code:
=TIME(LEFT(A2;LEN(A2)-2);(RIGHT(A2;2));0)
in this case in column B you'll have it not only shown as time but also stored as time!only that it will be from 0:00 to 23:59

About counting the number of "delivery is more than 60 mins late" you should use sumproduct function, instead of countif, for this you need in one cell to have current time (depend on the way you chose to store data as number or as time it will differ).

take a look at file I uploaded, in it are 2 option to do what you need!
Attached Files
File Type: xls Book1.xls (15.0 KB, 12 views)
__________________
The BestS
AJ
wirdip's Avatar
Junior Member with 4 posts.
 
Join Date: Jun 2008
Experience: Intermediate
27-Jul-2008, 10:17 AM #5
Thanks for all the help.
Aj_old's Avatar
Computer Specs
Senior Member with 624 posts.
 
Join Date: Sep 2007
Location: Moldova
Experience: Intermediate
28-Jul-2008, 01:14 AM #6
Quote:
Originally Posted by wirdip View Post
Thanks for all the help.
This mean that the problem is solved?
If so please mark the thread as solved!
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 09:29 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.