+ Reply to Thread
Results 1 to 8 of 8

how to apply automatic difference

  1. #1
    Registered User
    Join Date
    10-04-2022
    Location
    Lebanon
    MS-Off Ver
    365 MSO
    Posts
    5

    how to apply automatic difference

    Hello Everyone,

    I'm trying to calculate how many kilometers each vehicle traveled each month
    sample file attached. Thanks for your help
    Attached Files Attached Files

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,408

    Re: how to apply automatic difference

    calculate how many kilometers each vehicle traveled each month
    For example, why not assign the kilometers made between January 19 (117) and February 2 (240) to a month or months?
    Or divide the kilometers evenly over the (intermediate) time range?
    In this case: January 12/14*(240-117) and February 2/14*(240-117)??
    Last edited by HansDouwe; 10-04-2022 at 05:37 AM.

  3. #3
    Registered User
    Join Date
    10-04-2022
    Location
    Lebanon
    MS-Off Ver
    365 MSO
    Posts
    5

    Re: how to apply automatic difference

    can i get an easy formula in E to do the monthly total ?

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: how to apply automatic difference

    Hello Kid806022 and Welcome to Excel Forum.
    Perhaps the following will work:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    I don't understand why cell E4 should report zero and cell E10 should report 208. It would seem that either both should be zero or E4 should be 29.
    Let us know if you have any questions.
    Last edited by JeteMc; 10-09-2022 at 03:07 PM.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    10-04-2022
    Location
    Lebanon
    MS-Off Ver
    365 MSO
    Posts
    5

    Re: how to apply automatic difference

    Dear.
    you are correct E4 should be 29 and so on.
    your formula solved partially my issue, i applied it to my original file and i did not work on many rows when there is a month change, please see jpg attached
    thank you for your time and help
    Attached Images Attached Images

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: how to apply automatic difference

    Try pasting the following into cell E2 and copying down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.

  7. #7
    Registered User
    Join Date
    10-04-2022
    Location
    Lebanon
    MS-Off Ver
    365 MSO
    Posts
    5

    Re: how to apply automatic difference

    Quote Originally Posted by JeteMc View Post
    Try pasting the following into cell E2 and copying down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Thanks for the help however i still get #NUM! whenver a new month starts
    please see attached sample
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: how to apply automatic difference

    In the sample the #NUM! error occurs when the vehicle changes from the row above.
    The following removes the #NUM! errors in those cases:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.

+ 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. Apply a max constraint and roll over the difference
    By ILAW in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 03-25-2020, 01:19 PM
  2. Replies: 2
    Last Post: 01-22-2020, 05:06 PM
  3. [SOLVED] Conditional Formatting apply if value difference is greater then 50
    By HaroonSid in forum Excel General
    Replies: 3
    Last Post: 05-19-2017, 04:08 AM
  4. [SOLVED] apply in equation from fitting curve automatic
    By mazan2010 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-07-2016, 11:37 AM
  5. how to Calculate the difference between two times and apply <= to the condition
    By student_query in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-07-2013, 08:10 PM
  6. Setting Automatic Difference Across Columns Like AutoSum
    By Lavarinth in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-20-2007, 05:55 PM
  7. [SOLVED] Difference btween Automatic and Manual calculations.
    By WannaBeExceller in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-16-2006, 05:30 PM

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