Sumifs with two different table reference

spycein

Board Regular
Joined
Mar 8, 2014
Messages
135
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone,
Looking for a sumifs formula which would return the state-wise sales value. I have two different tables.
one is Date wise, city wise Sales data and another is state name master table.

DateCitySales Amount
01-02-2017Mumbai 84,885.00
01-02-2017Pune 88,783.00
02-02-2017Mangalore 97,541.00
02-02-2017Bangalore 32,905.00
03-02-2017Mangalore 31,641.00
03-02-2017Chennai 70,263.00

<tbody>
</tbody>












StateCity
MaharastraMumbai
MaharastraPune
KarnatakaMangalore
KarnatakaBangalore
KarnatakaMangalore
Tamil NaduChennai

<tbody>
</tbody>













i am looking for a formula which can return the value as per the below table data criteria.

DateMaharastraKarnatakaTamil Nadu
01-02-2017
02-02-2017
03-02-2017

<tbody>
</tbody>







Thank you so much in advance.

Regards
Shib
 
Last edited:

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Try this:

ABCDEFGHIJK
1DateCitySales AmountStateCityDateMaharastraKarnatakaTamil Nadu
21/2/2017Mumbai84,885.00MaharastraMumbai1/2/2017173,668.000.000.00
31/2/2017Pune88,783.00MaharastraPune2/2/20170.00130,446.000.00
42/2/2017Mangalore97,541.00KarnatakaMangalore3/2/20170.0031,641.0070,263.00
52/2/2017Bangalore32,905.00KarnatakaBangalore
63/2/2017Mangalore31,641.00Tamil NaduChennai
73/2/2017Chennai70,263.00
8

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Array Formulas
CellFormula
I2{=SUM(SUMIFS($C$2:$C$7,$B$2:$B$7,IF($E$2:$E$6=I$1,$F$2:$F$6,"zzzzz"),$A$2:$A$7,$H2))}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>



Put the formula in I2, change the references to match your sheet, and confirm with Control+Shift+Enter. Then drag to the rest of the table. Note that I had to remove the second Mangalore from the table.
 
Upvote 0

Forum statistics

Threads
1,216,186
Messages
6,129,393
Members
449,507
Latest member
rjwalker1973

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