+ Reply to Thread
Results 1 to 2 of 2

Thread: Date Problem

  1. #1
    mita
    Guest

    Date Problem

    Hi
    I have got 3 coloumns in a worksheet : start date,end tate and number of units
    I have to create a formula in such a way that if start date is for example
    25oct and end date is 4rth nov, no of units should be distributed on the
    prorata basis,as in some in the month of oct and the rest in nov
    i started by creating 12 different cols for months like jan,feb,mar so
    on.....but i dont know how to create this formula....
    Pls help as this prob is really crucial for my job


    thanks

  2. #2
    Valued Forum Contributor
    Join Date
    01-18-2005
    Location
    Auckland New Zealand
    MS-Off Ver
    Office Professional 2007
    Posts
    291
    If A1 contains: 25/10/05
    B1: 04/11/05

    Then in A2 type =DATE(YEAR(A1),MONTH(A1)+1,0)-A1+1
    (answer 7)

    and in B2: =B1-DATE(YEAR(A1),MONTH(A1)+1,0)+1
    (answer 5)

    You can then use 7 and 5 to pro-rata your variable. (7/12ths and 5/12ths)

    This only works if the dates are in adjacent months.

    Hope this helps
    Mike
    Last edited by Mikeopolo; 05-30-2006 at 11:11 PM.

+ 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.2.0