Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Hopefully the formatting of the answer is sufficient enough to answer your question.</p> <p>You will also need to know what the start date is of payments for each person. That way you don't have to worry too much about doing lookups, range offsets, macros or user defined functions. Assuming the following headings are on the first row</p> <pre><code>A B C D E F G Name Start Date Jan-11 Feb-11 Total Paid #Payment Months Total Owed </code></pre> <p>Your formula and values for the second row would then look like the following (Column and Row number provided):</p> <pre><code>A2: Bob B2: Jan-2011 C2: 5 D2: E2: =SUM(C2:D2) F2: =ABS(IF(DAY(B2)&gt;=DAY(TODAY()),0,-1)+(YEAR(B2)-YEAR(TODAY())) *12+MONTH(B2)-MONTH(TODAY())) G2: = (F5 * 5) - E5 </code></pre> <p>The F2 formula is based off <a href="http://support.microsoft.com/kb/214134" rel="nofollow">this article</a> to calculate the number of months elapsed from your start date. There are most likely other ways to do this but this just illustrates the point.</p> <p>We can then multiply the number of months which have elapsed from the start date with the monthly rate and subtract the result from the total amount paid to date (G2).</p> <p>The above should give the answer of Owed = 10. March would be included in the calculation even though it wasn't listed. Simply insert the columns for the months as needed and ensure the formula in E2 covers all the required cells. You can also replace the Today() function call in the F2 cell to point to another date if that suites your needs better. Also it would make sense to replace the magic number 5 in the G2 formula with some sort of constant such as MONTHLY_RATE perhaps.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload