SUMIF, VLOOKUP (for currency conversion on various months)

mikewray

New Member
Joined
Apr 23, 2004
Messages
36
Frustrated and cannot get this, no matter which way I try. What formula will give me the EUR amounts for any given month (from cell B3)? See table below...

I dont want to create any more columns etc, I know the long way round...I am looking for an elegant solution. Is sumif, vlookup possible to combine or do I have to use sumif, index, match which I dont really understand. Problem illustrated below, first part is what I want and below is the source data (balances per month in base currency and xchange rate table):
CFFC 0403 v1.xls
ABCDE
1ReportReqd
2
3Formonth29-Feb-04
4
5CategoryEUR
6Bankformula?
7Propertyformula?
8Fundsformula?
9
10Data
11CompanyCategoryCurrency29-Feb-0431-Mar-04
12FPGBankGBP18,87310,255
13CIOBankGBP34,74816,348
14YTRBankUSD2,654(6,029)
15FPGBankGBP2,2327,033
16CIOBankEUR47,28618,886
17YTRBankGBP13,75114,237
18FPGPropertyUSD350,000350,000
19FPGFundsEUR29,43531,234
20FPGPropertyUSD98,858102,345
21YTRFundsGBP120,293138,907
22
23XCRates
24DateCurrRate
2529-Feb-04EUR1.0000
2629-Feb-04GBP0.6686
2729-Feb-04USD1.2493
2831-Mar-04EUR1.0000
2931-Mar-04GBP0.6814
3031-Mar-04USD1.3124
for mr excel
 
Re: SUMIF, VLOOKUP (for currency conversion on various month

mikewray said:
...The lookup bit could be simplified (?) if I created a key in the exchange rate table that concatanates the currency and the rate...

The rate is needed separately. Concatenation would thwart that need.
 
Upvote 0

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Re: SUMIF, VLOOKUP (for currency conversion on various month

Ok, I am the first to admit that I am being an idiot here and it is with some embarassement that I write this. I got help a little while ago on this question

I have used it plenty and modified it sum for various applications. However, one modification I cannot seem to get (and I have sweated in vein) --> if a date column is created in the data table (say column A) and the corresponding values shown in a single column (say column D which is Feb at the moment), how do I get the same result as the last formula. Aladin are you there? Somebody please help and put me out my misery.

:oops:
 
Upvote 0
what formula are you using? did you edit the last one Aladin gave you at all?
 
Upvote 0
Re: SUMIF, VLOOKUP (for currency conversion on various month

For simplicity, use the one Aladin did as a basis, it works...

=SUMPRODUCT(--($B$12:$B$21=$A6),INDEX($D$12:$E$21,0,MATCH(B$3,$D$11:$E$11,0)),LOOKUP($C$12:$C$21,INDEX($B$25:$B$30,MATCH($B$3,$A$25:$A$30,0)):INDEX($C$25:$C$30,MATCH($B$3,$A$25:$A$30,1))))

Only difference I want is instead of the dates being horizontal in row 11, I want the dates in a single column (say column A) and the corresponding values in a single column (say column D).

Tx for the quick response...
 
Upvote 0
Re: SUMIF, VLOOKUP (for currency conversion on various month

mikewray said:
...I got help a little while ago on this question

I have used it plenty and modified it sum for various applications. However, one modification I cannot seem to get (and I have sweated in vein) --> if a date column is created in the data table (say column A) and the corresponding values shown in a single column (say column D which is Feb at the moment), how do I get the same result as the last formula...

Did you change the lay-out to which you want to adapt the formula or is it something else?
 
Upvote 0
Re: SUMIF, VLOOKUP (for currency conversion on various month

Yes, the data sheet in real life example has changed. We getting a ledger feed which has the date in a column (not a row) and the corresponding value in another single column - but basically the same information. Just re-arranged. Of course there will now be repeated dates (whereas in the last each date was unique).

Do you want me to up the example up reflecting this...or will the previous suffice?
 
Upvote 0
Re: SUMIF, VLOOKUP (for currency conversion on various month

mikewray said:
Yes, the data sheet in real life example has changed. We getting a ledger feed which has the date in a column (not a row) and the corresponding value in another single column - but basically the same information. Just re-arranged. Of course there will now be repeated dates (whereas in the last each date was unique).

Do you want me to up the example up reflecting this...or will the previous suffice?

Would be easier to have the example in the new layout?
 
Upvote 0
Re: SUMIF, VLOOKUP (for currency conversion on various month

will do tomorrow first thing...I got to go to bed....

thanks...
 
Upvote 0
Re: SUMIF, VLOOKUP (for currency conversion on various month

Right, I have made it like the real thing (may as well). The problem is as follows and what I am after is defined (with some notes below).
Mr excel board question.xls
ABCDEFGH
1DATA
2AcctDateCmpyCategoryCurrDescriptionAmountAssign
31029-Feb-04BALCashGBPOpeningbal29/2/0418,873BS
41015-Mar-04BALCashGBPPymtOMCinvoices(332)IS
51031-Mar-04BALCashGBPBankcharges(22)IS
62015-Mar-04BALCashUSDPymtLARinvoice021/2004(8,382)IS
72031-Mar-04BALCashUSDInterest1Q04119IS
83024-Feb-04HFCEquityGBPOpeningbal29/2/0434,748BS
93025-Feb-04HFCEquityGBPDividends332IS
103029-Feb-04HFCEquityGBPPurchases(2,220)BS
114029-Feb-04BALCashUSDOpeningbal29/2/0418,873BS
12
13XchangeratestoEUR
14PeriodCurrRate
1529-Feb-04GBP1.5200
1629-Feb-04USD0.8004
1731-Mar-04GBP1.4900
1831-Mar-04USD0.8200
19
20REQUIREMENTS
21Required1Required2
22Enterdate31-Mar-04Enterdate29-Feb-04
23EnterCategoryCashEnterCategoryEquity
24BalinEUR?ISmvmt(EUR)formonth?
25Correctans36,292Correctans505
Sheet1

Notes:
You get a closing balance by adding all the transactions up to (and including) the relevant date,

Note transaction dates dont necessarily fall at month end (I could modify the source data but that would take time).

Requirement 1: Closing Balance in EUR of each category i.e. calculated closing balance of category (sum of transactions to date) x report date (C22) xchange rate (for each currency)

Requirement 2: IS (income statement) movement for the month on a category in EUR i.e. sum of transactions on a category x month end xchange rate

I have put in control answers (I calculated manually) so you have a guide.

Would like a single formula for each requirement without edits to the data or more columns but if these are required then c'est la vie, would like them minimised.

I really want to understand this so I can use it myself and not waste your time. I thought I had it worked out but clearly I dont. Sorry...but thank you.
 
Upvote 0
Re: SUMIF, VLOOKUP (for currency conversion on various month

mikewray said:
...Requirement 1: Closing Balance in EUR of each category i.e. calculated closing balance of category (sum of transactions to date) x report date (C22) xchange rate (for each currency)

I get: 36293.51

Requirement 2: IS (income statement) movement for the month on a category in EUR i.e. sum of transactions on a category x month end xchange rate

Does this require a different formula from the one for Requirement 1? If not, is your control figure correct?
 
Upvote 0

Forum statistics

Threads
1,216,077
Messages
6,128,679
Members
449,463
Latest member
Jojomen56

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