+ Reply to Thread
Results 1 to 3 of 3

Sum of range in ActiveCell

  1. #1
    Registered User
    Join Date
    11-30-2012
    Location
    Marnhull, England
    MS-Off Ver
    Excel 2007
    Posts
    9

    Sum of range in ActiveCell

    I have values in Columns C & D. The ActiveCell is moved dynamically in Column E. For this example the ActiveCell is Cell E24.

    I want to place the value, of the sum of the range D2:D24 minus the sum of the range C2:C24 in the ActiveCell.

    I believe the approach should be to create a range (call it DRange) from ActiveCell.Offset(0,-1):D2 and then create a second range (call it CRange) from ActiveCell.Offset(0,-2):C2 and then place the value of DRange minus CRange in the ActiveCell.

    How do I do this?

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Sum of range in ActiveCell

    Is it a macro or a formula you need ??
    formula could be
    E24 = SUM(D$2:D24)-SUM(C$2:C24)
    Last edited by PCI; 04-16-2019 at 04:05 PM.
    - Battle without fear gives no glory - Just try

  3. #3
    Registered User
    Join Date
    11-30-2012
    Location
    Marnhull, England
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Sum of range in ActiveCell

    I resolved it by using the date column to find the last instance and then inserted the value using SUMIF formula!

+ 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. range,activecell.range,activecell ??
    By ntambomvu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-22-2016, 09:49 AM
  2. ActiveCell in selected Range
    By zico8 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-22-2015, 07:05 AM
  3. Copying an activecell range and pasting to another activecell range
    By Londonbound in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-12-2014, 07:41 AM
  4. [SOLVED] Use ActiveCell as Range
    By 55horses in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-10-2012, 12:13 AM
  5. Output contents of Activecell when Activecell may be string or numeric.
    By jfriddle in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2012, 12:27 PM
  6. Range of the ActiveCell
    By escelinen in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-13-2007, 08:14 AM
  7. Name of range containing ActiveCell?
    By Ed in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-03-2005, 09:06 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