+ Reply to Thread
Results 1 to 4 of 4

Calculating parking fees, commission, etc

  1. #1
    Registered User
    Join Date
    05-21-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    1

    Calculating parking fees, commission, etc

    Hi, this is my first post here.. I got a question in which I can't figure out how to use the IF and AND functions to calculate question like these:

    Tim parked a car in X Parking Lot.

    The rates are

    For the first hour, the cost would be $5

    For the second hour, the cost would be $6.50

    For the third and subsequent hours, the cost would be $7.50

    I need to calculate, using the IF and AND functions, the amount due after each hour and the total amount due if he parked for 5 hours. Any help is really appreciated. Thanks!

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Calculating parking fees, commission, etc

    Sounds a bit like homework ...

    I'll give you an alternative approach which is perhaps more flexible:

    =SUMPRODUCT(--(A1>={0,1,2}),A1-{0,1,2},{5,1.5,1})

    where A1 holds 5 (if it is to hold time value 5:00 then references to A1 would become A1*24)

  3. #3
    Registered User
    Join Date
    07-17-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Calculating parking fees, commission, etc

    Hi, Did you create/found any such calculation for parking management.

    Even I am looking for the same.. if u have it can u share it and then I can customize it as per my requirements.

    Thank you for any help

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Calculating parking fees, commission, etc

    Bvin9,

    This is an old thread. Its better to create your own thread, you will get faster replies.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1