Sum - Index, Match, Match

psrs0810

Well-known Member
Joined
Apr 14, 2009
Messages
1,088
I am having some trouble using sum with Index, Match, Match.
My Formula is =SUM(INDEX(Sheet1!$B$1:$R$50,MATCH('July 2018'!$B10,Sheet1!$B$1:$B$50,0),MATCH('July 2018'!$O$2,Sheet1!$B$1:$R$1,0)))

I need to cross match two categories and where that information meets up, I need to sum.
Thanks
 

Some videos you may like

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Rijnsent

Well-known Member
Joined
Oct 17, 2005
Messages
1,283
Office Version
365
Platform
Windows
Hi psrs0810,
I'm trying to understand your formula: you try to find cell C2 in the first row and B10 in Column B. Both of them can have multiple matches? Because when there is just 1 intersecting cell you'd just need a simple INDEX with 2 matches without a sum. Is that what you are looking for?
Cheers,
Koen
 

RicardoCubed

Board Regular
Joined
Jul 10, 2013
Messages
200
try this approach?
<b></b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF ;border: 1px solid;border-collapse: collapse; border-color: #BBB"><colgroup><col width="25px" style="background-color: #DAE7F5 " /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: #DAE7F5 ;text-align: center;color: #161120"><th></th><th>A</th><th>B</th><th>C</th><th>D</th><th>E</th><th>F</th><th>G</th><th>H</th><th>I</th><th>J</th><th>K</th><th>L</th><th>M</th><th>N</th><th>O</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style="text-align: right;;"></td><td style=";">Jan</td><td style=";">Feb</td><td style=";">Mar</td><td style=";">Apr</td><td style=";">May</td><td style=";">Jun</td><td style=";">Jul</td><td style=";">Aug</td><td style=";">Sep</td><td style=";">Oct</td><td style=";">Nov</td><td style=";">Dec</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style=";">Paul</td><td style="text-align: right;;">12</td><td style="text-align: right;;">14</td><td style="text-align: right;;">16</td><td style="text-align: right;;">18</td><td style="text-align: right;;">20</td><td style="text-align: right;;">22</td><td style="text-align: right;;">24</td><td style="text-align: right;;">26</td><td style="text-align: right;;">28</td><td style="text-align: right;;">30</td><td style="text-align: right;;">32</td><td style="text-align: right;;">34</td><td style="text-align: right;;"></td><td style=";">Paul</td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style=";">George</td><td style="text-align: right;;">24</td><td style="text-align: right;;">26</td><td style="text-align: right;;">28</td><td style="text-align: right;;">30</td><td style="text-align: right;;">32</td><td style="text-align: right;;">34</td><td style="text-align: right;;">36</td><td style="text-align: right;;">38</td><td style="text-align: right;;">40</td><td style="text-align: right;;">42</td><td style="text-align: right;;">44</td><td style="text-align: right;;">46</td><td style="text-align: right;;"></td><td style=";">Jul</td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style=";">Ringo</td><td style="text-align: right;;">36</td><td style="text-align: right;;">38</td><td style="text-align: right;;">40</td><td style="text-align: right;;">42</td><td style="text-align: right;;">44</td><td style="text-align: right;;">46</td><td style="text-align: right;;">48</td><td style="text-align: right;;">50</td><td style="text-align: right;;">52</td><td style="text-align: right;;">54</td><td style="text-align: right;;">56</td><td style="text-align: right;;">58</td><td style="text-align: right;;"></td><td style="text-align: right;;">84</td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style=";">Paul</td><td style="text-align: right;;">48</td><td style="text-align: right;;">50</td><td style="text-align: right;;">52</td><td style="text-align: right;;">54</td><td style="text-align: right;;">56</td><td style="text-align: right;;">58</td><td style="text-align: right;;">60</td><td style="text-align: right;;">62</td><td style="text-align: right;;">64</td><td style="text-align: right;;">66</td><td style="text-align: right;;">68</td><td style="text-align: right;;">70</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr></tbody></table><p style="width:3.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #BBB;border-top:none;text-align: center;background-color: #DAE7F5 ;color: #161120">Sheet6</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF " ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF ;border-collapse: collapse; border-color: #BBB"><thead><tr style=" background-color: #DAE7F5 ;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #DAE7F5 ;color: #161120">O4</th><td style="text-align:left">=SUMPRODUCT(<font color="Blue">(<font color="Red">A2:A5=O2</font>)*(<font color="Red">(<font color="Green">B1:M1=O3</font>)*(<font color="Green">B2:M5</font>)</font>)</font>)</td></tr></tbody></table></td></tr></table><br />
 

Watch MrExcel Video

Forum statistics

Threads
1,102,474
Messages
5,487,096
Members
407,577
Latest member
afonsomira

This Week's Hot Topics

Top