A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Custom Cell Formatting Using % With Dates



 
 
Thread Tools Display Modes
  #1  
Old March 10th, 2010, 03:41 PM posted to microsoft.public.excel.worksheet.functions
Jason McDonald
external usenet poster
 
Posts: 1
Default Custom Cell Formatting Using % With Dates

First, thanks in advance for any help.

I'm using the NETWORKDAYS function along with the TODAY function to
calculate the amount of time that has elapsed for a given phase on a
function. The problem I have is with formatting the percentage
complete. So for example...

1. Today is 3/10/10. If the phase of the project is say 3/5/10 to
3/12/10 I'm fine.
2. If the start date is later, say 3/11/10 it displays a negative
number in the cell, like -10% complete.
3. If the completion date was 3/9/10 I might end up with something
like 110% complete.

Now, I've been able to fix this by custom formatting the cells by
using something like this:
0%;[0]"0%";General to get rid of the negatives OR [1]"100%";General
BUT
when I try to put them together in one logical formula I always end up
screwing something up and it doesn't come out right.

Again, appreciate your help.
  #2  
Old March 10th, 2010, 04:05 PM posted to microsoft.public.excel.worksheet.functions
Bernard Liengme
external usenet poster
 
Posts: 516
Default Custom Cell Formatting Using % With Dates

Would you like to share your formula that computed the percentage?
Maybe this can be fixed to give a blank rather than negative value
best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"Jason McDonald" wrote in message
...
First, thanks in advance for any help.

I'm using the NETWORKDAYS function along with the TODAY function to
calculate the amount of time that has elapsed for a given phase on a
function. The problem I have is with formatting the percentage
complete. So for example...

1. Today is 3/10/10. If the phase of the project is say 3/5/10 to
3/12/10 I'm fine.
2. If the start date is later, say 3/11/10 it displays a negative
number in the cell, like -10% complete.
3. If the completion date was 3/9/10 I might end up with something
like 110% complete.

Now, I've been able to fix this by custom formatting the cells by
using something like this:
0%;[0]"0%";General to get rid of the negatives OR [1]"100%";General
BUT
when I try to put them together in one logical formula I always end up
screwing something up and it doesn't come out right.

Again, appreciate your help.


  #3  
Old March 10th, 2010, 04:13 PM posted to microsoft.public.excel.worksheet.functions
Fred Smith[_4_]
external usenet poster
 
Posts: 2,386
Default Custom Cell Formatting Using % With Dates

Try the following custom format:
[0]"0%";[1]"100%";0%

Remember, a format affects only the display of the number. If you use the
cell in another formula, the actual value (like -10%) will be used, not the
displayed result.

Regards,
Fred

"Jason McDonald" wrote in message
...
First, thanks in advance for any help.

I'm using the NETWORKDAYS function along with the TODAY function to
calculate the amount of time that has elapsed for a given phase on a
function. The problem I have is with formatting the percentage
complete. So for example...

1. Today is 3/10/10. If the phase of the project is say 3/5/10 to
3/12/10 I'm fine.
2. If the start date is later, say 3/11/10 it displays a negative
number in the cell, like -10% complete.
3. If the completion date was 3/9/10 I might end up with something
like 110% complete.

Now, I've been able to fix this by custom formatting the cells by
using something like this:
0%;[0]"0%";General to get rid of the negatives OR [1]"100%";General
BUT
when I try to put them together in one logical formula I always end up
screwing something up and it doesn't come out right.

Again, appreciate your help.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:48 PM.


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