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

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Rijnsent

Well-known Member
Joined
Oct 17, 2005
Messages
1,277
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,101,907
Messages
5,483,657
Members
407,399
Latest member
Rakeforms

This Week's Hot Topics

  • Finding issue in If elseif else with For each Loop
    Finding issue in If elseif else with For each Loop I have tried this below code but i'm getting in Y column filled with W005. Colud you please...
  • MsgBox Error
    Hi Guys, I have the below error show up when i try and run my macro in File1 but works fine if i copy and paste the same code into file2. [ATTACH...
  • CELL FORMAT - IF CONDITION
    My Cell Format is [B]""0.00" Cr". [/B]But in the cell, it is showing 123.00 for editing. (123 is entry figure). (Data imported from other...
  • Show numbers nearly the same
    Is this possible. I have a number that can change very time eg 0.00001234 Then I have a lot of numbers 0.0000001, 0.0000002, 0.00000004...
  • Please i need your help to create formula
    I need a formula in cell B8 to do this >>if b1=1 then multiply ( cell b8) by 10% ,if b1=2 multiply by 20%,if=3 multiply by 30%. Thank you in...
  • Got error while adding column and filter
    Got error while adding column and filter In column Z has some like "Success" and "Error". I want to add column in AA if the Z cell value is...
Top