Combining dates in formulas

tiinag

New Member
Joined
Jan 12, 2003
Messages
45
Hi,
I'm trying to combine two fields into one by using the "&" or "concatenate" functions. One of the fields is a date and I'm having trouble with maintaining the exact formatting of the date (20061231) Here's the scenario:

Date field comes from a system download as 10/31/06
I pull this date field to another column that converts it to YYYYMMDD format. This would be equivalent to 20061031

Now I need to combine this formatted date field containing with a field that contains a stiring of text (example = S61); I want to get the following result in a separate cell: S61 - 20061031

When I do the formula (a6&" - "&b6) it converts my date from preferred format to 39021 resulting in S61 - 39021

How can I keep the formatting of the date?

As always, your help is much appreciated.
Thank you
Tiina
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

tiinag

New Member
Joined
Jan 12, 2003
Messages
45
Thanks!! It works like a charm!! As always, I'm more than grateful for saving me tons of time with manual workarounds. My company thinks I'm a whiz :) (which I am, but not as good as you guys... hahaha)
 

Forum statistics

Threads
1,136,595
Messages
5,676,707
Members
419,644
Latest member
KeelsM

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
Top