Sum by lookups

carlidee

New Member
Joined
Sep 15, 2020
Messages
20
Office Version
  1. 2016
Platform
  1. Windows
Hi there,

Can someone please help me achieve the result in the "summary table" output below?


Data source: shows the numbers of hours coded to various case codes
Case ABC​
Case DEF​
Case GHI​
Case JKL​
John400010
Kate010450
Tom200040


Summary table (desired result): adds up all hours a person worked in their row and that total is placed under each case code that they submitted hours

Case ABC​
Case DEF​
Case GHI​
Case JKL​
John500050
Kate055550
Tom600060
 

Attachments

  • 1605032456566.png
    1605032456566.png
    81.3 KB · Views: 3

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Here is one way.

Let's say that your data above is in range A1:E4. Then you can do your SUMMARY totals in columns F:I, right next to the existing data by typing this formula in cell F2 and copying all the way to I4:
Excel Formula:
=IF(B2>0,SUM($B2:$E2),0)
 
Upvote 0

Forum statistics

Threads
1,214,596
Messages
6,120,438
Members
448,966
Latest member
DannyC96

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