Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sumproduct with left and Search

Status
Not open for further replies.

robcarr

Programmer
May 15, 2002
633
GB
Hi,

I have this formula which works nearly.

=SUMPRODUCT((Source!$B$2:$B$5000=A13)*(ISNUMBER(SEARCH(B13,Source!$D$2:$D$5000))*(Source!$F$2:$F$5000)))

this sums all values in F range if D and B range values are matched.

However I have some instances of double counting, see below the 2 cells in D range that are causing the problem.

Admin Line \ Customer Call Back \ Left Answer Phone Message
Call Back \ Incoming Whitemail \ Case Updated

you can see call back \ appears in both cells, I only want to use the value where call back \ is at the start of the text string.

I have amended the above formula to this and now all it does is count instances and not sum instances in column F.

=SUMPRODUCT((Source!$B$2:$B$5000=A28)*(ISNUMBER(SEARCH(B28,LEFT(Source!$D$2:$D$5000,LEN(B28)))*Source!$F$2:$F$5000)))

both formulas are being entered as an array.

thanks

Hope this is of use, Rob.[yoda]
 



Rob,

You have A-F, but your posted example represents 3 columns.

Please post SAMPLE REPERESENTATIVE DATE related to this issue, along with the VALUES in the cell references in your formula!

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top