Differentiating overlapping strings using SUMIFS?

aehinma

New Member
Joined
Jan 11, 2024
Messages
1
Office Version
  1. 2021
Platform
  1. Windows
  2. Web
Hi! I am working on a tracking sheet where I want to sum up the minutes worked by each employee on each given day.
1705073738824.png



My problem is that we have a new employee whose initials overlap with an existing employee's; ie ABC and BC. I can't figure out how to differentiate between the two within the SUMIFS statement. The operator names are pulled from manually entered spreadsheets so sets of initials could be listed in any order and preceded by " ", ",", or nothing.
1705074754350.png

I've tried subtracting the difference from BC's totals, but this doesn't account for when they work together on something (minutes should count for both). I'm playing with conditional statements example: =SUMIFS(C:C,B:B,AND("*"&F17&"*","<>"*"&F15"*""),A:A,$G$10) but having trouble within the SUMIFS statement since all conditions must be true.

My idea for a manual forced solution was to find & replace all instances of "ABC" with "AC" but for some reason this gives a result of 0 minutes for both operators, why is that?

I'm sure there's a better way to accomplish this task overall so I'm open to suggestions, just interested in learning how to solve this case as well :)
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hello

The best solution is to split the data in multiple rows.
Instead of
01/10/2024 - BC, ABC - 200
Use:
01/10/2024 - BC - 200
01/10/2024 - ABC - 200
 
Upvote 0
It's a bit cleaner if you don't have any spaces in column B.

MrExcelPlayground20 (version 1).xlsb
ABCDEFG
18-JanAK25
28-JanPB45
38-JanIB20
49-JanHB70
59-JanIB,ABC90
69-JanHB, ABC,AK180
79-JanPB160
89-JanIB1601/10/2024
910-JanAK, ABC, BC100AK400
1010-JanBC200HB415
1110-JanABC100IB400
1210-JanIB,BC400ABC700
1310-JanBC,ABC200PB415
1410-JanPB,HB415BC900
1510-JanAK,ABC300JX0
Sheet23
Cell Formulas
RangeFormula
G9:G15G9=IFERROR(SUM(FILTER($C$1:$C$15,($A$1:$A$15=$G$8)*NOT(ISERROR(((SEARCH(","&F9,","&SUBSTITUTE($B$1:$B$15," ","")))))))),0)
 
Upvote 0
Solution

Forum statistics

Threads
1,223,886
Messages
6,175,194
Members
452,616
Latest member
intern444

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