Lookup based on two reference and then FX conversion

sypherecho

New Member
Joined
Oct 22, 2010
Messages
2
To whom it may concern,

I am having a problem for a couple of weeks now wherein I am trying to find the Match of Table C to Table based on CF General and Dates, and then convert them to USD.
I have been using a couple of combination of formulas (Vlookup, SUMIF, Substitute) in the formula bar but I do not know how to do this.



Table 1
CF GeneralCF Specificcurrency1/1/161/2/16
ClientCustomer ASing$100500
ClientCustomer BUSD200400
ClientCustomer CMUR300300
ClientCustomer DSing$300300
VendorCustomer ESing$500200
VendorCustomer FUSD500100

<tbody>
</tbody>


Table B: FX Reference Table
currencyUSD
SGD1.4402
USD1
MUR36.88

<tbody>
</tbody>


Table C: Values should be in USD (Final Result)
CF General2016-01-012016-01-01
Client11,640.0812,216.16
Vendor1,076.08388.04

<tbody>
</tbody>


You can post your answers by replying to my thread or If you know any video tutorial in YouTube that might help me, you can also give me that link by replying to my thread.

Thank you in advance


With Regards,
Lorens Garcia Edic
 
Last edited:

oldbrewer

Board Regular
Joined
Apr 11, 2010
Messages
10,985
Table 1
CF GeneralCF Specificcurrency01/01/201602/01/2016totaltotal usd
ClientCustomer ASing$100500600864.12144.02720.1
ClientCustomer BUSD200400600600200400
ClientCustomer CMUR300300600221281106411064
ClientCustomer DSing$300300600864.12432.06432.06
VendorCustomer ESing$5002007001008.14720.1288.04
VendorCustomer FUSD500100600600500100
Table B: FX Reference Table
currencyUSD
MUR36.88
SGD1.4402
USD1
01/01/201602/01/2016
Table C: Values should be in USD (Final Result)client11840.0812616.16
CF General01/01/201601/01/2016vendor1220.1388.04
Client11,640.0812,216.16
Vendor1,076.08388.04
my figures do not agree with yours
I used helper columns for conversion
then sum product

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

XLearner

Active Member
Joined
Apr 20, 2016
Messages
291
Hi,

Same totals as OldBrewer + your your Currency table should contain Sing$ instead of SGD (or vice-versa) otherwise I don't see how this can work. If you have Excel 2007 or + no helper column needed. Combining SUMPRODUCT and SUMIFS does it.

ABCDEFGH
1CF General
CF Specific
Curr.
01/01/16
01/02/16Curr.
USD
2ClientCust ASing$100500Sing$1,4402
3ClientCust BUSD200400USD1
4ClientCust CMUR300300MUR36,88
5ClientCust DSing$300300
6VendorCust ESing$500200
7VendorCust FUSD500100
8
9CF GENERAL01/01/2016
01/02/2016
10Client11 840,0812 616,16
11Vendor1 220,10388,04

<tbody>
</tbody>

In B10: SUMPRODUCT(SUMIFS(D$2:D$7; $A$2:$A$7;$A10; $C$2:$C$7;$G$2:$G$4); $H$2:$H$4)
copy down for Vendor. Copy right for next Month(s)

Regards
XLearner
 

XLearner

Active Member
Joined
Apr 20, 2016
Messages
291
Since I can't amend my previous post.... In fact in this case Column A doesn't need to be sorted as we don't need the LOOKUP part. In B10:
=SUMPRODUCT( SUMIF($G$2:$G$4;$C$2:$C$7;$H$2:$H$4)* D$2:D$7; --($A$2:$A$7=$A10) ) does it

Apologies for the confusion
Regards
XLearner
 

Forum statistics

Threads
1,081,773
Messages
5,361,207
Members
400,617
Latest member
barron1

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top