Excel Formula to Calculate Values

LauraEdson10

New Member
Joined
Apr 10, 2018
Messages
21
Office Version
  1. 365
Platform
  1. Windows
I have a Excel Document with two tabs. The first tab is a commission log where I calculate the amount of commission payable and the date it was then paid to the person.

I then have a second tab for the statistics so it counts how many orders were generated in a particular month (formula already done for this using COUNTIF) but then I wanted a formula where if a commission payment was made within October 2019 for example, it would add up the total values for that particular month. There could be one payment per month or several. The payment will always be made on 21st of each month.

For example, where payments in a column are 21/10/2019, look up the values in the next column and add them together.

21/10/2019 - £500
21/10/2019 - £250
21/11/2019 - £400

For October 2019, it would only then take 2 payments into consideration and therefore come back with a value of £750.

Hopefully this makes sense?
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Not sure if this will work but, try

=SUMPRODUCT((TEXT(Sheet2!A$1:A$1000,"mmmm yyyy")=A1&" "& B1)*(Sheet2!B$1:B$1000))

where Sheet2 has dates in column A and values in column B
and Sheet1!A1 is a month (October) and B1 is a 4 digit year
 
Upvote 0
If I understand you correctly, this would solve it. Date is column A and amount in column B and reference date is in D1.
Code:
={SUM(IF(A1:A3=D1;B1:B3))}
Make sure to hold down 'Shift' before you press enter when saving the formula. Search 'Array formula' for more information.
 
Upvote 0
I have a Excel Document with two tabs. The first tab is a commission log where I calculate the amount of commission payable and the date it was then paid to the person.

I then have a second tab for the statistics so it counts how many orders were generated in a particular month (formula already done for this using COUNTIF) but then I wanted a formula where if a commission payment was made within October 2019 for example, it would add up the total values for that particular month. There could be one payment per month or several. The payment will always be made on 21st of each month.

For example, where payments in a column are 21/10/2019, look up the values in the next column and add them together.

21/10/2019 - £500
21/10/2019 - £250
21/11/2019 - £400

col Ccol d
dateamount
row 1221/09/2019300
21/10/2019500
21/10/2019250
row 1521/11/2019400
enter date here21/10/2019
amount paid750
formula giving 750 on cell I18
=SUMPRODUCT((C12:C15=$I$16)*(D12:D15))

<colgroup><col span="2"><col><col span="5"><col><col span="2"></colgroup><tbody>
</tbody>

For October 2019, it would only then take 2 payments into consideration and therefore come back with a value of £750.

Hopefully this makes sense?
col Ccol d
dateamount
row 1221/09/2019300
21/10/2019500
21/10/2019250
row 1521/11/2019400
enter date here21/10/2019
amount paid750
formula giving 750 on cell I18
=SUMPRODUCT((C12:C15=$I$16)*(D12:D15))

<colgroup><col span="2"><col><col span="5"><col><col span="2"></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,652
Messages
6,120,747
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top