SUMIFS with currency selection

Zubair

Active Member
Joined
Jul 4, 2009
Messages
304
Office Version
  1. 2016
Platform
  1. Windows
HI Experts,

I have the following formula in my tab "Result" cell H7

=((SUMIFS(data!$S:$S,data!$Q:$Q,$A7,data!$B:$B,'Control Sheet'!$AH$2,data!$D:$D,'Control Sheet'!$AH$4)/1000/'Control Sheet'!$B$5))

The value coming from the above formula is in USD based on exchange rate from B5 whereas I want it to be calculate based on the selection drop down in tab "Control Sheet" B3 Local or USD,

means if local no division with B5 if USD divide with B5, Please help.

Select Month​
Apr
Select Year​
2021
View Currency​
Local
PKR​
Local Currency​
PKR
Exchange Rate​
156.6
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
You seem to have done the hard part. See if this is what you are after:-
PS: I am assuming that $A7 is on the same sheet as the formula.

Excel Formula:
=SUMIFS(Data!$S:$S,
Data!$Q:$Q,$A7,
Data!$B:$B,'Control Sheet'!$AH$2,
Data!$D:$D,'Control Sheet'!$AH$4)
/1000/IF('Control Sheet'!$B$3="Local",1,'Control Sheet'!$B$5)
 
Upvote 0
Solution
Alex - Exactly that I want, many thanks its perfectly work.
 
Upvote 0

Forum statistics

Threads
1,214,991
Messages
6,122,628
Members
449,095
Latest member
bsb1122

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