Convert value if the date listed within the column is within the month going across the rows

Potbellyyemi

New Member
Joined
Mar 16, 2018
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hello,

In an empty column, I want to be able to multiply the values in column G with the fx rates shown in rows T3 - AD3 if the currency in column F says USD and the invoice date in column D3 is within the months stated across rows T2 - AD3. If the currency in column F says EURO, then the value should bring back the EURO amount in column F rather than converting it.

I basically want to convert the invoice amount to Euro if it is in USD, by the month end rate displayed across rows T - AD, but the rate to use is determined by the invoice date, which must be within the months displayed in rows T2 - AD2. I hope that makes sense.

Does anyone have an idea how to do this using a formula?

Many thanks in advance for any help!

Zuora Revenue Schedule Jan 23.xlsx
DEFGTUVWXYZAAABACADAEAF
2Invoice: Invoice DateInvoice: Invoice NumberAccount: CurrencyInvoice: Amount Without Tax01-Mar-2201-Apr-2201-May-2201-Jun-2201-Jul-2201-Aug-2201-Sep-2201-Oct-2201-Nov-2201-Dec-2201-Jan-23Total YTD
310.9236170.94634240.953880.978971.005380.9801231.0053590.9656240.93280.921982
416/03/2022EUR19.5010.059.45---------19.50
501/04/2022USD94.50-87.28---------87.28
604/04/2022USD94.50-78.558.94--------87.50
711/04/2022EUR39.00-26.0013.00--------39.00
815/04/2022USD39.00-19.2117.22--------36.43
915/04/2022EUR99.00-52.8046.20--------99.00
1016/04/2022EUR19.50-9.759.75--------19.50
1101/05/2022USD94.50--89.43--------89.43
1204/05/2022USD94.50--80.778.73-------89.50
1311/05/2022EUR39.00--26.4012.60-------39.00
1415/05/2022USD39.00--20.2116.83-------37.04
1516/05/2022EUR19.50--10.059.45-------19.50
1601/06/2022USD94.50---90.14-------90.14
1704/06/2022USD94.50---81.139.25------90.38
1811/06/2022EUR39.00---26.0013.00------39.00
1915/06/2022USD39.00---19.8417.82------37.66
2016/06/2022EUR19.50---9.759.75------19.50
2101/07/2022USD94.50----92.51------92.51
2204/07/2022USD94.50----83.569.20-----92.75
2306/07/2022EUR78.40----65.7712.63-----78.40
2411/07/2022EUR39.00----26.4012.60-----39.00
2515/07/2022USD39.00----20.9117.73-----38.65
2616/07/2022EUR19.50----10.059.45-----19.50
2701/08/2022USD94.50-----95.01-----95.01
2804/08/2022USD94.50-----85.818.97----94.78
2906/08/2022EUR78.40-----65.7712.63----78.40
3011/08/2022EUR39.00-----26.4012.60----39.00
3115/08/2022USD39.00-----21.4717.29----38.76
3216/08/2022EUR19.50-----10.059.45----19.50
3301/09/2022USD94.50------92.62----92.62
3404/09/2022USD94.50------83.369.50---92.86
3506/09/2022EUR78.40------65.3513.05---78.40
3611/09/2022EUR39.00------26.0013.00---39.00
3713/09/2022USD94.50------- 92.62----- 92.62
3814/09/2022EUR78.40------44.4433.96---78.40
3914/09/2022EUR31.80------17.9513.85---31.80
4015/09/2022USD39.00------20.3918.30---38.68
4115/09/2022USD39.00------20.3918.30---38.68
4216/09/2022EUR19.50------9.759.75---19.50
4316/09/2022EUR39.00------19.5019.50---39.00
4416/09/2022USD462.40------226.60232.44---459.04
4523/09/2022EUR39.00------10.4028.60---39.00
4627/09/2022EUR752.64------8.2864.4262.4064.2764.17263.54
Sheet1
Cell Formulas
RangeFormula
T4:AD46T4=IF($F4="EUR",H4,H4*T$3)
AE4:AE46AE4=SUM(T4:AD4)
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
How about
Excel Formula:
=G4*(IF(F4="EUR",1,SUMIFS($T$3:$AD$3,$T$2:$AD$2,">"&EOMONTH(D4,-1),$T$2:$AD$2,"<="&EOMONTH(D4,0))))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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