Sumif/Sumproduct

JRenn

New Member
Joined
Nov 3, 2017
Messages
8
Hi
On Sheet 1, I have rows of data as follows:
Column A: Name of client
Column B: Amount (value) in original currency
Column C: Currency
Column D: Transaction Date
Column E: Settlement Date

The Name of the client may appear on multiple rows and may have different currencies.

On Sheet 2, I have a currency table with the currency exchange rates to convert to USD as follows:
Column A: Currency (i.e. USD, GBP, CAD etc)
Column B: The exchange rate

What I am attempting to do is to sum the converted values for each particular client in 1 step.

Taking it 1 step further, I would like the same sum within time buckets i.e. if the difference between the two dates falls within 30, 60 and 90 days etc?

Thanks for you assistance.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
try this


Excel 2013/2016
ABCDEFGH
1NameAmountCurrencyTransaction DateSettlement DateCurrencyexchange rate
2Name520GBP27/07/201705/10/2017USD1
3Name330GBP01/08/201730/09/2017GBP1.35
4Name210USD08/08/201706/11/2017CAD0.8
5Name250CAD31/07/201720/08/2017
6Name210CAD01/08/201720/09/2017
7Name320GBP26/07/201714/09/2017
8Name230CAD30/07/201719/08/2017
9Name150GBP08/08/201717/10/2017
10Name510USD13/08/201722/09/2017
11Name150CAD22/08/201701/10/2017
Sheet1



Excel 2013/2016
JKL
1NameUSDPeriod
2Name27260
3Name367.590
Sheet1
Cell Formulas
RangeFormula
K2=SUMPRODUCT(($A$2:$A$11=$J2)*(($E$2:$E$11-$D$2:$D$11)<=$L2),SUMIF($G$2:$G$4,$C$2:$C$11,$H$2:$H$4),$B$2:$B$11)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,997
Messages
6,175,871
Members
452,679
Latest member
darryl47nopra

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