+ Reply to Thread
Results 1 to 2 of 2

Thread: Calcuating on two conditions

  1. #1
    Registered User
    Join Date
    07-01-2008
    Location
    Washington, DC
    Posts
    9

    Calcuating on two conditions

    Hi, I am developing an invoice and I am stumped with one question -

    I am able to create a flowchart, but not this one - but would love to get help from you.

    The question is - The first 20 minutes, the service will cost 150 dollars, and 50 dollars for each 20 minutes afterward. Now the flow chart works like this way -

    Let's say input is a x

    if input is a X,
    X equal or less 20 minutes = 150 dollars
    OR
    X is more than 20 minutes = 150 + ((x-20) (i'm lost in this formula)

    If you put 50 minutes - you will pay 150 dollars for first 20 minutes, and there are two 20 minutes intervals - which comes to 100 dollars. 150
    + 100 = 250 dollars.

    If you need my MS Excel sheet to get an idea, feel free to email me and I will send you the file.

    Thank you in advance for any help!

    Shani

  2. #2
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636
    Try:

    =150+ROUNDUP((A1-20)/20,0)*50

    where A1 house input value.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

+ 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.2.0