Calculate field by matching 2 criteria in main table with 2 criteria in another table

zdjbel

New Member
Joined
Feb 16, 2021
Messages
9
Office Version
  1. 2016
Platform
  1. Windows
How can I calculate the USD Equivalent of the Amount in Table A with the rate of exchange in Table B which matches the date and currency of the record in Table A. It must be done using a formula, not VBA or macros.

Thank you.

Table A and B.JPG
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Yes, it works like a charm now, thank you sooo much, you saved me hours if not days trying to figure it out if at all.

Respectfully,

zdjbel
 
Upvote 0
ok, so all good then - you are welcome -
FYI - the linked book worked OK - however, we prefer you to use

XL2BB as that stays in the forum , if you remove the dropbox file, then that is lost from the forum, and someone searching would not get the info to help them
 
Upvote 0
Understood, thank you for the instructions.:)

Table A Table B.xlsx
ABCDEFGHIJ
1DateAmountCurrencyUSD EquivalentDateRSDEURCheck
210/4/202158,181.82RSD$ 582.1110/1/2020100.380.8540$ 582.11
310/4/202017,100.00EUR$ 20,065.7110/2/202099.900.8500$ 20,065.71
410/4/202027,395.60RSD$ 274.0910/3/202099.900.8500$ 274.23
510/7/2020$5,000.00USD$ 5,000.0010/4/202099.950.8522$ 5,000.00
610/9/2020141,519.48EUR$ 166,063.6910/5/202099.900.8524$ 166,024.73
710/6/202099.850.8509
810/7/202099.570.8480
910/8/202099.520.8487
1010/9/202099.970.8500
Sheet 1
Cell Formulas
RangeFormula
D2:D6D2=IF(C2="","",IF(C2="USD",B2,IF(C2="RSD",B2/INDEX($G$2:$G$5,MATCH(A2,$F$2:$F$5,1)),IF(C2="EUR",B2/INDEX($H$2:$H$5,MATCH(A2,$F$2:$F$5,1)),""))))
J2J2=B2/G5
J3J3=B3/H5
J4J4=B4/G4
J5J5=D5*1
J6J6=B6/H6
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F2:H10Expression=MOD(ROW(),2)=0textNO
 
Upvote 0
you are welcome
looks like its working now OK
 
Upvote 0

Forum statistics

Threads
1,214,962
Messages
6,122,482
Members
449,088
Latest member
Melvetica

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