# Formula Help?

#### starky5

##### New Member
Here is an exampl of my data on a spreadsheet related to tracking the hours of team members for each project we are working on:

Jan Feb Mar Apr Total
Project A
John - Primary 5 10 20 5 40
Joe - Secondary 5 5 10 5 25

Project B
Joe Primary 5 30 20 5 60
Sue Secondary 5 5 5 5 20

Project C
Bill Primary 20 20 30 10 80
John Seecondary 5 10 20 5 40

What I want to do on another sheet is create a summary table that would have data like this:

John Primary hours = ??
John Secondary hours = ??
Joe Primary hours = ??
Joe Secondary hours = ??
Sue Primary hours = ??
Sue Secondary hours = ??
Bill Primary hours = ??
Bill Secondary hours = ??

Basically the logic needs to lookat column A1:A20, and if it equals "John Primary", keep a running total of the hours in the last column.

Is this possible?

Thanks...

### Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
starky5 said:
Here is an exampl of my data on a spreadsheet related to tracking the hours of team members for each project we are working on:

Jan Feb Mar Apr Total
Project A
John - Primary 5 10 20 5 40
Joe - Secondary 5 5 10 5 25

Project B
Joe Primary 5 30 20 5 60
Sue Secondary 5 5 5 5 20

Project C
Bill Primary 20 20 30 10 80
John Seecondary 5 10 20 5 40

What I want to do on another sheet is create a summary table that would have data like this:

John Primary hours = ??
John Secondary hours = ??
Joe Primary hours = ??
Joe Secondary hours = ??
Sue Primary hours = ??
Sue Secondary hours = ??
Bill Primary hours = ??
Bill Secondary hours = ??

Basically the logic needs to lookat column A1:A20, and if it equals "John Primary", keep a running total of the hours in the last column.

Is this possible?

Thanks...

With E2 housing a value like John Primary:

=SUMIF(Source!\$A\$2:\$A\$100,E2,Source!\$G\$2:\$G\$100)

Thank you, that did the trick.

Replies
1
Views
244
Replies
20
Views
2K
Replies
16
Views
2K
Replies
0
Views
449
Replies
8
Views
331

1,218,921
Messages
6,145,230
Members
450,603
Latest member
jpbegley

### 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.

### Which adblocker are you using?

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

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