countif/sumif question

  • Thread starter Thread starter Gary Keramidas
  • Start date Start date
G

Gary Keramidas

just wondering if there is a way to use these with the trim function.

=COUNTIF(P$3:P$33,"M")

so that it would work if the range contains a space or spaces along with the
letter M.
 
seems to work. only other alternative is to use a selection change event to fix
the entries.

thanks.
 
this seems to work for me, thanks

=SUM(IF(EXACT(TRIM(P$3:P$33), "M"),G$3:G$33,0))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top