Calcalation

S

Steve

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
 
I

Ikaabod

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 d
the following:

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

Hope that helps
 
J

JE McGimpsey

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top