Sum & Convert Currency

Caleeco

Well-known Member
Joined
Jan 9, 2016
Messages
980
Office Version
  1. 2010
Platform
  1. Windows
Hello,

I am trying to set up an excel formula that will SUM currencies. However, they are listed without the currency format, so I need to convert EUR to GBP.

I can achieve this using 2 SUMIF functions. However, from what i've read a much slicker formula could be achieved using LOOKUP and SUMPRODUCT.

Formula in E3:
Code:
=SUMIF(G6:G23,"GBP",H6:H23)+(SUMIF(G6:G23,"EUR",H6:H23))/K6

Formula in F3:
Code:
=SUMPRODUCT((LOOKUP(G6:G23,{"GBP","EUR"},{1,1.24})),H6:H23)

Can anyone tell me why my formula in F3 doesn't resolve correctly?

2mwi8ub.png


Many Thanks
Caleeco
 
Last edited:

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"
LOOKUP works on sorted array. Just reverse "GBP" AND "EUR" and the SUMPRODUCT formula will work.
 
Upvote 0
SUMIF is far more efficient than SUMPRODUCT, so while the SP may seem "slicker", it is probably slower than the SUMIF if used over large amounts of data
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,251
Members
448,556
Latest member
peterhess2002

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