SUMIFS for different criteria, without criteria_range in database

Deepakchoudhary

New Member
Joined
Dec 20, 2010
Messages
35
Friends,
in below database 3 columns are exported from S/W (i.e. Calendar M/Y, Outlet Code, Turnover) showing turnover of 3 months for different outlets belongs to 3 city managers Mr X, Mr Y & Mr Z.
Here City Manager's column is not available in exported data, just listed below for reference. I need to make SUMIFS of Turnover for the City Manager(s) on the basis of their belonging OUTLET CODES. For example Mr X is looking for the OUTLET CODEs from 7 to 13 & 25,61,99. Chellange was "City Manager" column not available to set the 'crieteria range' to make sumifs condition. Applied a working formula as below :
($C:$C is Turnover, $B:$B is Outlet Code)

=SUMIFS($C:$C,$B:$B,">="&"7",$B:$B,"<="&"13")+SUMIFS($C:$C,$B:$B,"25")+SUMIFS($C:$C,$B:$B,"61")+SUMIFS($C:$C,$B:$B,"99")
and correct result is 13.766. (After "+" SUMIF is also working well).

I need help for any other easy solution if possible. Again and again writing "+" & fromula needs some other way if anyone can give me. Already tried for
1. =SUMIFS($C:$C,$B:$B,">="&"7",$B:$B,"<="&"13")+SUMIFS($C:$C,$B:$B,"25",$B:$B,"61",$B:$B,"99")
2. =SUMIFS($C:$C,$B:$B,">="&"7",$B:$B,"<="&"13",$B:$B,"25",$B:$B,"61",$B:$B,"99")
But these are not working.


