+ Reply to Thread
Results 1 to 3 of 3

Calculate the difference between first and last entry in a row?

  1. #1
    Registered User
    Join Date
    09-10-2014
    Location
    Nyk
    MS-Off Ver
    2010
    Posts
    1

    Calculate the difference between first and last entry in a row?

    Hi,

    Please open the attachment and help me out.

    In row D (on the last line of the entry ABC 123) i need to calculate the difference between the first and last entry i.e. D3 =C3-C1, until the value in row A changes. If there is only one row, I just need a zero.
    How do I do this easily, with a macro or a function? I have a lagre number of rows, and doing it manually (with D3 =C3-C1 etc.) will take forever...

    Please Login or Register  to view this content.
    Hopefully somebody understands... Thanks in advance.

    // Teo
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Calculate the difference between first and last entry in a row?

    Please Login or Register  to view this content.
    this is for d5 entry. copy into all D column entries
    Last edited by rcm; 09-10-2014 at 04:24 AM. Reason: clarify

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Calculate the difference between first and last entry in a row?

    Please see attached file with formula in D1
    Attached Files Attached Files
    Last edited by AlKey; 09-10-2014 at 09:40 AM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ 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. [SOLVED] calculate until difference is zero
    By trisoldee in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-24-2014, 02:53 PM
  2. Replies: 8
    Last Post: 11-06-2013, 08:01 PM
  3. Calculate difference
    By fatalcore in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-28-2013, 10:27 AM
  4. Excel 2007 : calculate difference.
    By latokosero in forum Excel General
    Replies: 2
    Last Post: 03-16-2010, 02:33 PM
  5. Calculate the difference between two times
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 03:05 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