ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   What does the ~ mean in formula =SUMIF(M13:M9087,"~**",E13:E9087) (https://www.excelbanter.com/excel-worksheet-functions/246731-what-does-%7E-mean-formula-%3Dsumif-m13-m9087-%7E%2A%2A-e13-e9087.html)

Dorothy

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

Mike H

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

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

Mike

"Dorothy" wrote:

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


Mike H

What does the ~ mean in formula =SUMIF(M13:M9087,"~**",E13:E90
 
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



"Mike H" wrote:

Hi,

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

Mike

"Dorothy" wrote:

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


Dave Peterson

What does the ~ mean in formula =SUMIF(M13:M9087,"~**",E13:E9087)
 
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.



Dorothy wrote:

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


--

Dave Peterson


All times are GMT +1. The time now is 10:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com