PC Review


Reply
Thread Tools Rate Thread

Date to Days of the year

 
 
=?Utf-8?B?TWlrZSBTbWl0aCBOQw==?=
Guest
Posts: n/a
 
      6th Jul 2006
I need a serial number generated from a couple of sources. One is a "Unit
Number" column and the other is a "Date Column". I need the date to be
converted from mm/dd/yy in one cell to yy***. *** being the day of the year
that the serial number was created. how can I do this? Thanks.
 
Reply With Quote
 
 
 
 
Ron Rosenfeld
Guest
Posts: n/a
 
      6th Jul 2006
On Thu, 6 Jul 2006 12:45:01 -0700, Mike Smith NC
<(E-Mail Removed)> wrote:

>I need a serial number generated from a couple of sources. One is a "Unit
>Number" column and the other is a "Date Column". I need the date to be
>converted from mm/dd/yy in one cell to yy***. *** being the day of the year
>that the serial number was created. how can I do this? Thanks.


Perhaps:

=UnitNumber &TEXT(Date,"yy")&TEXT(Date-DATE(YEAR(Date),1,0),"000")

although if UnitNumber can have leading zeros, you might want to make it TEXT
also:

=TEXT(UnitNumber,"000") &TEXT(Date,"yy")&TEXT(Date-DATE(YEAR(Date),1,0),"000")

Date = date in the date column

DATE = the worksheet function DATE.

Sorry for the confusion.


--ron
 
Reply With Quote
 
=?Utf-8?B?TWlrZSBTbWl0aCBOQw==?=
Guest
Posts: n/a
 
      6th Jul 2006
Thanks very much. That solved the problem.

"Ron Rosenfeld" wrote:

> On Thu, 6 Jul 2006 12:45:01 -0700, Mike Smith NC
> <(E-Mail Removed)> wrote:
>
> >I need a serial number generated from a couple of sources. One is a "Unit
> >Number" column and the other is a "Date Column". I need the date to be
> >converted from mm/dd/yy in one cell to yy***. *** being the day of the year
> >that the serial number was created. how can I do this? Thanks.

>
> Perhaps:
>
> =UnitNumber &TEXT(Date,"yy")&TEXT(Date-DATE(YEAR(Date),1,0),"000")
>
> although if UnitNumber can have leading zeros, you might want to make it TEXT
> also:
>
> =TEXT(UnitNumber,"000") &TEXT(Date,"yy")&TEXT(Date-DATE(YEAR(Date),1,0),"000")
>
> Date = date in the date column
>
> DATE = the worksheet function DATE.
>
> Sorry for the confusion.
>
>
> --ron
>

 
Reply With Quote
 
Ron Rosenfeld
Guest
Posts: n/a
 
      6th Jul 2006
On Thu, 6 Jul 2006 13:16:03 -0700, Mike Smith NC
<(E-Mail Removed)> wrote:

>Thanks very much. That solved the problem.


You're welcome. Thanks for the feedback.

--ron
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Figure out date from total days in year bijoutery Microsoft Excel Worksheet Functions 2 7th Apr 2009 04:43 PM
Add exactly 1 Year in days to Textbox date Corey .... Microsoft Excel Programming 7 25th Feb 2009 04:01 AM
How to add 35 days for each year starting specific date? Jon Microsoft Access 1 15th Oct 2008 09:19 AM
Date formula resulting in Year, Months & days Ryan_Keys Microsoft Excel Worksheet Functions 3 30th Jun 2008 05:04 PM
Code question date, year days ... Joseph Meehan Microsoft Access 5 2nd Nov 2003 05:38 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:16 AM.