SUMIFS not working properly

naveen73

New Member
Joined
Dec 16, 2013
Messages
2
Hi All,I have a big file with ratio and amounts in column. From this I want to calculate the weighted average of a ratio. However, all the ratios and amounts are in the same column. They are for several years and for each year several scenarios and for each scenario several balance items for several banks. What I want is in a separate new column (on the right) a ratio for one specific year a specific balance sheet item for a specific scenario for all banks. This is the approach I have taken.I am using the following formulas in excel:=SUMIFS(E:E,A:A,A2,B:B,B2,C:C,$G$1,D:D,D2)Let me explain the formula a bit:Sum everything in column E IF:• A:A,A2 ; in column A all the bank_code, so for each bank• B:B,B2 ; in column B the period/year are mentioned, for each year• C:C,$G$1 : in column C the balance sheet items are mentioned, the specific balance I am looking for is in cell $G$1• D:D,D2 ; in column D all the scenarios are mentioned so for each specific scenario Why am I using the SUMIF function? That is my way of filtering things out. I want to do the same for the amounts in the next column.After making the two columns I want to use the sumproduct function with a conditional products calculation.My problem is that for some row the abovementioned SUMIF formula is not working. Why is that is it not working for some rows and some not?Just started off with DAX. Is there a better way of doing this in DAX? I will be using the end results to upload to Power BI / Tableau or Qlikview.Thanks,Naveen
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,214,800
Messages
6,121,641
Members
449,044
Latest member
hherna01

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