Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Conditional SUMIF if fields are blank

Tags:

excel

I want to sum the values of column B where column A has a blank field. I have tried the following, but it returns a result of zero

=SUMIF(A:A,A:A="",B:B)

I need to reference an entire column, for future expansion on the data. Here is my sample data that i am trying to conditionally sum in EXCEL 2007.

**A      B**
        5.00
        2.00
        2.00
        2.00
ABS004  1.00
AFS001  4.00
AFS001  5.00
AFS001  5.00
AFS001  2.00
like image 623
JPVoogt Avatar asked Mar 07 '12 06:03

JPVoogt


People also ask

Does Sumif work if there are blank cells?

Using Excel SUMIF function you can sum the numbers from a range of cells that meet the criteria based on cells that do not contain any value (Blank) or cells that are contain a value (Not Blank).

How do you use Sumifs with blank cells?

We can use the SUMIFS Function to sum all Scores for Players without names in the example below. We use double quotes (“”) to represent a blank cell in Excel. Our example ignores Players A, B, C, and D and sums the scores for unknown Players.

How do you do an if statement if a cell is blank?

Sometimes you need to check if a cell is blank, generally because you might not want a formula to display a result without input. In this case we're using IF with the ISBLANK function: =IF(ISBLANK(D2),"Blank","Not Blank")


1 Answers

You shouldn't refer to the column in the criterion - should be just

=SUMIF(A:A,"",B:B)
like image 59
barry houdini Avatar answered Oct 12 '22 14:10

barry houdini