Index, Match and return sum of the matched values

Nicostin

New Member
Joined
Jun 25, 2014
Messages
2
Hi there - I am hoping someone can help me with my first post on any forum.:)

I have a set of data where there are duplicate occurrences of the same person. Each duplicate person has other attributes which make the data unique which is used in another report and I used 'Index, Match' to return values.

My query is that I need to add up the total (hours worked) for all the duplicate matches of the person in another report? Pivots are not an option.

Guessing its possible, but what approach do I need to take?

Any help appreciated. Thanks
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Datta to be returned is the hours
Weekending
Names and RatesType10-Jul17-Jul24-Jul31-Jul07-Aug
JonHours
130Blended Price Rate00000
100Cost Rate00000
PeteHours
130Blended Price Rate00000
100Cost Rate00000
IanHours
130Blended Price Rate00000
100Cost Rate00000
Source Data
ProjectsName10-Jul17-Jul24-Jul31-Jul07-Aug
Project 1Jon2020202020
Project 2Jon1010101010
Project 3Jon1010101010
Project 1Pete2020202020
Project 2Pete2020202020
Project 2Ian4040404040

<tbody>
</tbody>

the week's are variable, so don't think SUMIFs really work in this one.
 
Last edited:
Upvote 0
Enter formula in C2, copy across to G2 (or as far across as you expect to have w/e dates, then copy to C5:G5, then copy to C7:G7:
Code:
=SUMIF($B$15:$B20,$A2,C$15:C$20)

If the date columns between the top and bottom table don't line up, let me know how they're actually structured so I can adjust the formula to accomodate.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,255
Members
449,075
Latest member
staticfluids

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