+ Reply to Thread
Results 1 to 5 of 5

Converting date to day number

  1. #1
    Chris
    Guest

    Converting date to day number

    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

  2. #2
    Ian
    Guest

    Re: Converting date to day number

    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.




  3. #3
    Peo Sjoblom
    Guest

    Re: Converting date to day number

    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" <me@me.com> wrote in message
    news:L4klf.21935$0o2.10073@newsfe3-gui.ntli.net...
    > 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.

    >
    >




  4. #4
    Niek Otten
    Guest

    Re: Converting date to day number

    =Weekday(A1) will return the day of the week, which was my interpretation of
    the question!

    --
    Kind regards,

    Niek Otten

    "Peo Sjoblom" <terre08@mvps.org> wrote in message
    news:uOLVi6o%23FHA.3392@TK2MSFTNGP14.phx.gbl...
    > 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" <me@me.com> wrote in message
    > news:L4klf.21935$0o2.10073@newsfe3-gui.ntli.net...
    >> 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.

    >>
    >>

    >
    >




  5. #5
    Chris
    Guest

    Re: Converting date to day number

    In article <L4klf.21935$0o2.10073@newsfe3-gui.ntli.net>, Ian <me@me.com>
    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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1