+ Reply to Thread
Results 1 to 2 of 2

automatic subtraction

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-19-2007
    Location
    Beirut
    MS-Off Ver
    0365 MSO Version 2109
    Posts
    207

    automatic subtraction

    Dear All,

    I have a file as per attached, with vehicle number and its odometer during the month.

    I need an automatic formula in (I) to subtract the first and last value in (G) based on whenever (F) changes. By this I would get the mileage total through out the month .

    thanks a lot for your usual help

    LF
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,228

    Re: automatic subtraction

    Is this what you are looking for:
    Formula: copy to clipboard
    =IF(F1=F2, "", G1-VLOOKUP(F1,F:G,2,FALSE))
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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. subtraction with different way
    By Hasson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-31-2021, 11:56 PM
  2. Range Subtraction / Matrix Subtraction - Large data set
    By excelrabbit in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-20-2015, 07:07 AM
  3. [SOLVED] Subtraction
    By bablubg in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-19-2012, 06:59 AM
  4. Subtraction of H:MM
    By sbossio in forum Excel General
    Replies: 4
    Last Post: 06-21-2011, 06:44 PM
  5. Automatic Subtraction on xl2007
    By cozzielex in forum Excel General
    Replies: 4
    Last Post: 11-29-2010, 07:31 AM
  6. Subtraction
    By georgei in forum Excel General
    Replies: 7
    Last Post: 11-04-2009, 10:52 AM
  7. Automatic adding and subtraction entire rows
    By endlyss in forum Excel General
    Replies: 15
    Last Post: 01-23-2009, 09:21 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