Sum multiple column if the header contains certain word

seeker123

Board Regular
Joined
Oct 8, 2011
Messages
84
Hi everyone

I have a very large database like below in every row I want to have the sum of budget,Actual and remaining man hour of all departments.
In other words i want to write a sumif based on header containing specific word.
how can I do that?

Thanks a lot.

[TABLE="class: grid, width: 1510"]
<colgroup><col><col><col><col><col><col><col><col><col><col><col><col span="2"><col></colgroup><tbody>[TR]
[TD="align: left"]Project[/TD]
[TD="align: left"]Budget Dev[/TD]
[TD="align: left"]Actual Dev[/TD]
[TD="align: left"]Remaining Dev[/TD]
[TD="align: left"]Budget Design[/TD]
[TD="align: left"]Actual Design[/TD]
[TD="align: left"]Remaining Design[/TD]
[TD="align: left"]Budget Design[/TD]
[TD="align: left"]Actual Design[/TD]
[TD="align: left"]Remaining Design[/TD]
[TD="align: left"]…[/TD]
[TD="align: left"]Total Budget[/TD]
[TD="align: left"]Total Actual[/TD]
[TD="align: left"]Total Remaining[/TD]
[/TR]
[TR]
[TD="align: left"]Project1[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]20[/TD]
[TD] [/TD]
[TD="align: left"]Some of all budgets[/TD]
[TD="align: left"]Some of all Actuals[/TD]
[TD="align: left"]Some of all Remainings[/TD]
[/TR]
[TR]
[TD="align: left"]Project2[/TD]
[TD="align: right"]50[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]60[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]50[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]10[/TD]
[TD] [/TD]
[TD="align: left"]Some of all budgets[/TD]
[TD="align: left"]Some of all Actuals[/TD]
[TD="align: left"]Some of all Remainings[/TD]
[/TR]
[TR]
[TD="align: left"]Project3[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD="align: left"]…[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,021
Latest member
Mohamed Magdi Tawfiq Emam

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