How to sum up a column when another column has ceratin text?

kjicha

New Member
Joined
Feb 29, 2016
Messages
41
Hello, I have a spreadsheet, that in Column A = priority (so a 1, 2, etc..) Column B is Project name, C is Role Name, D is Date, E is scheduled Hours and F is Actual Hours.

What I am trying to do is this:

If column B has 50 rows of the same project name, and there could be 40 role names the same for the project name, I need the actual hours summed up to date.

I need to put this in VB Code within Excel to complete this process.

I hope this makes sense, please help and thank you for your time.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Hi Kjicha,
have you had a look at the SUMIFS formula? That formula can do what you describe, no need for VBA. If that is not what you need, how far did you get creating the VBA function?
Kind regards,
Koen
 
Upvote 0

Forum statistics

Threads
1,223,264
Messages
6,171,085
Members
452,378
Latest member
Hoodzy01

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