conditional?

Chavira55

Board Regular
Joined
Sep 19, 2002
Messages
65
I want to facilitate data input, on a range of cells I have to put in a beggining time and an end time (i.e. 5 a, 10 a, 11 p etc) I tried several different forms of format but I can not get away from having to input the whole time.... I want to be able to just input 5, 10, 17, 23 etc... any toughts?
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

maxflia10

Well-known Member
Joined
May 20, 2002
Messages
890
Chavira,

Are these times always start on the hour? If they do, just enter 1,2,3.....22,23,24. Sort of half baked military time. Other than that, how would Excel know what time you meant?
 

Chavira55

Board Regular
Joined
Sep 19, 2002
Messages
65
I alrady tried that, and the cell always gives me a 1/xx/1900 1200am for whatever time I put (half baked). the formating on the cell is for time 13:00, I've tried custom but to no avail. Yes they will always be whole hours.
 

RichardS

Well-known Member
Joined
Feb 16, 2002
Messages
761
As you have formatted the cell as a time and date, entering a 1 will give you the first date in the date system, 1 Jan 1900, midnight. 2 will give you 2 Jan 1900 etc. Excel stores dates and times as a fraction of a day.

If they are always going to be whole hours, why not just format as a number?

Richard
 

Chavira55

Board Regular
Joined
Sep 19, 2002
Messages
65
I tried that too, but the formulas that are tied into the input cell call for the time format.
 

Mark W.

MrExcel MVP
Joined
Feb 10, 2002
Messages
11,654
If you're just trying avoid the entry of the minutes consider...

5:
10:
17:
23:
 

Forum statistics

Threads
1,143,614
Messages
5,719,719
Members
422,242
Latest member
hishamkhatri

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top