What does the ~ mean in formula =SUMIF(M13:M9087,"~**",E13:E9087)

M

Mike H

Hi,

the Tilde sign (~) is telling the sumif formula to look for the * symbol and
not treat that symbol as a wildcard.

Mike
 
M

Mike H

I should have added this only applies to the first *. The second * is being
treated as a wildcard so the sumif adds up if any cell in the criteria range
begins with * and has anything (or nothing) after it
 
D

Dave Peterson

Just to add...

There are a handful of worksheet functions that support wildcards (like
=countif() and =sumif()).

When you want to use one of those characters, but not have it treated as a
wildcard, you have to tell excel somehow--so you precede the character with that
tilde (~*, ~? and ~~).

And excel supports these same wildcards when you do an Edit|Replace or
Edit|Find.

If you want to replace an asterisk character, use ~* in the from string.
If you want to replace a question mark, use ~? in the from string.
If you want to replace a tilde (~), use ~~ in the from string.
 

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

Top