# SUMIFS and blank cells

- Link: https://tongfamily.com/2015/01/30/sumifs-and-blank-cells/
- Published: 2015-01-30T21:17:48-08:00
- Author: rich

One thing that isn’t well documented is what happens to Excel is there is a blank
in a cell.
 By experimentation it turns out that the wildcard “_” does *not_ match
a blank cell, so you need to make sure that you have something in every cell if 
you want to match it.  Interestingly, [stackoverflow](http://stackoverflow.com/questions/11289778/how-do-i-count-not-equal-to-wildcard-characters-in-excel)
says that you can match a non-blank cell with `SUMIFS(S:S, C:C, "&lt;&gt;")` but
it isn’t clear how you match an actual blank cell. Seems like there is no wya to
do this. As another aside, if you cell has a wildcard, how do you match it? Also
what happens if you want to match an actual asterick or question mark in a cell,
apparently, the tilde let’s you do that with `SUMIFS(S:S, C:C, "~?")` or `SUMIFS(
S:S, "~*")` if that makes sense. I usual think of the tilde as a negation and would
have though backslash would do it.  As an aside, you can do these kind of and queries
by just duplicating the ranges, so you can use this for inclusion test so for instance
to find cells that a >100 and <500, you can do `SUMIF(S:S, S:S, "&lt;100", S:S, "&
lt;500")`

### Share this:

 * [  Mastodon ](https://tongfamily.com/2015/01/30/sumifs-and-blank-cells/?share=mastodon)
 * [  LinkedIn ](https://tongfamily.com/2015/01/30/sumifs-and-blank-cells/?share=linkedin)
 * [  Facebook ](https://tongfamily.com/2015/01/30/sumifs-and-blank-cells/?share=facebook)
 * [  WhatsApp ](https://tongfamily.com/2015/01/30/sumifs-and-blank-cells/?share=jetpack-whatsapp)
 * [  Email ](https://tongfamily.com/2015/01/30/sumifs-and-blank-cells/?subject=%5BShared%20Post%5D%20SUMIFS%20and%20blank%20cells&body=https%3A%2F%2Ftongfamily.com%2F2015%2F01%2F30%2Fsumifs-and-blank-cells%2F&share=email)
 * [More](https://tongfamily.com/2015/01/30/sumifs-and-blank-cells/#)

 * [  Telegram ](https://tongfamily.com/2015/01/30/sumifs-and-blank-cells/?share=telegram)
 * [  Print ](https://tongfamily.com/2015/01/30/sumifs-and-blank-cells/#print?share=print)
 * [  Pinterest ](https://tongfamily.com/2015/01/30/sumifs-and-blank-cells/?share=pinterest)
 * [  Tumblr ](https://tongfamily.com/2015/01/30/sumifs-and-blank-cells/?share=tumblr)
 * [  X ](https://tongfamily.com/2015/01/30/sumifs-and-blank-cells/?share=twitter)

### Like this:

Like Loading…
