Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 49
Default HELP NOTHING WORKS

I have used the following formula to find the no. of working hours overrun
between a predicted endtime and an actual end time. All of the answers that
it finds are positive even if the project finished early. How can i adjust
this formula to give negative answers as well as positive?

=IF(AND(INT(P38)=INT(O38),NOT(ISNA(MATCH(INT(P38), $Q$1:$Q$3,0)))),0,ABS(IF(INT(P38)=INT(O38),ROUND(2 4*(O38-P38),2),
(24*($P$2-$P$1)*
(MAX(NETWORKDAYS(P38+1,O38-1,$Q$1:$Q$3),0)+
INT(24*(((O38-INT(O38))-
(P38-INT(P38)))+($P$2-$P$1))/(24*($P$2-$P$1))))+
MOD(ROUND(((24*(O38-INT(O38)))-24*$P$1)+
(24*$P$2-(24*(P38-INT(P38)))),2),
ROUND((24*($P$2-$P$1)),2))))))

O38 is the projected completion date/time
P38 is the actual date/time completed
P1 is the day start time (09:00)
P2 is the day end time (17:00)



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default HELP NOTHING WORKS

I may be missing something but what do the start and end times add to your
formula? you seem to be simply calculating the difference between O38 and P38.

If you want to do that and display negaive values then you have 2 choices.
Use the 1904 date system which could mess up other dates on your sheet or try
this:-

=IF(P38=O38,TEXT(P38-O38,"[h]"),TEXT(O38-P38,"-[h]"))

Mike

"DaveAsh" wrote:

I have used the following formula to find the no. of working hours overrun
between a predicted endtime and an actual end time. All of the answers that
it finds are positive even if the project finished early. How can i adjust
this formula to give negative answers as well as positive?

=IF(AND(INT(P38)=INT(O38),NOT(ISNA(MATCH(INT(P38), $Q$1:$Q$3,0)))),0,ABS(IF(INT(P38)=INT(O38),ROUND(2 4*(O38-P38),2),
(24*($P$2-$P$1)*
(MAX(NETWORKDAYS(P38+1,O38-1,$Q$1:$Q$3),0)+
INT(24*(((O38-INT(O38))-
(P38-INT(P38)))+($P$2-$P$1))/(24*($P$2-$P$1))))+
MOD(ROUND(((24*(O38-INT(O38)))-24*$P$1)+
(24*$P$2-(24*(P38-INT(P38)))),2),
ROUND((24*($P$2-$P$1)),2))))))

O38 is the projected completion date/time
P38 is the actual date/time completed
P1 is the day start time (09:00)
P2 is the day end time (17:00)



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 49
Default HELP NOTHING WORKS

The formula only gives total hour difference and not 9am-5pm working hours
difference.

"Mike H" wrote:

I may be missing something but what do the start and end times add to your
formula? you seem to be simply calculating the difference between O38 and P38.

If you want to do that and display negaive values then you have 2 choices.
Use the 1904 date system which could mess up other dates on your sheet or try
this:-

=IF(P38=O38,TEXT(P38-O38,"[h]"),TEXT(O38-P38,"-[h]"))

Mike

"DaveAsh" wrote:

I have used the following formula to find the no. of working hours overrun
between a predicted endtime and an actual end time. All of the answers that
it finds are positive even if the project finished early. How can i adjust
this formula to give negative answers as well as positive?

=IF(AND(INT(P38)=INT(O38),NOT(ISNA(MATCH(INT(P38), $Q$1:$Q$3,0)))),0,ABS(IF(INT(P38)=INT(O38),ROUND(2 4*(O38-P38),2),
(24*($P$2-$P$1)*
(MAX(NETWORKDAYS(P38+1,O38-1,$Q$1:$Q$3),0)+
INT(24*(((O38-INT(O38))-
(P38-INT(P38)))+($P$2-$P$1))/(24*($P$2-$P$1))))+
MOD(ROUND(((24*(O38-INT(O38)))-24*$P$1)+
(24*$P$2-(24*(P38-INT(P38)))),2),
ROUND((24*($P$2-$P$1)),2))))))

O38 is the projected completion date/time
P38 is the actual date/time completed
P1 is the day start time (09:00)
P2 is the day end time (17:00)



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
It works but why...? will Links and Linking in Excel 13 October 14th 05 05:39 PM
This almost works, but... Mr. Smiley Excel Discussion (Misc queries) 2 September 15th 05 07:24 PM
How do I convert works file to excel without works software? CatMB Excel Discussion (Misc queries) 1 June 21st 05 04:12 PM
Works in all columns but one?? Doug Mc New Users to Excel 2 February 12th 05 05:37 PM
Excel to works peterbilt379 Excel Discussion (Misc queries) 0 February 7th 05 12:15 AM


All times are GMT +1. The time now is 01:30 PM.

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"