1

=SUMIF(Auto_Tracked!B1:B300,"rcumbaa",Auto_Tracked!D1:D300)

I would like it to show blank rather than 0 if possible

5 Answers 5

3

Simply place your formula in an IF statement to give you a blank cell if the result is 0.

Updated code:

=IF((SUMIF(Auto_Tracked!B1:B300, "rcumbaa",Auto_Tracked!D1:D300))=0,"",(SUMIF(Auto_Tracked!B1:B300, "rcumbaa",Auto_Tracked!D1:D300)))

This will check to see if the calculation results in a 0, and leave the cell blank if it is true. Otherwise, it will use the calculation results.

3
  • I get an error in this formula
    – Tom
    Sep 10, 2012 at 16:34
  • I updated the code. This one is tested.
    – CharlieRB
    Sep 10, 2012 at 16:54
  • =IF(SUMIF(Auto_Tracked!B9:B308,"tfavaro",Auto_Tracked!D9:D308)=0,"",(SUMIF(Auto_Tracked!B9:B308,"tfavaro",Auto_Tracked!D9:D308)))
    – Tom
    Sep 10, 2012 at 17:32
0

You could hide zeroes with a conditional format. Click Conditional Formatting > New Rule and select Format only cells that contain.... Make the rule Cell value is 0 and set the text color to the same value as the background color (usually white).

0

I would format the cells to not show a zero value. Right click on the cells that you want to hide the zero in and apply the formatting for the positive value followed by a ; negative values; zero values. In the example below, the positive values show the cell color, negative values are red and the zero values are blank.enter image description here

2
  • format would not work in this case because I need 0's in other cells, I'm looking for something I can add to the formula like +if=0,"", - but not sure how to
    – Tom
    Sep 10, 2012 at 14:38
  • You can format each individual cell. Don't format those cells that you want a "0" in.
    – wbeard52
    Sep 11, 2012 at 4:35
0

This can be easily achieved by a simple formula:

=TEXT(SUMIF(Auto_Tracked!B1:B300,"rcumbaa",Auto_Tracked!D1:D300),"#")
0

It is not working if value is ZERO in any cells then It is showing blank of that value also instead of ZERO. It wants to show blank in that condition only where cells is blank or not matching with conditions

1
  • As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
    – Community Bot
    Feb 27, 2022 at 11:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .