Solved

Combine Date field and Time field

Posted on 2013-06-21
4
420 Views
Last Modified: 2013-06-21
I have a column with the date and a column with the time.

How can I combine these two fields into one? When I try I get the attached.
excel2.JPG
0
Comment
Question by:PeterErhard
[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
  • 2
4 Comments
 
LVL 50

Expert Comment

by:barry houdini
ID: 39267300
Don't concatenate, sum, i.e.

=B1+C1

format in required format like dd/mm/yyyy hh:mm:ss AM/PM

regards, barry
0
 

Author Comment

by:PeterErhard
ID: 39267307
Still didn't work unfortunately.
excel1a.JPG
excel1b.JPG
0
 
LVL 39

Accepted Solution

by:
nutsch earned 500 total points
ID: 39267398
If it didn't work, one of your dates / time cells is a text value masquerading as a date. You can run a text to columns to do a mass conversion or you can use this uglier version of the formula:

=if(isnumber(b1),B1,datevalue(b1))+if(isnumber(C1),C1,datevalue(C1))

Thomas
0
 

Author Closing Comment

by:PeterErhard
ID: 39267410
Thanks, that did the trick.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

707 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