Sum If Cell Contains a certain letter

Tashat

Board Regular
Joined
Jan 12, 2005
Messages
137
Office Version
  1. 365
Platform
  1. Windows
Hi All

I would be very grateful for your help on the following issue. I have a list of staff working in different regions. Some are full time, others half time (0.5) etc and I want to sum up the total number of staff working in each region. However, some work in multiple regions as indicated by the letters A, B, C and D in Column A.

I want to find the total for Regions A - D as shown in E3:H4 using a formula that adds up column B IF column A contains a letter A for example. At the moment the totals are hard-typed in E4:H4. I've tried SUMPRODUCT and SUMIFS, but can't allow for a wildcard function. I would prefer to avoid using Macros if possible.


Book2
ABCDEFGH
1RegionNumber of Staff
2A1
3A1ABCD
4A115.939.4311.539.5
5A1
6A1
7A1
8A1
9A1
10A1
11A1
12A1
13A0.6
14A1
15A & B0.5
16A & B0.5
17A & B0.5
18A & B0.5
19B0.6
20B1
21B1
22B1
23B & A0.5
24B & A0.5
25B & A & C0.33
26B & C0.5
27B & C0.5
28C1
29C0.6
30C0.6
31C1
32C1
33C1
34C1
35C1
36C & B0.5
37C & B0.5
38C & B0.5
39D & C0.5
40D & C0.5
41D & C0.5
42D1
43D1
44D1
45D1
46D1
47D1
48D1
49D1
Sheet1
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
How about
Excel Formula:
=SUMIFS($B:$B,$A:$A,"*"&E3&"*")
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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