+ Reply to Thread
Results 1 to 7 of 7

HELP - need to returns the current number of past month this year and ...

  1. #1
    elz64
    Guest

    HELP - need to returns the current number of past month this year and ...

    * it's APRIL - month is 4 but we had 4-1 monthes since Year begun. So.. 3

    * want to have the the fraction of the current month : last day 30, first 1,
    number of day in this month 30-1 +1, gives 30.

    * imagine we are the 6 of Apr. this gives 6/30=0.2
    so month since Jan 1 is 3.2

    HOW to automatize this day by day. I mean if I came back on the worksheet
    in 2 weeks or 3 monthes I want the logics to know this at any time for any
    date. This suppose to be able to determine the current month, then process
    it's number of days, the the fraction, only knowing TODAY ( )


    thank you





  2. #2
    Niek Otten
    Guest

    Re: HELP - need to returns the current number of past month this year and ...

    =MONTH(TODAY())-1+(DAY(TODAY())/DAY(DATE(YEAR(TODAY()),MONTH(TODAY())+1,0)))

    --

    Kind Regards,

    Niek Otten

    Microsoft MVP - Excel

    "elz64" <elz64@hotmail.com> wrote in message
    news:4253ad44$0$12176$626a14ce@news.free.fr...
    >* it's APRIL - month is 4 but we had 4-1 monthes since Year begun. So.. 3
    >
    > * want to have the the fraction of the current month : last day 30, first
    > 1,
    > number of day in this month 30-1 +1, gives 30.
    >
    > * imagine we are the 6 of Apr. this gives 6/30=0.2
    > so month since Jan 1 is 3.2
    >
    > HOW to automatize this day by day. I mean if I came back on the worksheet
    > in 2 weeks or 3 monthes I want the logics to know this at any time for any
    > date. This suppose to be able to determine the current month, then process
    > it's number of days, the the fraction, only knowing TODAY ( )
    >
    >
    > thank you
    >
    >
    >
    >




  3. #3
    elz64
    Guest

    Re: HELP - need to returns the current number of past month this year and ...

    Thanks a lot ( I had to adapt it to French - " ; " instead of "," and to
    translate key words)
    and it's OK




    "Niek Otten" <nicolaus@xs4all.nl> a écrit dans le message de
    news:%23heEL4oOFHA.2288@TK2MSFTNGP10.phx.gbl...
    >

    =MONTH(TODAY())-1+(DAY(TODAY())/DAY(DATE(YEAR(TODAY()),MONTH(TODAY())+1,0)))
    >
    > --
    >
    > Kind Regards,
    >
    > Niek Otten
    >
    > Microsoft MVP - Excel
    >
    > "elz64" <elz64@hotmail.com> wrote in message
    > news:4253ad44$0$12176$626a14ce@news.free.fr...
    > >* it's APRIL - month is 4 but we had 4-1 monthes since Year begun. So.. 3
    > >
    > > * want to have the the fraction of the current month : last day 30,

    first
    > > 1,
    > > number of day in this month 30-1 +1, gives 30.
    > >
    > > * imagine we are the 6 of Apr. this gives 6/30=0.2
    > > so month since Jan 1 is 3.2
    > >
    > > HOW to automatize this day by day. I mean if I came back on the

    worksheet
    > > in 2 weeks or 3 monthes I want the logics to know this at any time for

    any
    > > date. This suppose to be able to determine the current month, then

    process
    > > it's number of days, the the fraction, only knowing TODAY ( )
    > >
    > >
    > > thank you
    > >
    > >
    > >
    > >

    >
    >




  4. #4
    º¼ÖÝÈË
    Guest

    Re: HELP - need to returns the current number of past month this year and ...

    MONTH(A1)+DAY(A1)/DAY(EOMONTH(A1,0))
    "elz64" <elz64@hotmail.com> дÈëÓʼþ
    news:4253ad44$0$12176$626a14ce@news.free.fr...
    > * it's APRIL - month is 4 but we had 4-1 monthes since Year begun. So.. 3
    >
    > * want to have the the fraction of the current month : last day 30, first

    1,
    > number of day in this month 30-1 +1, gives 30.
    >
    > * imagine we are the 6 of Apr. this gives 6/30=0.2
    > so month since Jan 1 is 3.2
    >
    > HOW to automatize this day by day. I mean if I came back on the worksheet
    > in 2 weeks or 3 monthes I want the logics to know this at any time for any
    > date. This suppose to be able to determine the current month, then process
    > it's number of days, the the fraction, only knowing TODAY ( )
    >
    >
    > thank you
    >
    >
    >
    >




  5. #5
    Duke Carey
    Guest

    RE: HELP - need to returns the current number of past month this year

    Check out the YEARFRAC() function, part of the Analysis Toolpack

    "elz64" wrote:

    > * it's APRIL - month is 4 but we had 4-1 monthes since Year begun. So.. 3
    >
    > * want to have the the fraction of the current month : last day 30, first 1,
    > number of day in this month 30-1 +1, gives 30.
    >
    > * imagine we are the 6 of Apr. this gives 6/30=0.2
    > so month since Jan 1 is 3.2
    >
    > HOW to automatize this day by day. I mean if I came back on the worksheet
    > in 2 weeks or 3 monthes I want the logics to know this at any time for any
    > date. This suppose to be able to determine the current month, then process
    > it's number of days, the the fraction, only knowing TODAY ( )
    >
    >
    > thank you
    >
    >
    >
    >
    >


  6. #6
    Ron Rosenfeld
    Guest

    Re: HELP - need to returns the current number of past month this year and ...

    On Wed, 6 Apr 2005 11:35:04 +0200, "elz64" <elz64@hotmail.com> wrote:

    >* it's APRIL - month is 4 but we had 4-1 monthes since Year begun. So.. 3
    >
    >* want to have the the fraction of the current month : last day 30, first 1,
    >number of day in this month 30-1 +1, gives 30.
    >
    >* imagine we are the 6 of Apr. this gives 6/30=0.2
    > so month since Jan 1 is 3.2
    >
    >HOW to automatize this day by day. I mean if I came back on the worksheet
    >in 2 weeks or 3 monthes I want the logics to know this at any time for any
    >date. This suppose to be able to determine the current month, then process
    >it's number of days, the the fraction, only knowing TODAY ( )
    >
    >
    >thank you
    >
    >
    >


    =MONTH(A1)-1+DAY(A1)/(32-DAY(A1-DAY(A1)+32))

    You can substitute TODAY() for A1 in the above formula:

    =MONTH(TODAY())-1+DAY(TODAY())/(32-DAY(TODAY()-DAY(TODAY())+32))


    --ron

  7. #7
    Duke Carey
    Guest

    RE: HELP - need to returns the current number of past month this year

    If you need the month as an integer and the month fraction:

    =MONTH(EOMONTH(TODAY(),-1))+(DAY(TODAY())/DAY(EOMONTH(TODAY(),0)))

    This also requires the Analysis Toolpack


    "elz64" wrote:

    > * it's APRIL - month is 4 but we had 4-1 monthes since Year begun. So.. 3
    >
    > * want to have the the fraction of the current month : last day 30, first 1,
    > number of day in this month 30-1 +1, gives 30.
    >
    > * imagine we are the 6 of Apr. this gives 6/30=0.2
    > so month since Jan 1 is 3.2
    >
    > HOW to automatize this day by day. I mean if I came back on the worksheet
    > in 2 weeks or 3 monthes I want the logics to know this at any time for any
    > date. This suppose to be able to determine the current month, then process
    > it's number of days, the the fraction, only knowing TODAY ( )
    >
    >
    > thank you
    >
    >
    >
    >
    >


+ 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