Helen842000
New Member
- Joined
- Mar 28, 2011
- Messages
- 34
Hi All,
I'm having an issue with SUMPRODUCT I would normally use a wildcard symbol in this instance but I know that they don't work with SUMPRODUCT. I think I need to use LEFT function in there somewhere but I'm not sure of the syntax.
I want to search a data range from another worksheet for the number of rows that meet 3 pieces of set criteria. I am searching the March worksheet, Column/names - B (System Name), C (Employee ID), D (Action). The data range goes from B4 to D4200.
How can I change my formula so that it finds all the instances of the text typed even if they are parts of longer strings of text and NOT exact/literal matches?
This is what it would be like if I could use wildcard characters:-
=SUMPRODUCT((March!B4:B4200="*RBS*")*(March!C4:C4200="12345A")*(March!D4:D4200="*New*"))
This doesn't work obviously and if I remove the wildcard characters it returns the value of zero as it tries to count the literal strings.
I can see that it works correctly if I put the full system name or full action name as in this example :-
SUMPRODUCT((March!B4:B4200="RBS Read only")*(March!C4:C4200="11655B")*(March!D4:D4200="New user set-up"))
but there are SO many possible systems names/action types in the data range it really needs to be counted by the first 3 or 4 letters of the system name/action type.
If anyone can shed any light on this I'd appreciate it very much!
Thanks!
I'm having an issue with SUMPRODUCT I would normally use a wildcard symbol in this instance but I know that they don't work with SUMPRODUCT. I think I need to use LEFT function in there somewhere but I'm not sure of the syntax.
I want to search a data range from another worksheet for the number of rows that meet 3 pieces of set criteria. I am searching the March worksheet, Column/names - B (System Name), C (Employee ID), D (Action). The data range goes from B4 to D4200.
How can I change my formula so that it finds all the instances of the text typed even if they are parts of longer strings of text and NOT exact/literal matches?
This is what it would be like if I could use wildcard characters:-
=SUMPRODUCT((March!B4:B4200="*RBS*")*(March!C4:C4200="12345A")*(March!D4:D4200="*New*"))
This doesn't work obviously and if I remove the wildcard characters it returns the value of zero as it tries to count the literal strings.
I can see that it works correctly if I put the full system name or full action name as in this example :-
SUMPRODUCT((March!B4:B4200="RBS Read only")*(March!C4:C4200="11655B")*(March!D4:D4200="New user set-up"))
but there are SO many possible systems names/action types in the data range it really needs to be counted by the first 3 or 4 letters of the system name/action type.
If anyone can shed any light on this I'd appreciate it very much!
Thanks!