Formula to sum a row of numbers by a letter within one cell

jlyn123

New Member
Joined
Jan 24, 2018
Messages
45
Office Version
  1. 2016
Hello,

I am looking for a formula that will sum a row of numbers (hours per week) depending on the name of the job and letter indication. Example below:

Project name: hours each month
AZ-P-Testing 10 10 15 20.... I want to sum this row based on the "P" within project name. I tried =SUMIF(B6,"*"&"P"&"*",C6:BB6) but this only pulled in the first number "10" it didnt sum for a total. Any ideas?

Thanks for the help!
 

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.
What version of Excel are you using?
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

What column is the project name in?
Also are you just looking to sum each row individually, or all rows that have a P in the project name?
 
Upvote 0
Hello,

The excel version I am using is 2016 (16.05.5122.1000) 32-bit and I cant just update the version as this is my work computer and everyone is using the same version. The project name is in column B and I am wanting to sum that one row if a P is in the Project name. If there isn't a P then I wouldn't want to sum for me. Each row would have different amounts to sum if the project name has a P in it. I dont want to sum all row together if a project has a P just line by line if that makes sense.

Thanks for your response.
 
Upvote 0
The excel version I am using is 2016 (16.05.5122.1000) 32-bit
Thanks for that, please don't forget to update you account details to show this. ;)

How about
Excel Formula:
=IF(ISNUMBER(SEARCH("P",B6)),SUM(C6:BB66),"")
 
Upvote 0
I updated the version I am using like you mentioned above :).

That worked - thank you so much for all your help!!! Really appreciate it!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,269
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