#1   Report Post  
Posted to microsoft.public.excel.newusers
Steve
 
Posts: n/a
Default Calcalation

Hi
Can anyone tell me how to calculate the rental of an item

Col A would be the date the rental period started

Col B rental ended

Col C to calculate the time x £1.75 per week worked out top the nearest full
week.

TIA
Steve


  #2   Report Post  
Posted to microsoft.public.excel.newusers
Ikaabod
 
Posts: n/a
Default Calcalation


Try:

=ROUND(((B1-A1)/7),0)*1.75

Note that if they rent for less than 4 days it will result in zero.

If you want it to default to 1.75 if they rent for less than 4 days do
the following:

=IF(AND((B1-A1)<4,(B1-A1)=0),1.75,ROUND(((B1-A1)/7),0)*1.75)

Hope that helps.


--
Ikaabod
------------------------------------------------------------------------
Ikaabod's Profile: http://www.excelforum.com/member.php...o&userid=33371
View this thread: http://www.excelforum.com/showthread...hreadid=534975

  #3   Report Post  
Posted to microsoft.public.excel.newusers
JE McGimpsey
 
Posts: n/a
Default Calcalation

One way:

A1: <start date
B1: <end date
C1: =CEILING((B1-A1)/7,1)*1.75

In article ,
"Steve" <swr1953(at)yahoo(dot)co(dot)uk wrote:

Hi
Can anyone tell me how to calculate the rental of an item

Col A would be the date the rental period started

Col B rental ended

Col C to calculate the time x £1.75 per week worked out top the nearest full
week.

TIA
Steve

  #4   Report Post  
Posted to microsoft.public.excel.newusers
JE McGimpsey
 
Posts: n/a
Default Calcalation

I may have misinterpreted your "to the nearest full week" - I was
assuming one rounds up to the full week. To limit it to the last full
week, use FLOOR() instead of CEILING().

To round to the nearest full week,

=ROUND((B1-A1)/7,0)*1.75

In article ,
JE McGimpsey wrote:

One way:

A1: <start date
B1: <end date
C1: =CEILING((B1-A1)/7,1)*1.75

In article ,
"Steve" <swr1953(at)yahoo(dot)co(dot)uk wrote:

Hi
Can anyone tell me how to calculate the rental of an item

Col A would be the date the rental period started

Col B rental ended

Col C to calculate the time x £1.75 per week worked out top the nearest
full
week.

TIA
Steve

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



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