Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help with Time formula

I need some help on the following formula. It works
perfectly as written. I want to replace the reference
to "P4=30" & "P4=59" with a new column that if tagged
with a "Y"
(S4=Y), that the formula will work as composed.

When I replace the reference as staed above with the new
column, the figures do not compute properly.

In order to understand what I am trying to accomplish, I
will probably have to send a copy of my spreadsheet for
explanation.



=IF(ISBLANK(A4),"",PRODUCT(H3<N3,D4=H3,P4<=30,INT (A4+E4*
(P4<30)+F4*(P4=30)-A3-I3-(I3<E3))*8/24+MAX((A4+E4*(P4<30)
+F4*(P4=30)-A3-I3-(I3<E3))-INT(A4+E4*(P4<30)+F4*(P4=30)-
A3-I3-(I3<E3))-16/24,0))+PRODUCT(H3<N3,D4=H3,P430,
(A4+E4*(P4<59)+F4*(P4=59)-A3-I3-(I3<E3))-16/24))

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 620
Default Help with Time formula

Larry,
Did you use quotes round the "Y"?

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Larry A. Witcher" wrote in message
...
I need some help on the following formula. It works
perfectly as written. I want to replace the reference
to "P4=30" & "P4=59" with a new column that if tagged
with a "Y"
(S4=Y), that the formula will work as composed.

When I replace the reference as staed above with the new
column, the figures do not compute properly.

In order to understand what I am trying to accomplish, I
will probably have to send a copy of my spreadsheet for
explanation.



=IF(ISBLANK(A4),"",PRODUCT(H3<N3,D4=H3,P4<=30,INT (A4+E4*
(P4<30)+F4*(P4=30)-A3-I3-(I3<E3))*8/24+MAX((A4+E4*(P4<30)
+F4*(P4=30)-A3-I3-(I3<E3))-INT(A4+E4*(P4<30)+F4*(P4=30)-
A3-I3-(I3<E3))-16/24,0))+PRODUCT(H3<N3,D4=H3,P430,
(A4+E4*(P4<59)+F4*(P4=59)-A3-I3-(I3<E3))-16/24))



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Help with Time formula

=IF(ISBLANK(A4),"",PRODUCT(H3<N3,D4=H3,Y<=30,INT( A4+E4*
(Y<30)+F4*(Y=30)-A3-I3-(I3<E3))*8/24+MAX((A4+E4*(Y<30)
+F4*(Y=30)-A3-I3-(I3<E3))-INT(A4+E4*(Y<30)+F4*(Y=30)-
A3-I3-(I3<E3))-16/24,0))+PRODUCT(H3<N3,D4=H3,Y30,
(A4+E4*(Y<59)+F4*(Y=59)-A3-I3-(I3<E3))-16/24))

Insert = Name = Defined
Name: Y
Refersto: =Sheet1!$S$4

--
Regards,
Tom Ogilvy

Larry A. Witcher wrote in message
...
I need some help on the following formula. It works
perfectly as written. I want to replace the reference
to "P4=30" & "P4=59" with a new column that if tagged
with a "Y"
(S4=Y), that the formula will work as composed.

When I replace the reference as staed above with the new
column, the figures do not compute properly.

In order to understand what I am trying to accomplish, I
will probably have to send a copy of my spreadsheet for
explanation.



=IF(ISBLANK(A4),"",PRODUCT(H3<N3,D4=H3,P4<=30,INT (A4+E4*
(P4<30)+F4*(P4=30)-A3-I3-(I3<E3))*8/24+MAX((A4+E4*(P4<30)
+F4*(P4=30)-A3-I3-(I3<E3))-INT(A4+E4*(P4<30)+F4*(P4=30)-
A3-I3-(I3<E3))-16/24,0))+PRODUCT(H3<N3,D4=H3,P430,
(A4+E4*(P4<59)+F4*(P4=59)-A3-I3-(I3<E3))-16/24))



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
Time formula returns night time by mistake ferde Excel Discussion (Misc queries) 7 October 11th 08 03:51 PM
Time formula (difference of predicted and actual time) deb Excel Discussion (Misc queries) 7 September 26th 08 04:55 PM
convert from percentage of time to time using complex formula in . Nush Excel Worksheet Functions 2 October 4th 07 05:20 PM
Formula to find Stop Time from Start Time and Total Minutes Jonathan Bickett Excel Worksheet Functions 5 March 7th 07 05:22 PM
template or formula for start time -finish time -total hours ple cc New Users to Excel 1 March 27th 06 06:06 PM


All times are GMT +1. The time now is 05:40 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"