dates

afdmello

Board Regular
Joined
Oct 19, 2010
Messages
106
I have three columns; each having the date, day and year. How can use a formula to make all three in one cell to represent a date and then drag down the formula for rest.

thank you

Afd
 
Jonmo1 your solution provided a #value error
That is because he assumed different columns from the ones you apparently used. Here is his formula corrected for the columns you are actually using...

=(B1&" "&A1&", "&C1)+0
 
Upvote 0

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Thanks Rick that was perfect. Could you please explain the role of "+0" in the formula
When you concatenate text together (that is what the & symbols are doing), you get a text string back... text has no "value" other than as a collection of individual characters bundled together. That collection can look like a number or date, but Excel won't treat it as a number or date because it is text. However, Excel will go out of its way to try to make text that looks like a number or date** into a real number or date if you try to use it in a mathematical operation. First we wrap the text in parentheses to "bundle" it together (I think this is so the mathematical operation will apply to all of the text rather than the last text in the concatenation) and then perform a mathematical operation that won't change the value the text represents once it is converted. Adding zero to any value doesn't change that value, hence the +0. We could also multiply by one or put two minus signs in front of the left parenthesis (two minus signs is the same as multiplying by minus 1 twice and minus one times minus one equals plus one). So, in addition to the formula I posted, these would work as well...

=(A1&B1&C1)*1

=--(A1&B1&C1)


** In case you are not aware, to Excel, a date is a floating point number with the integer part representing a number of days offset from "date zero" (December 31, 1899) and the decimal part the fraction of a 24-hour day represented by the time.
 
Upvote 0
That is because he assumed different columns from the ones you apparently used.
No I didn't...
I had seen the OP's response to both you and me prior to my posting that statement. The operative word in my statement was "apparently". In my initial response to the OP, I had actually missed that he said Columns B, C and D, so I wrote my formula using the "standard" A1, B1 and C1 to which the OP responded it worked... hence my assumption he apparently used different columns than you did which of course, as it turns out, was different from what the he had actually initially requested.
 
Upvote 0

Forum statistics

Threads
1,224,595
Messages
6,179,799
Members
452,943
Latest member
Newbie4296

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