Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Calculate date 28 days from now if hours reduce

In a spreadsheet to calculate changes in an employee's hours, cell A5
holds the old hours worked, B5 holds the new hours, and C5 calculates
the difference between A5 and B5. A7 holds the date that the change is
effective.

B7 shows the date on which the variation to the contract is effective.
This is where I need assistance.

If the hours have increased, then B7 should have the same value as A7
(because with an increase in hours the change is effective
immediately).

If however the hours have reduced, then B7 needs to show an "effective
from" date 28 days after the date in A7 (because with a reduction, a
member of staff needs to be given 28 days notice).

A7 and B7 are both formatted to display dates using the the format
DD/MM/YY.

Can anyone suggest a way of doing this?

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Calculate date 28 days from now if hours reduce

In B7

=A7+(B5<A5)*28

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"watty" wrote in message
ups.com...
In a spreadsheet to calculate changes in an employee's hours, cell A5
holds the old hours worked, B5 holds the new hours, and C5 calculates
the difference between A5 and B5. A7 holds the date that the change is
effective.

B7 shows the date on which the variation to the contract is effective.
This is where I need assistance.

If the hours have increased, then B7 should have the same value as A7
(because with an increase in hours the change is effective
immediately).

If however the hours have reduced, then B7 needs to show an "effective
from" date 28 days after the date in A7 (because with a reduction, a
member of staff needs to be given 28 days notice).

A7 and B7 are both formatted to display dates using the the format
DD/MM/YY.

Can anyone suggest a way of doing this?

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Calculate date 28 days from now if hours reduce

Many thanks - that works fine!


Bob Phillips wrote:
In B7

=A7+(B5<A5)*28

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"watty" wrote in message
ups.com...
In a spreadsheet to calculate changes in an employee's hours, cell A5
holds the old hours worked, B5 holds the new hours, and C5 calculates
the difference between A5 and B5. A7 holds the date that the change is
effective.

B7 shows the date on which the variation to the contract is effective.
This is where I need assistance.

If the hours have increased, then B7 should have the same value as A7
(because with an increase in hours the change is effective
immediately).

If however the hours have reduced, then B7 needs to show an "effective
from" date 28 days after the date in A7 (because with a reduction, a
member of staff needs to be given 28 days notice).

A7 and B7 are both formatted to display dates using the the format
DD/MM/YY.

Can anyone suggest a way of doing this?

Thanks


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
duration days jack nelson Excel Discussion (Misc queries) 10 August 29th 06 07:18 AM
Calculating elapsed days and hours LauriS Excel Discussion (Misc queries) 4 August 25th 06 05:40 AM
How do I calculate the week day hours between 2 days Mickey Excel Discussion (Misc queries) 1 October 6th 05 12:29 AM
How do I calculate if a date is in a certain time frame? Pe66les Excel Worksheet Functions 19 August 27th 05 11:07 PM
how to calculate a date .. say 34 days from today shaunl Excel Discussion (Misc queries) 5 July 13th 05 02:38 PM


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