?
Solved

Excel - Merge date time

Posted on 2011-03-17
10
Medium Priority
?
224 Views
Last Modified: 2012-05-11
How can I merge the date and time into a single cell and have it formatted as mm-dd-yyyy hh:mm:ss? I am attaching the excel spreadsheet. I know that I can use a formula, however I was not able to get it to work. I have not used excel formulas before. CITY-OF-OCALA-11211-1-.xlsx
0
Comment
Question by:qbjgqbjg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
10 Comments
 
LVL 81

Accepted Solution

by:
zorvek (Kevin Jones) earned 2000 total points
ID: 35160108
Add the two together and format as desired.

=B8+C8

See attached.

Kevin
CITY-OF-OCALA-11211-1-.xlsx
0
 

Author Comment

by:qbjgqbjg
ID: 35160142
When I used =B8+C8, I only got the date. Also, how do you format as mm-dd-yyyy hh:mm:ss?
0
 
LVL 81

Assisted Solution

by:zorvek (Kevin Jones)
zorvek (Kevin Jones) earned 2000 total points
ID: 35160172
Adding the two together give you a date time value. It has to be formatted to display the hours, minutes, and seconds. See the formatting in the sample I uploaded. The format is "m/d/yyyy h:mm:ss".

Kevin
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:qbjgqbjg
ID: 35160231
Under the format I selected custom, butI don't see the format that you have. I don't see "m/d/yyyy h:mm:ss". There is "m/d/yyyy h:mm".



0
 
LVL 81

Assisted Solution

by:zorvek (Kevin Jones)
zorvek (Kevin Jones) earned 2000 total points
ID: 35160260
You have to enter it manually. The custom formats that are displayed are previous ones that you entered.

Kevin
0
 

Author Comment

by:qbjgqbjg
ID: 35160280
One more question. Once you have the merged column, can you get rid of the original columns or do they have to stay?
0
 
LVL 81

Assisted Solution

by:zorvek (Kevin Jones)
zorvek (Kevin Jones) earned 2000 total points
ID: 35160311
You can delete the original columns but you first have to copy and paste as values the new column data because it contains a formula referencing the other columns to be deleted.

Kevin
0
 

Author Comment

by:qbjgqbjg
ID: 35160340
How do you paste the values. When I tried it, it copied it as a formula same as the Column I copied from.
0
 
LVL 81

Assisted Solution

by:zorvek (Kevin Jones)
zorvek (Kevin Jones) earned 2000 total points
ID: 35160379
To convert one or more formulas to values in Excel 2003 and earlier, select the cells containing the formulas and press CTRL+C. Choose the menu command Edit->Paste Special, select Values, and click OK. Use the same technique to copy formulas as values to any other range.

In Excel 2007 and later, press CTRL+C, navigate to the Home tab and select "Paste Values" from the "Paste" menu in the "Clipboard" group.

To convert a single cell to a value (replace the formula with the formula result), press F9 instead of Enter when entering the formula.

Kevin
0
 

Author Closing Comment

by:qbjgqbjg
ID: 35160431
Thanks, I appologize for my lack of knowledge, but you gave me exactly what I needed. Thanks again.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question