Solved

Display a Date value by combining General values from other cells in Excel

Posted on 2011-02-14
4
255 Views
Last Modified: 2012-05-11
Hello,

In Excel (2007), suppose that columns A, B and C have a General format and contain values representing month, day, and year respectively.  What formula in column D will combine the A-C values from the corresponding row so that column D will display the full date with the format m/d/yyyy?

For example:

    If A1 = 3, B1 = 16 and C1 = 2006, then D1 = 3/16/2006
    If A2 = 11, B2 = 5 and C2 = 2010, then D2 = 11/5/2010
    If A3 = 7, B3 = 31 and C3 = 2008, then D3 = 7/31/2008
    and so on...

Thanks
0
Comment
Question by:Steve_Brady
  • 2
4 Comments
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 34893371
Just use DATE function, e.g. in D1

=DATE(C1,A1,B1)

the cell format should default to your default date setting - change format as reuierd

regards, barry
0
 

Author Comment

by:Steve_Brady
ID: 34893418
Thanks Barry,

I had a feeling that there was some simple way to do that but I couldn't get it.  I don't know why but I was trying to use =TEXT(value, format_text) with "m/d/yyyy" as the format but I couldn't determine the value.  Is there any way to do it using =TEXT() or is that a dead-end?

Thanks again.
0
 
LVL 50

Expert Comment

by:Dave Brett
ID: 34893437
Dead end

TEXT changes formats of values, whereas DATE actually creates a value

Cheers

Dave
0
 
LVL 50

Expert Comment

by:barry houdini
ID: 34893438
Hi, Steve,

You could use the DATE function inside a TEXT function like this

=TEXT(DATE(C1,A1,B1),"m/d/yyyy")

but your result is then text and not a date....so unless you have a specific reason why you'd want it to be text then it's probably better to keep as a true date, you can format it any way you want.

regards, barry
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
consolidate from multiple folders 5 39
Excel If Statement to return a value 5 21
Hiding column macro 10 28
Google Sheets - Artificial Intelligence 2 6
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…
Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
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…

911 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

20 Experts available now in Live!

Get 1:1 Help Now