+ Reply to Thread
Results 1 to 4 of 4

Calculation based on cells a specified number of rows apart

  1. #1
    Registered User
    Join Date
    05-15-2012
    Location
    Australia
    MS-Off Ver
    Mac Office 365 (v16)
    Posts
    24

    Calculation based on cells a specified number of rows apart

    Hi all,

    Apologies if this has been covered previously - I'm not sure exactly what terms to search on.

    I want a formula that says 'subtract value in cell A10 from the value in a cell n rows higher up the column.

    Where n is specified in a cell - so that it can be changed as required

    eg attachedsample rise calc.xlsx

    thanks in advance

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Calculation based on cells a specified number of rows apart

    See if this is what you wat...
    =B11-OFFSET(B11,-B2,0)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    05-15-2012
    Location
    Australia
    MS-Off Ver
    Mac Office 365 (v16)
    Posts
    24

    Re: Calculation based on cells a specified number of rows apart

    Thanks so much - that is what I was after

    knew there was a function - hadn't used it for years and couldn't recall what it was called

    I really appreciate this "kindness of strangers" - thanks again from Australia

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Calculation based on cells a specified number of rows apart

    Happy to help and thanks for the feedback

+ 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] If calculation to copy rows based on hard coded cells
    By batchjb69 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-31-2014, 03:16 PM
  2. [SOLVED] Insert number of rows with data to new sheets based on values in cells
    By keithtran12 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-28-2013, 11:57 AM
  3. How to concatenate a variable number of rows/cells based on multiple criteria?
    By jonharadon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-16-2012, 09:22 PM
  4. Copy Cells down based on number of rows
    By HBF in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-11-2009, 11:34 AM
  5. Calculation based on the 8th number in a Vin#
    By Jim C in forum Excel General
    Replies: 2
    Last Post: 05-14-2008, 09:37 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