PC Review


Reply
Thread Tools Rate Thread

Converting date to day number

 
 
Chris
Guest
Posts: n/a
 
      6th Dec 2005
I want to have two columns:
the first with date;
the second with the corresponding day number.

How do I do that?

I don't care what the day numbers are - as long as they are sequential.
--
Chris
 
Reply With Quote
 
 
 
 
Ian
Guest
Posts: n/a
 
      6th Dec 2005
Excel already stores dates as sequential numbers. Assuming your date is in
A1, in B1 type =A1 and format as General.

--
Ian
--
"Chris" <nospam@[127.0.0.1]> wrote in message
news:k38EevWZrclDFw4v@[127.0.0.1]...
>I want to have two columns:
> the first with date;
> the second with the corresponding day number.
>
> How do I do that?
>
> I don't care what the day numbers are - as long as they are sequential.
> --
> Chris.



 
Reply With Quote
 
Peo Sjoblom
Guest
Posts: n/a
 
      6th Dec 2005
That would be days since Jan 0 1900, I am not sure the OP wanted that

=DAY(A1)

will return the day of the month

=A1-DATE(2005,1,1)+1

will return the day of the year

format as general

--

Regards,

Peo Sjoblom

"Ian" <(E-Mail Removed)> wrote in message
news:L4klf.21935$(E-Mail Removed)...
> Excel already stores dates as sequential numbers. Assuming your date is in
> A1, in B1 type =A1 and format as General.
>
> --
> Ian
> --
> "Chris" <nospam@[127.0.0.1]> wrote in message
> news:k38EevWZrclDFw4v@[127.0.0.1]...
> >I want to have two columns:
> > the first with date;
> > the second with the corresponding day number.
> >
> > How do I do that?
> >
> > I don't care what the day numbers are - as long as they are sequential.
> > --
> > Chris.

>
>



 
Reply With Quote
 
Niek Otten
Guest
Posts: n/a
 
      6th Dec 2005
=Weekday(A1) will return the day of the week, which was my interpretation of
the question!

--
Kind regards,

Niek Otten

"Peo Sjoblom" <(E-Mail Removed)> wrote in message
news:uOLVi6o%(E-Mail Removed)...
> That would be days since Jan 0 1900, I am not sure the OP wanted that
>
> =DAY(A1)
>
> will return the day of the month
>
> =A1-DATE(2005,1,1)+1
>
> will return the day of the year
>
> format as general
>
> --
>
> Regards,
>
> Peo Sjoblom
>
> "Ian" <(E-Mail Removed)> wrote in message
> news:L4klf.21935$(E-Mail Removed)...
>> Excel already stores dates as sequential numbers. Assuming your date is
>> in
>> A1, in B1 type =A1 and format as General.
>>
>> --
>> Ian
>> --
>> "Chris" <nospam@[127.0.0.1]> wrote in message
>> news:k38EevWZrclDFw4v@[127.0.0.1]...
>> >I want to have two columns:
>> > the first with date;
>> > the second with the corresponding day number.
>> >
>> > How do I do that?
>> >
>> > I don't care what the day numbers are - as long as they are sequential.
>> > --
>> > Chris.

>>
>>

>
>



 
Reply With Quote
 
Chris
Guest
Posts: n/a
 
      6th Dec 2005
In article <L4klf.21935$(E-Mail Removed)>, Ian <(E-Mail Removed)>
writes
>"Chris" <nospam@[127.0.0.1]> wrote in message
>news:k38EevWZrclDFw4v@[127.0.0.1]...


>>I want to have two columns:
>> the first with date;
>> the second with the corresponding day number.
>> How do I do that?
>> I don't care what the day numbers are - as long as they are sequential.


>Excel already stores dates as sequential numbers. Assuming your date is
>in A1, in B1 type =A1 and format as General.


Thanks, Ian - that's exactly what I wanted.
Much obliged.
--
Chris
 
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
Converting a date to number silent.assassin.uk@googlemail.com Microsoft Excel Discussion 3 28th May 2009 09:33 PM
Converting Number to Date billbrandi Microsoft Excel Misc 2 28th Dec 2007 09:25 PM
converting date to number =?Utf-8?B?VG9kZA==?= Microsoft Excel Worksheet Functions 9 3rd Sep 2006 01:33 AM
Converting Number to Date =?Utf-8?B?RG9u?= Microsoft Access Form Coding 3 1st Sep 2006 05:55 PM
Re: Converting number to date Rick Brandt Microsoft Access Queries 3 11th Sep 2003 10:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:34 AM.