Closed Thread
Results 1 to 3 of 3

Challenging macro: Cost/frequency/spread

  1. #1
    Registered User
    Join Date
    05-31-2013
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    83

    Wink Challenging macro: Cost/frequency/spread

    I have 4 columns labelled 1st Year, Frequency, Spread and cost.
    then I have columns spanning upto 30. I need a formula/function/macro that depending on what I type in the first 4 columns it will populate the remaining 30 columns with either cost or 0.

    example: if I had £9,000 at a frequency of 10, starting on the 5th year with a spread of 3.
    The cost represents the cost of each frequent. so in the example I would get £3,000 on years 5,6,7,15,16,17,25,26,27

    I currently have =IF($K:$K>0,IF(OR($8:$8=$J:$J,MOD($8:$8-$J:$J,$K:$K)=0),$L:$L,0),0)

    where K is frequency, 8:8 is year, J is cost

    its the spread that I cant figure out!

    Thank you in advance I hope this has made sense!!

    James

  2. #2
    Forum Contributor
    Join Date
    01-30-2013
    Location
    Wales
    MS-Off Ver
    Excel 2013
    Posts
    231

    Re: Challenging macro: Cost/frequency/spread

    oops, you've duplicate this post, someone is going to tell you off!!

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Challenging macro: Cost/frequency/spread

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

Closed Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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