Solved

I need an excel formula

Posted on 2014-03-21
4
162 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
  • 2
4 Comments
 
LVL 34

Accepted Solution

by:
Dan Craciun earned 400 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 100 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 34

Expert Comment

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to read BOM (Byte Order Mark) from csv file. 4 37
Highlighting cells in Excel 9 17
InternetExplorer object in Excel VBA. 4 21
Sum iF  based on a null cell 11 29
Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

895 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now