Learn Excel - Joining Dates: Podcast #1262

If you like this content, please consider visiting the video on YouTube and subscribe to the MrExcel Channel to show your support!
This video has been published on Oct 8, 2010.
Rick from Alabama sends in today's question: "How can I join two date cells into a single cell?" While Excel initially won't cooperate, Episode #1262 shows the function that you can use to answer this question.
Learn Excel 97-2007 from MrExcel!
maxresdefault.jpg


Transcript of the video:
MrExcel podcast is sponsored by Easy-XL.
Learn Excel from MrExcel podcast, episode 1262 - Joining Dates.
Hey! Welcome back to the MrExcel netcast.
I'm Bill Jelen. Today's question sent in by Rick. Rick is from Alabama.
Rick wanted to join two dates and he was interested in and Excel would not cooperate.
So, he has a start date and an end date.
He wanted to format that nicely.
So, he did =A2& and then in quotes a dash (''-'') ampersand (&) at the other date, and it converts it back to the serial number.
That's how Excel is actually storing the dates.
You know, September 22nd 2010 is forty thousand four hundred forty three days.
Since January 1st 1900, on a windows PC.
Alright so, to solve this we're not going to take A2.
We'll take the TEXT of A2, the text of A2 and then in quotes (" "), we're going to put a custom number format.
For example m/d/yyyy would be one way to do it.
Now close the quotes("), close the parentheses ( ) and then out here instead of B2 - the TEXT of B2, and again m/d/yyyy.
And, we will now have a properly formatted cell with the real dates.
Now, you actually have a lot of control here over exactly how those dates are going to appear.
So, if you wanted to you can spell out the month with four m's (mmmm) d, yyyy or let's see what else you might want to just spell use the month abbreviation so mmm and then d, and just two-digit year(yy) instead of a four-digit year(yyyy).
So, you see! you have some control over how that is going to appear.
Anytime you're joining text with either a date or with currency, you'll probably want to use that text function to control exactly how that item is going to appear.
Okay, hey! I want to thank Rick for sending in the question.
Thank you for stopping by. We will see you next time with another netcast from MrExcel.
 

Forum statistics

Threads
1,214,641
Messages
6,120,685
Members
448,978
Latest member
rrauni

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top