Show blank if no value in previous cells and show an accounting zero if zero entered in previous cells

SaraWitch

Active Member
Joined
Sep 29, 2015
Messages
370
Office Version
  1. 365
Platform
  1. Windows
Hello peeps,

I have a conditionally formatted formula in G1 to be blank if A1:F1 calculates zero. Conditional format:
Excel Formula:
_-£* #,##0.00_-;-£* #,##0.00_-;;_-@_-

However, what I really need is for G1 to be blank if A1:F1 are blank and an accounting zero in G1 if zeros are entered in A1:F1 (and, of course, calculate if greater than zero). I have tried several IF formulas in G1, but nothing is hitting the mark.

Any help would be gratefully received :)
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
So, in column G, I want a blank if no values are entered in A:F (e.g., G3) and £0.00 to show if £0.00 manually entered in A:F (e.g., G1) and calculate if anything greater than zero (e.g., G2):

Auto move row.xlsm
ABCDEFG
1£ 0.00£ 0.00£ 0.00£ 0.00£ 0.00£ 0.00 
2£ 25.00£ 0.00£ 0.00£ 0.00£ 0.00£ 10.00£ 35.00
3 
4 
5 
6 
7 
8 
Sheet3
Cell Formulas
RangeFormula
G1:G8G1=SUM(A1:F1)
Cells with Data Validation
CellAllowCriteria
A1:G8Any value


Hope this helps...
 
Upvote 0
I could not be done by formating alone. Because sum of nothing (all blank) returns 0, not "" (empty string). So you will have to add this to your formula like so:

Libro2
ABCDEFGH
1 <-- no data entered
20,00 €0,00 €0,00 €0,00 €0,00 €0,00 €0,00 €<-- all zero
325,00 €0,00 €0,00 €0,00 €0,00 €10,00 €35,00 €<-- some value
Hoja1
Cell Formulas
RangeFormula
G1:G3G1=IF(SUM((A1:F1<>"")*1),SUM(A1:F1),"")
 
Upvote 0
Solution
Perfect; just what I need! I just tweaked the CF to
Excel Formula:
_-£* #,##0.00_-;-£* #,##0.00_-;_-£* "0.00"??_-;_-@_-

Thank you, @felixstraube! :biggrin:
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,996
Members
452,373
Latest member
TimReeks

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top