Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Big Rick
 
Posts: n/a
Default Recalculation of Formula.

Hello everybody.
In cell F5 I have the formula '=(D5-C5-E5)*1440/60.
This formula will give me the duration of a work shift.
( D5 = Finish Time C5 = Start Time E5 = Lunch Break.)

In a seperate cell (Say H5) I want to put in general information, (Day off,
Late Shift, etc.) but if that information is "Sick day", I want F5 to
display 7.50 (as in hours) without any start or finish times in the other
cells.

Any help would be greatly appreciated.


Thanking you in anticipation
--
Big Rick
  #2   Report Post  
Ian
 
Posts: n/a
Default

In F5: =IF(H5="Sick day",TIME(7,30,0),=(D5-C5-E5)*1440/60)

--
Ian
--
"Big Rick" wrote in message
...
Hello everybody.
In cell F5 I have the formula '=(D5-C5-E5)*1440/60.
This formula will give me the duration of a work shift.
( D5 = Finish Time C5 = Start Time E5 = Lunch Break.)

In a seperate cell (Say H5) I want to put in general information, (Day
off,
Late Shift, etc.) but if that information is "Sick day", I want F5 to
display 7.50 (as in hours) without any start or finish times in the other
cells.

Any help would be greatly appreciated.


Thanking you in anticipation
--
Big Rick



  #3   Report Post  
Big Rick
 
Posts: n/a
Default

Thanks but I am getting an error when typing this in.
Please can you help further
--
Big Rick


"Ian" wrote:

In F5: =IF(H5="Sick day",TIME(7,30,0),=(D5-C5-E5)*1440/60)

--
Ian
--
"Big Rick" wrote in message
...
Hello everybody.
In cell F5 I have the formula '=(D5-C5-E5)*1440/60.
This formula will give me the duration of a work shift.
( D5 = Finish Time C5 = Start Time E5 = Lunch Break.)

In a seperate cell (Say H5) I want to put in general information, (Day
off,
Late Shift, etc.) but if that information is "Sick day", I want F5 to
display 7.50 (as in hours) without any start or finish times in the other
cells.

Any help would be greatly appreciated.


Thanking you in anticipation
--
Big Rick




  #4   Report Post  
Big Rick
 
Posts: n/a
Default

I have tweaked Ian's formula (many thanks to him) to read
=IF(H5="sick day",Holidays!V4/5,(D5-C5-E5)*1440/60)

Holidays!V4 contains the number 37.50 or 40. This is for different contracts.
This now works correctly.

However,could you help me one stage further.
If H5 does contain the words "sick day", I would like the result of the
formula (either 7.50 or 8) to be in red. I would normally conditionally
format, but cannot do this because it is possible to actually work a 7.5hr or
8hr day and these cannot be in red.

Thanking you in anticipation again.
--
Big Rick


"Big Rick" wrote:

Thanks but I am getting an error when typing this in.
Please can you help further
--
Big Rick


"Ian" wrote:

In F5: =IF(H5="Sick day",TIME(7,30,0),=(D5-C5-E5)*1440/60)

--
Ian
--
"Big Rick" wrote in message
...
Hello everybody.
In cell F5 I have the formula '=(D5-C5-E5)*1440/60.
This formula will give me the duration of a work shift.
( D5 = Finish Time C5 = Start Time E5 = Lunch Break.)

In a seperate cell (Say H5) I want to put in general information, (Day
off,
Late Shift, etc.) but if that information is "Sick day", I want F5 to
display 7.50 (as in hours) without any start or finish times in the other
cells.

Any help would be greatly appreciated.


Thanking you in anticipation
--
Big Rick




  #5   Report Post  
Ian
 
Posts: n/a
Default

You can still use conditional formatting. In F5 select conditional
formatting, select Formula is and enter =H5="Sick day". Then select the
formatting you require.

--
Ian
--
"Big Rick" wrote in message
...
I have tweaked Ian's formula (many thanks to him) to read
=IF(H5="sick day",Holidays!V4/5,(D5-C5-E5)*1440/60)

Holidays!V4 contains the number 37.50 or 40. This is for different
contracts.
This now works correctly.

However,could you help me one stage further.
If H5 does contain the words "sick day", I would like the result of the
formula (either 7.50 or 8) to be in red. I would normally conditionally
format, but cannot do this because it is possible to actually work a 7.5hr
or
8hr day and these cannot be in red.

Thanking you in anticipation again.
--
Big Rick


"Big Rick" wrote:

Thanks but I am getting an error when typing this in.
Please can you help further
--
Big Rick


"Ian" wrote:

In F5: =IF(H5="Sick day",TIME(7,30,0),=(D5-C5-E5)*1440/60)

--
Ian
--
"Big Rick" wrote in message
...
Hello everybody.
In cell F5 I have the formula '=(D5-C5-E5)*1440/60.
This formula will give me the duration of a work shift.
( D5 = Finish Time C5 = Start Time E5 = Lunch Break.)

In a seperate cell (Say H5) I want to put in general information,
(Day
off,
Late Shift, etc.) but if that information is "Sick day", I want F5
to
display 7.50 (as in hours) without any start or finish times in the
other
cells.

Any help would be greatly appreciated.


Thanking you in anticipation
--
Big Rick







  #6   Report Post  
Big Rick
 
Posts: n/a
Default

Many thanks to Ian for all his help. I have never been let down by the help
from you all.
--
Big Rick


"Ian" wrote:

You can still use conditional formatting. In F5 select conditional
formatting, select Formula is and enter =H5="Sick day". Then select the
formatting you require.

--
Ian
--
"Big Rick" wrote in message
...
I have tweaked Ian's formula (many thanks to him) to read
=IF(H5="sick day",Holidays!V4/5,(D5-C5-E5)*1440/60)

Holidays!V4 contains the number 37.50 or 40. This is for different
contracts.
This now works correctly.

However,could you help me one stage further.
If H5 does contain the words "sick day", I would like the result of the
formula (either 7.50 or 8) to be in red. I would normally conditionally
format, but cannot do this because it is possible to actually work a 7.5hr
or
8hr day and these cannot be in red.

Thanking you in anticipation again.
--
Big Rick


"Big Rick" wrote:

Thanks but I am getting an error when typing this in.
Please can you help further
--
Big Rick


"Ian" wrote:

In F5: =IF(H5="Sick day",TIME(7,30,0),=(D5-C5-E5)*1440/60)

--
Ian
--
"Big Rick" wrote in message
...
Hello everybody.
In cell F5 I have the formula '=(D5-C5-E5)*1440/60.
This formula will give me the duration of a work shift.
( D5 = Finish Time C5 = Start Time E5 = Lunch Break.)

In a seperate cell (Say H5) I want to put in general information,
(Day
off,
Late Shift, etc.) but if that information is "Sick day", I want F5
to
display 7.50 (as in hours) without any start or finish times in the
other
cells.

Any help would be greatly appreciated.


Thanking you in anticipation
--
Big Rick






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
writing a formula for a colored value aaronwexler New Users to Excel 11 September 1st 05 03:11 PM
referencing named formula using INDIRECT function [email protected] Excel Worksheet Functions 19 May 11th 05 09:48 AM
Simplify formula Luke Excel Worksheet Functions 37 May 6th 05 07:21 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM


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