Share via

SUMPRODUCT using text qualifiers and multiple criteria

Anonymous
2010-08-24T18:02:32+00:00

I am attempting to use SUMPRODUCT with multiple criteria, one of which is a text qualifier.  One of the criteria I wish to use is to add up values in Col A where the text qualifier in the corresponding cell of Col B ends in ".un" or "-u".  When I use the foruma "--(Raw_Data!$S$1:$S$50000="*.un"), I find that I cannot use the wildcard as the formula interprets this value literally and NOT as the wildcard.  Any suggestions to develop a formula which will select values based on the ending value of a text string?  Thanks so much

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2010-08-24T18:17:06+00:00

I am attempting to use SUMPRODUCT with multiple criteria, one of which is a text qualifier.  One of the criteria I wish to use is to add up values in Col A where the text qualifier in the corresponding cell of Col B ends in ".un" or "-u".  When I use the foruma "--(Raw_Data!$S$1:$S$50000="*.un"), I find that I cannot use the wildcard as the formula interprets this value literally and NOT as the wildcard.  Any suggestions to develop a formula which will select values based on the ending value of a text string?  Thanks so much

You can try something like this...

(RIGHT(S1:S20,3)=".un")+(RIGHT(S1:S20,2)="-n")

--

Biff

Microsoft Excel MVP

Was this answer helpful?

0 comments No comments

Answer accepted by question author

Anonymous
2010-08-24T18:12:29+00:00

Instead of the wildcard, use the right function - try...

"--(Right(Raw_Data!$S$1:$S$50000,3)=".un")

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2010-08-24T18:23:15+00:00

    Many thanks -- that does it !!!

    Was this answer helpful?

    0 comments No comments