Looking for the right formula

Adimm

New Member
Joined
Jul 31, 2018
Messages
4
I have created a budget file with multiple sheets, each sheet has rows by category and columns for each month.
The expenses I wish to track can be in one of the following currencies: $, €, ₪, I would like to enter the cost is the currency I have paid at, let's say € so could always know the original currency. now when I sum the columns I wish to multiply each relevant amount with its rate so the sum of the column will be in $ (the currency I manage my budget). I have a table of rates on the last sheet.
I have looked and looked and couldn't find the right formula to give me the desired result.
here is the table:
ABCD
4Jan-18Feb-18Mar-18
5 BudgetActualBudgetActualBudgetActual
6SOFTWARE
7Design/photo editing (e.g. Photoshop, Illustrator, InDesign) € 10.00 € - 0.000.000.000.00
8Adobe license (Creative directore) ₪ 70.00 ₪ 70.00 ₪ 70.00 ₪ 70.00 ₪ 70.00 ₪ 70.00
9Animation (e.g. After Effects) $ 10.00 $ - 0.000.000.000.00
10Wireframing (e.g. Balsamiq)0.000.000.000.000.000.00
11Prototyping (e.g. InVision)0.000.000.000.000.000.00
12Project management (e.g. Basecamp)0.000.000.000.000.000.00
13HARDWARE
14Graphics-optimized computer (e.g. MacBook Pro)0.000.000.000.000.000.00
15HD display0.000.000.000.000.000.00
16SD cards/external hard drives0.000.000.000.000.000.00
17EQUIPMENT RENTALS / PURCHASES
18Camera0.000.000.000.000.000.00
19Tripod0.000.000.000.000.000.00
20Microphone0.000.000.000.000.000.00
21Lighting0.000.000.000.000.000.00
22TOTAL $ 90.00 $ 70.00 $ 70.00 $ 70.00 $ 70.00 $ 70.00

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

Total (line 19) formula is =SUM(B7:B12,B14:B16,B18:B21)
ABCDE
1FromtodateExchange rate
2EURUSD29/07/20181.17
3ILSUSD29/07/20180.273

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>

So the sum i want to calulate:
B7 identifies it is in euro and multiply by the right rate on E2 (another sheet)+B8 identifies it is in shekel and multiply by the right rate on E3+B9 identifies it is Doller so no need to do anything.

I'm using excel 2016

I hope it is clear and that someone here can help me,
Thanks in advance
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
You can identify currency using CELL("format",B7)

My Excel says
",2" is dollars
"C2" is pounds
However it also says "C2" is schekel (ILS - i cant find schekel symbol)

So CELL("format",B7) may not work for all currencies.

I would reformat the table and have a separate column to indicate what the currency is.
You can then use VLOOKUP to find the currency in the second table and multiply by the required rate.

NOTE: If you include $ in the rate table with Exchange rate 1.00 you can have one simple formula that looks up any rate, regardless of currency.
 
Last edited:
Upvote 0
Thank, I was hoping for an easier solution as adding columns mean adding 24 columns for each sheet of the budget.

What do you mean by "NOTE: If you include $ in the rate table with Exchange rate 1.00 you can have one simple formula that looks up any rate, regardless of currency." how?
 
Upvote 0
1. IDENTIFYING CURRENCY

I don't see how you're gonna distinguish currency from a cell unless you add columns or can read the format of the cell.
As stated earlier some currencies produce the same cell format.
If you're just working with schekel and $ and euros you might be ok. You'll need to test the formats of the cell for the different currencies you're using.
Bear in mind it may work now but if you plan to add currencies in the future you may run into problems.


2. RE - ADDING $ TO CURRENCY TABLE

If the currency is a $ then the value stays the same as you said earlier "no need to do anything"

This means you first need to check if the currency is a dollar, if not then perform some form of VLOOK/INDEX-MATCh to get the currency.
So you need to say something like "IF(currency<>dollar, VLOOKUP..." something like that.
However, if you add the $ to the currency table with an exchange rate of 1.00 you can simply perform the VLOOKUP/INDEX-MATCH against the table irrespective of what the currency is thereby removing the need for checking if the currency is a dollar or not.
Admittedly for dollars you're multiplying a value by 1 which doesn't change anything but it does allow you to remove the IF condition.

Assume A1 is a currency symbol, $ £ etc and B1 is a value.
You could either say

B1*IF(A1<>"$",VLOOKUP...,1) requiring an IF condtion

or

if you add the $ and 1.00 to the exchange rate table it's simply

B1*VLOOKUP(...)

regardless of the currency
 
Last edited:
Upvote 0
Great, I went for your second solution, added $ = 1.00 in the exchange rate table and used the Vlookup, it worked great.
Now how do I sum it all? do I need to create now formula manually for each one of the cells same I started doing below?
=C7*VLOOKUP(B7, 'Exchange rate'!A:E, 5, 0)+C8*VLOOKUP(B8, 'Exchange rate'!A:E, 5, 0)+C9*VLOOKUP(B9, 'Exchange rate'!A:E, 5, 0)

Tx,
Adi
 
Upvote 0
Try this

=SUMPRODUCT(VLOOKUP(INDEX($B7:$B9,N(IF(1,ROW(B7:B9)-6))),'Exchange rate'!Sheet2!A$1:E$3,5,0)*(C7:C9))
Array formula, use Ctrl-Shift-Enter

I tried googling but couldnt find an answer so I asked on another forum for a similar setup, total cost for a shopping list of fruit against a cost of fruit table
 
Upvote 0
Try this

=SUMPRODUCT(VLOOKUP(INDEX($B7:$B9,N(IF(1,ROW(B7:B9)-6))),'Exchange rate'!Sheet2!A$1:E$3,5,0)*(C7:C9))
Array formula, use Ctrl-Shift-Enter

I tried googling but couldnt find an answer so I asked on another forum for a similar setup, total cost for a shopping list of fruit against a cost of fruit table


Thank you very much for your help, it's not obvious you took the time to look for the solution :)
 
Upvote 0

Forum statistics

Threads
1,215,018
Messages
6,122,703
Members
449,093
Latest member
Mnur

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