Linked cells not keeping conditional formatting

fullspool

New Member
Joined
Aug 12, 2019
Messages
2
Hello,

I have cell created in a time sheet to give me a sum for reg hrs, if that phase is zero I have conditional formatting to display a "--" , however
I have a summary under the time sheet which just mirrors what's displayed in those cells. My problem is the sum tables with the conditional formatting
it displays a -- which is correct but my summary cells show a 0.

How can I get my summary cells to show a "--" instead of a 0?

Thanks!

you can download the spreadsheet here.

https://drive.google.com/open?id=1RplVmDCbnAgRmAxOwp8ZrANdYR4ySF2-
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
In cells P5:Q31 why don't you change the formula to
=if(B5+C5+D5+E5+F5+G5+H5+I5+J5+K5+L5+M5+N5+O5=0,"--",B5+C5+D5+E5+F5+G5+H5+I5+J5+K5+L5+M5+N5+O5)
or a simplified =if(sum(B5:O5)=0,"--",sum(B5:O5))

When I change the formula I see this (Except with Green Coloring)


Excel 2010
ABCDEFGHIJKLMN
37PhaseWTCWTESWCSWEWTLSWLWLSSLSWPSWPLSPSSPLOFF
38Regular--------------------------
39Overtime--------------------------
40Total Hours0.00
Sheet1
 
Last edited:
Upvote 0
Hey,

Could you just add a conditional formatting rule to these cells and where they equal 0 then format as "--" ?
 
Upvote 0
Custom formatting, not condtional formatting.

Excel shows "--"

Google Sheets shows all zeroes.
 
Upvote 0
Conditional formatting doesn't work either for my purposes, it works great in my template I shared but when I run my python script that creates new tabs based on the employees names who submitted a time sheet those values default to zero.
The accounting department wanted those entries to be -- or blank instead of showing "0" but it's beyond my capabilities.
 
Upvote 0

Forum statistics

Threads
1,214,787
Messages
6,121,569
Members
449,038
Latest member
Guest1337

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