+ Reply to Thread
Results 1 to 4 of 4

Trying to use Subtotal to find difference between two lines of data

  1. #1
    Registered User
    Join Date
    01-10-2018
    Location
    New Hampshire
    MS-Off Ver
    2007
    Posts
    19

    Trying to use Subtotal to find difference between two lines of data

    I have about 200+ lines of data and for each third line, I would like a particular cell to represent the difference between the two cells of data directly above (I would like to do this for three separate columns). I thought using the Subtotal function might work but it doesn't appear to offer a subtraction/difference option. Is that correct? Does anyone have any other suggestions? Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Trying to use Subtotal to find difference between two lines of data

    Once the Subtotal feature has applied the SUBTOTAL function in the summary lines ... with the table selected ... hit the F5 function key > click Special ... > click Formulas > hit Enter.

    The summary rows are selected tab until you are at E4 and replace the SUBTOTAL formula with E3-E2 and while holding down just Ctrl hit Enter. The formula will populate the entire selected range.

    Did this help?
    Dave

  3. #3
    Registered User
    Join Date
    01-10-2018
    Location
    New Hampshire
    MS-Off Ver
    2007
    Posts
    19

    Re: Trying to use Subtotal to find difference between two lines of data

    That worked great - thank you! I've used the F5 for blanks but didn't think to use it for formulas!

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Trying to use Subtotal to find difference between two lines of data

    Your are welcome. Glad to help. Thank you for the feedback, rep and marking your thread Solved.

+ 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. Find difference of data in 2 rows
    By iamsonal in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-28-2016, 01:30 PM
  2. [SOLVED] Difference between the SUBTOTAL(103) and COUNTA?
    By hungt in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 06-01-2015, 05:01 PM
  3. Display percent difference for subtotal only.
    By brent_milne in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-27-2015, 12:28 PM
  4. [SOLVED] Add new row with VBA two lines above subtotal when I fill in the last row
    By cinnamw in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-24-2014, 04:19 PM
  5. Need to delete all the lines in the subtotal which is zero
    By kjaganku in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-25-2014, 04:26 PM
  6. create subtotal lines
    By dusoo in forum Excel General
    Replies: 2
    Last Post: 06-04-2013, 05:25 PM
  7. Subtotal Lines
    By redmalva in forum Excel General
    Replies: 7
    Last Post: 07-11-2009, 04:44 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