+ Reply to Thread
Results 1 to 4 of 4

insert revenue or expense based upon date, amount and period

  1. #1
    Registered User
    Join Date
    09-13-2011
    Location
    Brisbane Aust
    MS-Off Ver
    Excel 2003
    Posts
    3

    insert revenue or expense based upon date, amount and period

    Team,

    I need to have excel insert values in monthly sheet based upon start date month, period (say months) and monthly amount. - the values and periods will vary so I cannot just have fixed formula calculation

    on one row lets say expected revenue amount of $1200 over the 18 months(note the amount and the period could vary based on calculations for each row of data) starting Jan 2012

    I would like excel 2010 to make the calulation of $1200/ 12 and then place $100 in a cell under each month Jan to Dec (months will be shown above) until the period is reached.



    Thanks

    Shesez

  2. #2
    Forum Contributor
    Join Date
    11-04-2011
    Location
    pak
    MS-Off Ver
    Excel 2007
    Posts
    132

    Re: insert revenue or expense based upon date, amount and period

    Hello,
    it is not clear Please give an example workbook.

  3. #3
    Registered User
    Join Date
    09-13-2011
    Location
    Brisbane Aust
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: insert revenue or expense based upon date, amount and period

    Hi,

    the first post had an error with the period stated as 18 months and the formula showing divide by 12 instead of 18.

    please see attached example
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: insert revenue or expense based upon date, amount and period

    Hi

    Try this

    Please Login or Register  to view this content.
    Or with formulas:
    D3: =IF(AND(COLUMN()>=MATCH($B3,$2:$2),COLUMN()<=MATCH($B3,$2:$2)+$C3-1),$A3/$C3,"")
    Copy down / across as required.
    rylo
    Last edited by rylo; 01-29-2012 at 08:55 PM. Reason: added formula

  5. #5
    Registered User
    Join Date
    09-13-2011
    Location
    Brisbane Aust
    MS-Off Ver
    Excel 2003
    Posts
    3

    Smile Re: insert revenue or expense based upon date, amount and period

    Guru,

    Thanks! the formula version worked well.

    However I would like to understand how the VBA code version works
    I would appreciate any additional comments so I can understand how the code is working


    Thankyou for your expert assistance!


    Shesez

  6. #6
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: insert revenue or expense based upon date, amount and period

    Hi

    Inserted some commentry above each row of code
    Please Login or Register  to view this content.
    rylo

+ 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