A Microsoft Excel forum. ExcelBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » ExcelBanter forum » Excel Newsgroups » Excel Discussion (Misc queries)
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

need to convert microsoft date to yyyymmdd



 
 
Thread Tools Display Modes
  #1  
Old March 18th 10, 10:27 PM posted to microsoft.public.excel.misc
pm
external usenet poster
 
Posts: 122
Default need to convert microsoft date to yyyymmdd

I have a file in which I concatenate two fields, the vendor and the date.

it shows as 40255-3042
I would like 20100318-3042

Here's my formula: =concatenate(O2,"-",B2)

Can anyone help me format the date field I am picking up in column O2?
Ads
  #2  
Old March 18th 10, 10:34 PM posted to microsoft.public.excel.misc
Dave Peterson
external usenet poster
 
Posts: 35,220
Default need to convert microsoft date to yyyymmdd

=text(o2,"yyyymmdd")&"-"&b2
or maybe...
=text(o2,"yyyymmdd")&"-"&text(b2,"0000")

To make sure that that vendor is 4 digits, too.

pm wrote:
>
> I have a file in which I concatenate two fields, the vendor and the date.
>
> it shows as 40255-3042
> I would like 20100318-3042
>
> Here's my formula: =concatenate(O2,"-",B2)
>
> Can anyone help me format the date field I am picking up in column O2?


--

Dave Peterson
  #3  
Old March 19th 10, 01:53 PM posted to microsoft.public.excel.misc
pm
external usenet poster
 
Posts: 122
Default need to convert microsoft date to yyyymmdd

That works excellent, thanks! I tried using the text function too, but
couldn't get it to work. Thanks again for your help!

"Dave Peterson" wrote:

> =text(o2,"yyyymmdd")&"-"&b2
> or maybe...
> =text(o2,"yyyymmdd")&"-"&text(b2,"0000")
>
> To make sure that that vendor is 4 digits, too.
>
> pm wrote:
> >
> > I have a file in which I concatenate two fields, the vendor and the date.
> >
> > it shows as 40255-3042
> > I would like 20100318-3042
> >
> > Here's my formula: =concatenate(O2,"-",B2)
> >
> > Can anyone help me format the date field I am picking up in column O2?

>
> --
>
> Dave Peterson
> .
>

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I convert date format yyyymmdd to mm/dd/yyyy Datahead Excel Worksheet Functions 2 February 10th 10 04:14 PM
Change date from yyyymmdd to valid date format denilynn Excel Discussion (Misc queries) 4 September 2nd 09 07:19 PM
How do I change date yyyymmdd to a Excel-supported date format? dan Excel Worksheet Functions 4 July 6th 08 11:05 PM
convert date (YYYYMMDD) to weeknumber mark paul Excel Worksheet Functions 1 February 27th 07 12:05 PM
How do I convert 'YYYYMMDD to an age in Excel? BearlyCat New Users to Excel 3 January 14th 07 09:36 PM


All times are GMT +1. The time now is 08:54 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 2004-2014 ExcelBanter.
The comments are property of their posters.