Dsum & match, index & match

dch5876

New Member
Joined
Mar 17, 2017
Messages
19
Office Version
  1. 365
Platform
  1. Windows
All,
I have a table (EMP_TASK) with 3 columns (A:A=Task, B:B=Employee, C:C=Hours to Complete). My goal is to auto populate another table (EMP_TOTAL) with the name(E:E=Employee) and sum the total hours (F:F=Total Hours) from EMP_TASK table. Any suggestions, so far the only things I can get are #VALUE ! or #N/A.



[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Task[/TD]
[TD]Employee[/TD]
[TD]Hours[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Task 1[/TD]
[TD]Andrew A[/TD]
[TD]5
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Task 2[/TD]
[TD]Andrew B[/TD]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Task 3[/TD]
[TD]Andrew C[/TD]
[TD]12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Task 4[/TD]
[TD]Andrew D[/TD]
[TD]20[/TD]
[TD][/TD]
[TD]Employee[/TD]
[TD]Total Hours[/TD]
[/TR]
[TR]
[TD]Task 5[/TD]
[TD]Andrew A[/TD]
[TD]20[/TD]
[TD][/TD]
[TD]Andrew A[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]Task 6[/TD]
[TD]Andrew B[/TD]
[TD]8[/TD]
[TD][/TD]
[TD]Andrew B[/TD]
[TD]26[/TD]
[/TR]
[TR]
[TD]Task 7[/TD]
[TD]Andrew C[/TD]
[TD]10[/TD]
[TD][/TD]
[TD]Andrew C[/TD]
[TD]32[/TD]
[/TR]
[TR]
[TD]Task 8[/TD]
[TD]Andrew D[/TD]
[TD]10[/TD]
[TD][/TD]
[TD]Andrew D[/TD]
[TD]35[/TD]
[/TR]
[TR]
[TD]Task 9[/TD]
[TD]Andrew A[/TD]
[TD]25[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Task 10[/TD]
[TD]Andrew B[/TD]
[TD]12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Task 11[/TD]
[TD]Andrew C[/TD]
[TD]10[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Task 12[/TD]
[TD]Andrew D[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
You can use a pivot table.


But if you prefer with tables:
<table border="1" cellspacing="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:76.04px;" /><col style="width:79.84px;" /><col style="width:76.04px;" /><col style="width:76.04px;" /><col style="width:79.84px;" /><col style="width:87.45px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td > </td><td >A</td><td >B</td><td >C</td><td >D</td><td >E</td><td >F</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td >Task</td><td >Employee</td><td >Hours</td><td > </td><td > </td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >2</td><td >Task 1</td><td >Andrew A</td><td style="text-align:right; ">5</td><td > </td><td >Employee</td><td >Total Hours</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >3</td><td >Task 2</td><td >Andrew B</td><td style="text-align:right; ">6</td><td > </td><td >Andrew A</td><td style="text-align:right; ">50</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >4</td><td >Task 3</td><td >Andrew C</td><td style="text-align:right; ">12</td><td > </td><td >Andrew B</td><td style="text-align:right; ">26</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >5</td><td >Task 4</td><td >Andrew D</td><td style="text-align:right; ">20</td><td > </td><td >Andrew C</td><td style="text-align:right; ">32</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >6</td><td >Task 5</td><td >Andrew A</td><td style="text-align:right; ">20</td><td > </td><td >Andrew D</td><td style="text-align:right; ">35</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >7</td><td >Task 6</td><td >Andrew B</td><td style="text-align:right; ">8</td><td > </td><td > </td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >8</td><td >Task 7</td><td >Andrew C</td><td style="text-align:right; ">10</td><td > </td><td > </td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >9</td><td >Task 8</td><td >Andrew D</td><td style="text-align:right; ">10</td><td > </td><td > </td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >10</td><td >Task 9</td><td >Andrew A</td><td style="text-align:right; ">25</td><td > </td><td > </td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >11</td><td >Task 10</td><td >Andrew B</td><td style="text-align:right; ">12</td><td > </td><td > </td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >12</td><td >Task 11</td><td >Andrew C</td><td style="text-align:right; ">10</td><td > </td><td > </td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >13</td><td >Task 12</td><td >Andrew D</td><td style="text-align:right; ">5</td><td > </td><td > </td><td > </td></tr></table><br /><table style="font-family:Arial; font-size:10pt; border-style: groove ;border-color:#00ff00;background-color:#fffcf9; color:#000000; "><tr><td ><b></b></td></tr><tr><td ><table border = "1" cellspacing="0" cellpadding="2" style="font-family:Arial; font-size:9pt;"><tr style="background-color:#cacaca; font-size:10pt;"><td >Cell</td><td >Formula</td></tr><tr><td >F3</td><td >=SUMIF(EMP_TASK[Employee],[Employee],EMP_TASK[Hours])</td></tr></table></td></tr></table>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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