+ Reply to Thread
Results 1 to 7 of 7

Calculation problem

  1. #1
    Registered User
    Join Date
    02-07-2020
    Location
    Derby
    MS-Off Ver
    Office 365
    Posts
    4

    Calculation problem

    Hi folks,

    Been trying several things to solve this problem!

    In the attached Summary tab of the worksheet, cells H14 and H16 should reflect that once 10,000 miles has accumulated then with the example figures given those boxes should each read 1000 miles, not 2000 miles in H16. The calculation in H14 and H16 works for case where 10000 is not yet reached and for after 10000 has been reached, but not for the case where 10000 limit is reached for the first time. Any suggestions would be welcomed.

    Kind regards
    Grayram
    Attached Files Attached Files

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: Calculation problem

    I'm confused, your formula in H14 says that if H9 is less than or equal to 10,000 return H7, if not return 0.
    your formula in H16 says that if H9 is greater than 10,000 return the value in H7, otherwise return 0.
    H7 is simply pulling the mileage from the Mileage detail tab cell O12 which has 2000.
    How is it supposed to return 1000, under what circumstances?
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,717

    Re: Calculation problem

    Change the formula in H14 to this:

    =IF(H5<=10000,10000-H5,0)

    and in H16 to this:

    =IF(H9>10000,H7-H14,0)

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    02-07-2020
    Location
    Derby
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Calculation problem

    Genius! Thank you Pete!

  5. #5
    Registered User
    Join Date
    02-07-2020
    Location
    Derby
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Calculation problem

    I know it was confused! That was my problem. Pete has solved it though. Thank you for your reply!

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,717

    Re: Calculation problem

    You're welcome - glad to help.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

  7. #7
    Registered User
    Join Date
    02-07-2020
    Location
    Derby
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Calculation problem

    All done! Thank you again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 01-15-2013, 08:51 AM
  2. Problem with calculation
    By Hermano in forum Excel General
    Replies: 5
    Last Post: 12-31-2009, 11:58 AM
  3. Calculation Problem
    By Daywalker in forum Excel General
    Replies: 9
    Last Post: 09-25-2009, 02:46 AM
  4. Calculation Problem
    By bengaluru in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-09-2009, 12:49 PM
  5. Calculation Problem
    By slwaite in forum Excel General
    Replies: 1
    Last Post: 07-18-2006, 02:35 PM
  6. Calculation problem - please help
    By Neil Hindry in forum Excel General
    Replies: 2
    Last Post: 07-10-2006, 09:39 AM
  7. Calculation Problem
    By cvolkert in forum Excel General
    Replies: 0
    Last Post: 08-22-2005, 01:14 PM
  8. Calculation problem
    By Ajtb in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-25-2005, 05:06 AM

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