SumIfs (I think)

ali_jellybean

New Member
Joined
Jun 7, 2024
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hello,

I think I've overcomplicated what I'm trying to do and confused myself 🙈 so any help would be very welcome.

The organisation runs many projects in various currencies and we sometimes get issues with the project team using the wrong FX rate or using the right rate but the wrong way around. I'm trying to make it simpler for them by having the FX rate auto-populate into the cost logs of the projects.

I have the FX table:
Screenshot 2024-08-15 123844.png


And the project cost log;
Screenshot 2024-08-15 125904.png


And what I want is to have the formula look for the date, transaction currency and grant currency and if it finds them then return the FX rate into the Exchange Rate cell in the cost log to be used in the calculation of the 'Total in Grant Currency'

Is this possible, do I need to change things, or do I need a different way of working this out?

Thanks so much for any guidance
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Hi, here's one way you can try (you'll need to adjust to your actual layout).

Book1
ABCDEFGHIJ
1TransactionEURGBPEURUSDDateTransaction CurrencyGrant CurrenyExchange Rate
2GrantGBPEURUSDEUR220/02/2024GBPEUR0.49864
301/01/20240.376300.801160.624560.6782801/06/2024EURGBP0.33799
401/02/20240.788310.498640.231230.3731730/11/2024USDEUR20.27260
501/03/20240.429500.778770.012030.35369
601/04/20240.798170.640510.157060.24360
701/05/20240.655010.887370.347240.98882
801/06/20240.337990.089630.578870.41945
901/07/20240.900520.504480.956180.61244
1001/08/20240.309690.233210.652610.04405
1101/09/20240.369290.351860.460350.37453
1201/10/20240.918630.721260.172610.69097
1301/11/20240.177940.272420.370410.27260
1401/12/20240.102900.624270.213750.44377
Sheet1
Cell Formulas
RangeFormula
J2:J4J2=INDEX($B$3:$E$14,XMATCH(EOMONTH(G2,-1)+1,$A$3:$A$14),XMATCH(H2&"|"&I2,$B$1:$E$1&"|"&$B$2:$E$2))
A4:A14A4=EDATE(A3,1)
 
Upvote 0
Solution

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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