Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
kimdnw
 
Posts: n/a
Default hide zeros & negatives for date formulas

I am working a data sheet with start/finish dates from which the bosses want
charts made etc. If I don't have a finish date, I get a massive negative
number, which skews everything. Plus the formula I am using for working
hours leaves me with a "-8" in every form block that has not yet had data
entered. Is there a way to suppress these negative numbers without affecting
format?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Sloth
 
Posts: n/a
Default hide zeros & negatives for date formulas

you could wrap your formulas like this to output 0 instead of negative numbers

=Max(formula,0)

or this will output a blank space (which is ignored by SUM and AVERAGE)

=IF(formula<0,"",formula)

"kimdnw" wrote:

I am working a data sheet with start/finish dates from which the bosses want
charts made etc. If I don't have a finish date, I get a massive negative
number, which skews everything. Plus the formula I am using for working
hours leaves me with a "-8" in every form block that has not yet had data
entered. Is there a way to suppress these negative numbers without affecting
format?

  #3   Report Post  
Posted to microsoft.public.excel.misc
kimdnw
 
Posts: n/a
Default hide zeros & negatives for date formulas

OK, so my existing formula is:
=(NETWORKDAYS(Start,Finish, Holiday)-1)*8+(MOD(D3,1)-MOD(C3,1))*24
based on an 8 hour work day and a 24 hour clock

New formula is:
=MAX((NETWORKDAYS(C3,D3, A44:A60)-1)*8+(MOD(D3,1)-MOD(C3,1))*24,0)

Seems to work! Thanks Sloth!

Kimdnw

"Sloth" wrote:

you could wrap your formulas like this to output 0 instead of negative numbers

=Max(formula,0)

or this will output a blank space (which is ignored by SUM and AVERAGE)

=IF(formula<0,"",formula)


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating formulas that allow the solutions to start with zeros. mevans Excel Discussion (Misc queries) 2 July 20th 05 05:00 PM
How can I hide formulas in a spreadsheet to send to a customer? RB Geek Excel Discussion (Misc queries) 3 May 13th 05 04:55 PM
How do I hide formulas in Excel cells? Rita Excel Discussion (Misc queries) 2 February 15th 05 08:55 PM
I want to hide the formula's which I have done, so that no one ca. Excel General Question Excel Discussion (Misc queries) 2 January 26th 05 12:04 PM
is there a way to hide zeros in a line graph L Young Charts and Charting in Excel 6 January 22nd 05 01:48 AM


All times are GMT +1. The time now is 07:42 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"