close

I have a workbook with two sheets. Sheet 1 looks as follows:

A B
1 Date
2 MTD Revenue

Sheet 2 will have two columns of data. Column A will contain individual
dates begining with 1/1/2006 in row 1 and ending with 12/31/2006 in Row 365.
In column B will be the daily revenue for each of those days.

In cell B1 on Sheet 1 I want the user to be able to enter a date and in cell
B2 I want a formula that will calculate the month to date revenue up to that
date. In somes cases the formula will be adding just one row and in others it
may be adding up to 31 rows.
Hi,

Enter this formula in cell B2:

=SUMIF(Sheet2!A:A,quot;lt;=quot;amp;Sheet1!B1,Sheet2!B:B)

Where Sheet 2 column A is where you have the dates and Sheet 2 column B
is where you have the revenue.

Regards

Govind.

Mike wrote:
gt; I have a workbook with two sheets. Sheet 1 looks as follows:
gt;
gt; A B
gt; 1 Date
gt; 2 MTD Revenue
gt;
gt; Sheet 2 will have two columns of data. Column A will contain individual
gt; dates begining with 1/1/2006 in row 1 and ending with 12/31/2006 in Row 365.
gt; In column B will be the daily revenue for each of those days.
gt;
gt; In cell B1 on Sheet 1 I want the user to be able to enter a date and in cell
gt; B2 I want a formula that will calculate the month to date revenue up to that
gt; date. In somes cases the formula will be adding just one row and in others it
gt; may be adding up to 31 rows.
gt;
gt;

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()