Help Me

suhardi

New Member
Joined
May 26, 2015
Messages
1
I have table as below:

NameDay1234
AValue10101010
ACategoryXZZY
BValue5555
BCategoryYXZY
CValue15151515
CCategoryZXZY

<tbody>
</tbody>


then, want to write a formula to sum the value of each category each day
so i get:

DayXYZ
110515
220010
30030
40300

<tbody>
</tbody>

Please help me to solve this
Thanks for your help
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
in K2

Code:
=SUMPRODUCT(N(INDEX($C$3:$F$8,0,MATCH($J2,$C$1:$F$1,0))=K$1),INDEX($C$2:$F$7,0,MATCH($J2,$C$1:$F$1,0)))


<style type="text/css">
table.tableizer-table {
border: 1px solid #CCC; font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
.tableizer-table td {
padding: 4px;
margin: 3px;
border: 1px solid #ccc;
}
.tableizer-table th {
background-color: #104E8B;
color: #FFF;
font-weight: bold;
}
</style><table class="tableizer-table">
<tr class="tableizer-firstrow"><th>Name</th><th>Day</th><th>1</th><th>2</th><th>3</th><th>4</th><th> </th><th> </th><th> </th><th>Day</th><th>X</th><th>Y</th><th>Z</th></tr>
<tr><td>A</td><td>Value</td><td>10</td><td>10</td><td>10</td><td>10</td><td> </td><td> </td><td> </td><td>1</td><td>10</td><td>5</td><td>15</td></tr>
<tr><td>A</td><td>Category</td><td>X</td><td>Z</td><td>Z</td><td>Y</td><td> </td><td> </td><td> </td><td>2</td><td>20</td><td>0</td><td>10</td></tr>
<tr><td>B</td><td>Value</td><td>5</td><td>5</td><td>5</td><td>5</td><td> </td><td> </td><td> </td><td>3</td><td>0</td><td>0</td><td>30</td></tr>
<tr><td>B</td><td>Category</td><td>Y</td><td>X</td><td>Z</td><td>Y</td><td> </td><td> </td><td> </td><td>4</td><td>0</td><td>30</td><td>0</td></tr>
<tr><td>C</td><td>Value</td><td>15</td><td>15</td><td>15</td><td>15</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
<tr><td>C</td><td>Category</td><td>Z</td><td>X</td><td>Z</td><td>Y</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td></td></tr>
</table>
 
Upvote 0

Forum statistics

Threads
1,214,990
Messages
6,122,625
Members
449,093
Latest member
catterz66

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