Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Default Formatting a spreadsheet to calculate difference in dates etc.

Hi everyone I am new to this forum but require some help so what ever you can do will be much appreciated.

First I need to describe what I want to achieve:

I work in a company that supplies materials over a hire period, so the first column in my spreadsheet will be the items description (a2), followed by the Hire period (b2) which is the first problem I have come across as I cannot format the cell to be weeks. The next cell is the start date for hire (c2) followed by todays date (d2). The next cell is the difference between these two dates (e2) where i have used the formula: =+INT(DATEDIF(C2,D2,"D")/7)&" week(s) "&MOD(DATEDIF(C2,D2,"D"),7)&" day(s)"

I want the next cell to show me the how much E2 is over B2 which I would then multipy by an over hire charge rate (g2) giving me a value to charge (h2).

Any help in this matter will be much appreciated
  #2   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by Craig Padded Smith View Post
Hi everyone I am new to this forum but require some help so what ever you can do will be much appreciated.

First I need to describe what I want to achieve:

I work in a company that supplies materials over a hire period, so the first column in my spreadsheet will be the items description (a2), followed by the Hire period (b2) which is the first problem I have come across as I cannot format the cell to be weeks. The next cell is the start date for hire (c2) followed by todays date (d2). The next cell is the difference between these two dates (e2) where i have used the formula: =+INT(DATEDIF(C2,D2,"D")/7)&" week(s) "&MOD(DATEDIF(C2,D2,"D"),7)&" day(s)"

I want the next cell to show me the how much E2 is over B2 which I would then multipy by an over hire charge rate (g2) giving me a value to charge (h2).

Any help in this matter will be much appreciated
Hi Craig,

Any chance you could post an example workbook with some dummy data?
It makes it far easier to help you...

S.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,045
Default Formatting a spreadsheet to calculate difference in dates etc.

On Fri, 7 Sep 2012 08:23:24 +0000, Craig Padded Smith wrote:


Hi everyone I am new to this forum but require some help so what ever
you can do will be much appreciated.

First I need to describe what I want to achieve:

I work in a company that supplies materials over a hire period, so the
first column in my spreadsheet will be the items description (a2),
followed by the Hire period (b2) which is the first problem I have come
across as I cannot format the cell to be weeks. The next cell is the
start date for hire (c2) followed by todays date (d2). The next cell is
the difference between these two dates (e2) where i have used the
formula: =+INT(DATEDIF(C2,D2,"D")/7)&" week(s)
"&MOD(DATEDIF(C2,D2,"D"),7)&" day(s)"

I want the next cell to show me the how much E2 is over B2 which I would
then multipy by an over hire charge rate (g2) giving me a value to
charge (h2).

Any help in this matter will be much appreciated


I assume the value in B2 is a number representing the weeks alloted for the task. That being the case, it can be custom formatted as:

Format Cells/Number/Custom Type: 0" Week(s)"

E2: =INT((D2-C2)/7) & " Week(s) " & MOD(D2-C2,7) & " day(s)"
F2: =D2-C2-B2*7 -- "overage" in days. To get overage in weeks:
=(D2-C2-B2*7) / 7
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
calculate difference between 2 dates nikko Excel Worksheet Functions 16 September 11th 08 11:15 AM
Calculate difference in dates Geo Excel Discussion (Misc queries) 11 August 12th 08 07:18 AM
How do I calculate the difference between 2 dates (m,d,y) ? ady_sandu Excel Worksheet Functions 8 September 29th 05 05:09 PM
Calculate Difference b/e 2 dates. scharee New Users to Excel 2 August 2nd 05 04:28 PM
Calculate difference between two dates Trainer Excel Worksheet Functions 1 February 11th 05 02:04 PM


All times are GMT +1. The time now is 06:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"