?
Solved

I need an excel formula

Posted on 2014-03-21
4
Medium Priority
?
167 Views
Last Modified: 2014-03-21
See the attached sheet. All I am trying to do is combine two date fields, A1 & B1 into one cell with a dash in between. But when I do, the date returns as a number value.

A5 and A7 shows what I am trying to do with no luck.
Exp-Exch-3-21-14.xlsx
0
Comment
Question by:wrt1mea
[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 35

Accepted Solution

by:
Dan Craciun earned 1600 total points
ID: 39945331
You need to first convert your dates to strings. Put this in C1:
=TEXT(A1,"M/D/YYYY")&" - "&TEXT(B1,"M/D/YYYY")

HTH,
Dan
0
 
LVL 5

Assisted Solution

by:jayakrishnabh
jayakrishnabh earned 400 total points
ID: 39945340
=TEXT(A1,"dd-mm-yyyy-")&TEXT(B1,"dd-mm-yyyy")
0
 
LVL 1

Author Closing Comment

by:wrt1mea
ID: 39945368
PERFECT!
0
 
LVL 35

Expert Comment

by:Dan Craciun
ID: 39945403
Glad I could help!
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
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…

719 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