ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   DROPDOWN LIST OF TIMES (https://www.excelbanter.com/excel-discussion-misc-queries/96676-dropdown-list-times.html)

nando

DROPDOWN LIST OF TIMES
 
I would like to create a dropdown list containing all of the times throughout
the day. Do I have to enter each time seperated by commas (12:00 am,12:01
am,...) or is there an easier way?

ExcelBanter AI

Answer: DROPDOWN LIST OF TIMES
 
Here's how you can create a dropdown list of times in Microsoft Excel:
  1. Select the cell where you want to create the dropdown list.
  2. Go to the "Data" tab in the Excel ribbon and click on "Data Validation".
  3. In the "Data Validation" dialog box, select "List" from the "Allow" dropdown menu.
  4. In the "Source" field, enter the following formula:
    Formula:

    =TIME(ROW(A1),0,0

  5. Click "OK" to close the dialog box.

This formula will create a list of times in 1-minute intervals from 12:00 AM to 11:59 PM. The ROW(A1) part of the formula generates a series of numbers from 1 to 1440 (the number of minutes in a day), and the TIME function converts those numbers into time values.

Now, when you click on the cell with the dropdown list, you should see a list of times to choose from. You can also copy and paste this dropdown list to other cells in your worksheet.

Gord Dibben

DROPDOWN LIST OF TIMES
 
In A1 enter the current day by hitting CTRL + ;(semi-colon)

Format column A as Custom h:mm AM/PM

In A2 enter =A1+1/1440

Drag/copy down column A.

Note there are 1440 minutes in a day.

Go to DataValidationList and enter the range A1:A1439 and OK

Are you sure you want a list with 1440 entries in it?


Gord Dibben MS Excel MVP


On Wed, 28 Jun 2006 15:50:01 -0700, nando
wrote:

I would like to create a dropdown list containing all of the times throughout
the day. Do I have to enter each time seperated by commas (12:00 am,12:01
am,...) or is there an easier way?



nando

DROPDOWN LIST OF TIMES
 
That worked great now how do I get those times I created to dissapear without
damaging my list?

or can I?

"Gord Dibben" wrote:

In A1 enter the current day by hitting CTRL + ;(semi-colon)

Format column A as Custom h:mm AM/PM

In A2 enter =A1+1/1440

Drag/copy down column A.

Note there are 1440 minutes in a day.

Go to DataValidationList and enter the range A1:A1439 and OK

Are you sure you want a list with 1440 entries in it?


Gord Dibben MS Excel MVP


On Wed, 28 Jun 2006 15:50:01 -0700, nando
wrote:

I would like to create a dropdown list containing all of the times throughout
the day. Do I have to enter each time seperated by commas (12:00 am,12:01
am,...) or is there an easier way?




Gord Dibben

DROPDOWN LIST OF TIMES
 
You have to have the list somewhere on a sheet unless you want to type it
in.....NOT!!!!!!!!!

The easiest method is to place the list on another worksheet so's you don't see
it.

To do this, cut the column of times and paste to Sheet2.

Select A1:A1339 on Sheet2 and InsertNameDefine.

Name it MyList or similar.

Go back to Sheet1 and select a cell.

DataValidationListSource =MyList


Gord

On Wed, 28 Jun 2006 17:35:02 -0700, nando
wrote:

That worked great now how do I get those times I created to dissapear without
damaging my list?

or can I?

"Gord Dibben" wrote:

In A1 enter the current day by hitting CTRL + ;(semi-colon)

Format column A as Custom h:mm AM/PM

In A2 enter =A1+1/1440

Drag/copy down column A.

Note there are 1440 minutes in a day.

Go to DataValidationList and enter the range A1:A1439 and OK

Are you sure you want a list with 1440 entries in it?


Gord Dibben MS Excel MVP


On Wed, 28 Jun 2006 15:50:01 -0700, nando
wrote:

I would like to create a dropdown list containing all of the times throughout
the day. Do I have to enter each time seperated by commas (12:00 am,12:01
am,...) or is there an easier way?




Gord Dibben MS Excel MVP

nando

DROPDOWN LIST OF TIMES
 
Thanks man you're a gentleman and a scholar!!!

"Gord Dibben" wrote:

You have to have the list somewhere on a sheet unless you want to type it
in.....NOT!!!!!!!!!

The easiest method is to place the list on another worksheet so's you don't see
it.

To do this, cut the column of times and paste to Sheet2.

Select A1:A1339 on Sheet2 and InsertNameDefine.

Name it MyList or similar.

Go back to Sheet1 and select a cell.

DataValidationListSource =MyList


Gord

On Wed, 28 Jun 2006 17:35:02 -0700, nando
wrote:

That worked great now how do I get those times I created to dissapear without
damaging my list?

or can I?

"Gord Dibben" wrote:

In A1 enter the current day by hitting CTRL + ;(semi-colon)

Format column A as Custom h:mm AM/PM

In A2 enter =A1+1/1440

Drag/copy down column A.

Note there are 1440 minutes in a day.

Go to DataValidationList and enter the range A1:A1439 and OK

Are you sure you want a list with 1440 entries in it?


Gord Dibben MS Excel MVP


On Wed, 28 Jun 2006 15:50:01 -0700, nando
wrote:

I would like to create a dropdown list containing all of the times throughout
the day. Do I have to enter each time seperated by commas (12:00 am,12:01
am,...) or is there an easier way?



Gord Dibben MS Excel MVP


Gord Dibben

DROPDOWN LIST OF TIMES
 
Thanks for the feedback.

Gord

On Wed, 28 Jun 2006 18:49:01 -0700, nando
wrote:

Thanks man you're a gentleman and a scholar!!!

"Gord Dibben" wrote:

You have to have the list somewhere on a sheet unless you want to type it
in.....NOT!!!!!!!!!

The easiest method is to place the list on another worksheet so's you don't see
it.

To do this, cut the column of times and paste to Sheet2.

Select A1:A1339 on Sheet2 and InsertNameDefine.

Name it MyList or similar.

Go back to Sheet1 and select a cell.

DataValidationListSource =MyList


Gord

On Wed, 28 Jun 2006 17:35:02 -0700, nando
wrote:

That worked great now how do I get those times I created to dissapear without
damaging my list?

or can I?

"Gord Dibben" wrote:

In A1 enter the current day by hitting CTRL + ;(semi-colon)

Format column A as Custom h:mm AM/PM

In A2 enter =A1+1/1440

Drag/copy down column A.

Note there are 1440 minutes in a day.

Go to DataValidationList and enter the range A1:A1439 and OK

Are you sure you want a list with 1440 entries in it?


Gord Dibben MS Excel MVP


On Wed, 28 Jun 2006 15:50:01 -0700, nando
wrote:

I would like to create a dropdown list containing all of the times throughout
the day. Do I have to enter each time seperated by commas (12:00 am,12:01
am,...) or is there an easier way?



Gord Dibben MS Excel MVP


Gord Dibben MS Excel MVP


All times are GMT +1. The time now is 09:50 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com