CALENDAR M/Y</SPAN>
OUTLET CODE</SPAN>
TurnOver </SPAN>
City Manager</SPAN>
4.2014</SPAN>
7</SPAN>
0.37</SPAN>
Mr X</SPAN>
4.2014</SPAN>
8</SPAN>
0.31</SPAN>
Mr X</SPAN>
4.2014</SPAN>
9</SPAN>
0.38</SPAN>
Mr X</SPAN>
4.2014</SPAN>
10</SPAN>
0.60</SPAN>
Mr X</SPAN>
4.2014</SPAN>
11</SPAN>
0.30</SPAN>
Mr X</SPAN>
4.2014</SPAN>
12</SPAN>
0.26</SPAN>
Mr X</SPAN>
4.2014</SPAN>
13</SPAN>
0.87</SPAN>
Mr X</SPAN>
4.2014</SPAN>
14</SPAN>
0.47</SPAN>
Mr Y</SPAN>
4.2014</SPAN>
15</SPAN>
0.25</SPAN>
Mr Y</SPAN>
4.2014</SPAN>
17</SPAN>
0.50</SPAN>
Mr Y</SPAN>
4.2014</SPAN>
18</SPAN>
0.69</SPAN>
Mr Y</SPAN>
4.2014</SPAN>
19</SPAN>
0.23</SPAN>
Mr Y</SPAN>
4.2014</SPAN>
20</SPAN>
0.49</SPAN>
Mr Y</SPAN>
4.2014</SPAN>
21</SPAN>
0.25</SPAN>
Mr Y</SPAN>
4.2014</SPAN>
56</SPAN>
0.43</SPAN>
Mr Z</SPAN>
4.2014</SPAN>
59</SPAN>
0.49</SPAN>
Mr Z</SPAN>
4.2014</SPAN>
25</SPAN>
0.37</SPAN>
Mr X</SPAN>
4.2014</SPAN>
70</SPAN>
0.44</SPAN>
Mr Z</SPAN>
4.2014</SPAN>
88</SPAN>
0.32</SPAN>
Mr Z</SPAN>
4.2014</SPAN>
61</SPAN>
0.61</SPAN>
Mr X</SPAN>
4.2014</SPAN>
92</SPAN>
1.17</SPAN>
Mr Z</SPAN>
4.2014</SPAN>
93</SPAN>
0.30</SPAN>
Mr Z</SPAN>
4.2014</SPAN>
96</SPAN>
0.65</SPAN>
Mr Z</SPAN>
4.2014</SPAN>
97</SPAN>
0.65</SPAN>
Mr Z</SPAN>
4.2014</SPAN>
99</SPAN>
0.32</SPAN>
Mr X</SPAN>
5.2014</SPAN>
7</SPAN>
0.40</SPAN>
Mr X</SPAN>
5.2014</SPAN>
8</SPAN>
0.37</SPAN>
Mr X</SPAN>
5.2014</SPAN>
9</SPAN>
0.40</SPAN>
Mr X</SPAN>
5.2014</SPAN>
10</SPAN>
0.60</SPAN>
Mr X</SPAN>
5.2014</SPAN>
11</SPAN>
0.32</SPAN>
Mr X</SPAN>
5.2014</SPAN>
12</SPAN>
0.27</SPAN>
Mr X</SPAN>
5.2014</SPAN>
13</SPAN>
0.94</SPAN>
Mr X</SPAN>
5.2014</SPAN>
14</SPAN>
0.52</SPAN>
Mr Y</SPAN>
5.2014</SPAN>
15</SPAN>
0.28</SPAN>
Mr Y</SPAN>
5.2014</SPAN>
17</SPAN>
0.78</SPAN>
Mr Y</SPAN>
5.2014</SPAN>
18</SPAN>
0.85</SPAN>
Mr Y</SPAN>
5.2014</SPAN>
19</SPAN>
0.34</SPAN>
Mr Y</SPAN>
5.2014</SPAN>
20</SPAN>
0.50</SPAN>
Mr Y</SPAN>
5.2014</SPAN>
21</SPAN>
0.28</SPAN>
Mr Y</SPAN>
5.2014</SPAN>
56</SPAN>
0.40</SPAN>
Mr Z</SPAN>
5.2014</SPAN>
59</SPAN>
0.49</SPAN>
Mr Z</SPAN>
5.2014</SPAN>
25</SPAN>
0.38</SPAN>
Mr X</SPAN>
5.2014</SPAN>
70</SPAN>
0.48</SPAN>
Mr Z</SPAN>
5.2014</SPAN>
88</SPAN>
0.33</SPAN>
Mr Z</SPAN>
5.2014</SPAN>
61</SPAN>
0.64</SPAN>
Mr X</SPAN>
5.2014</SPAN>
92</SPAN>
1.28</SPAN>
Mr Z</SPAN>
5.2014</SPAN>
93</SPAN>
0.57</SPAN>
Mr Z</SPAN>
5.2014</SPAN>
96</SPAN>
0.67</SPAN>
Mr Z</SPAN>
5.2014</SPAN>
97</SPAN>
0.43</SPAN>
Mr Z</SPAN>
5.2014</SPAN>
99</SPAN>
0.35</SPAN>
Mr X</SPAN>
6.2014</SPAN>
7</SPAN>
0.42</SPAN>
Mr X</SPAN>
6.2014</SPAN>
8</SPAN>
0.36</SPAN>
Mr X</SPAN>
6.2014</SPAN>
9</SPAN>
0.44</SPAN>
Mr X</SPAN>
6.2014</SPAN>
10</SPAN>
0.61</SPAN>
Mr X</SPAN>
6.2014</SPAN>
11</SPAN>
0.34</SPAN>
Mr X</SPAN>
6.2014</SPAN>
12</SPAN>
0.28</SPAN>
Mr X</SPAN>
6.2014</SPAN>
13</SPAN>
0.95</SPAN>
Mr X</SPAN>
6.2014</SPAN>
14</SPAN>
0.53</SPAN>
Mr Y</SPAN>
6.2014</SPAN>
15</SPAN>
0.32</SPAN>
Mr Y</SPAN>
6.2014</SPAN>
17</SPAN>
0.57</SPAN>
Mr Y</SPAN>
6.2014</SPAN>
18</SPAN>
0.62</SPAN>
Mr Y</SPAN>
6.2014</SPAN>
19</SPAN>
0.23</SPAN>
Mr Y</SPAN>
6.2014</SPAN>
20</SPAN>
0.53</SPAN>
Mr Y</SPAN>
6.2014</SPAN>
21</SPAN>
0.27</SPAN>
Mr Y</SPAN>
6.2014</SPAN>
56</SPAN>
0.44</SPAN>
Mr Z</SPAN>
6.2014</SPAN>
59</SPAN>
0.50</SPAN>
Mr Z</SPAN>
6.2014</SPAN>
25</SPAN>
0.40</SPAN>
Mr X</SPAN>
6.2014</SPAN>
70</SPAN>
0.50</SPAN>
Mr Z</SPAN>
6.2014</SPAN>
88</SPAN>
0.34</SPAN>
Mr Z</SPAN>
6.2014</SPAN>
61</SPAN>
0.55</SPAN>
Mr X</SPAN>
6.2014</SPAN>
92</SPAN>
1.14</SPAN>
Mr Z</SPAN>
6.2014</SPAN>
93</SPAN>
0.36</SPAN>
Mr Z</SPAN>
6.2014</SPAN>
96</SPAN>
0.63</SPAN>
Mr Z</SPAN>
6.2014</SPAN>
97</SPAN>
0.48</SPAN>
Mr Z</SPAN>
6.2014</SPAN>
99</SPAN>
0.36</SPAN>
Mr X</SPAN>

<TBODY>
</TBODY>
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
I would use pivot table for that kind of work.


Book1
HIJKL
2Som van TurnOverKolomlabels
3Rijlabels420145201462014Eindtotaal
4Mr X4,394,674,7113,77
570,370,400,421,19
680,310,370,361,04
790,380,400,441,22
8100,600,600,611,81
9110,300,320,340,96
10120,260,270,280,81
11130,870,940,952,76
12250,370,380,401,15
13610,610,640,551,80
14990,320,350,361,03
15Mr Y2,883,553,079,50
16140,470,520,531,52
17150,250,280,320,85
18170,500,780,571,85
19180,690,850,622,16
20190,230,340,230,80
21200,490,500,531,52
22210,250,280,270,80
23Mr Z4,454,654,3913,49
24560,430,400,441,27
25590,490,490,501,48
26700,440,480,501,42
27880,320,330,340,99
28921,171,281,143,59
29930,300,570,361,23
30960,650,670,631,95
31970,650,430,481,56
32Eindtotaal11,7212,8712,1736,76
Blad12
 
Upvote 0

Forum statistics

Threads
1,203,462
Messages
6,055,563
Members
444,799
Latest member
CraigCrowhurst

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