+ Reply to Thread
Results 1 to 4 of 4

subtracting the sum function with 1?

  1. #1
    Registered User
    Join Date
    01-14-2014
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    5

    subtracting the sum function with 1?

    Hello Everyone.
    I would greatly appreciate if you can help me with the following:

    I have a spreadsheet where there are several sumfunktioner in column F
    I need a VBA code that can find the last sum function in kollone F and subtracting the sum function with 1

    Ex. Sum function "= SUM (F16: F23)" After marco is run is the sum function "= SUM (F16: F22)"

    thanks in advance.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: subtracting the sum function with 1?

    Is 23 the last row in Column F?

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: subtracting the sum function with 1?

    Hi Jacgeld
    Try this code
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  4. #4
    Registered User
    Join Date
    01-14-2014
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: subtracting the sum function with 1?

    Many thanks for your quick reply.

    It is only the final sum function in colonne F to be deducted 1

    Sum function is only located in column F, but the number of rows is dynamic

    Ex. = SUM (F5: F10) and = SUM (F15: F20) after the macro is run

    = SUM (F5: F10) and = SUM (F15: F19)

+ 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. Averageif function with Average range subtracting columns
    By miguelcristovao in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 07-18-2014, 04:56 PM
  2. [SOLVED] Subtracting MONTH Function from another MONTH Function not working for Fiscal dates
    By amartin575 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-16-2013, 10:52 AM
  3. Replies: 3
    Last Post: 03-06-2011, 04:19 AM
  4. Subtracting time/date using NOW function
    By Bodz in forum Excel General
    Replies: 13
    Last Post: 10-08-2009, 11:14 AM
  5. Subtracting
    By Josh Davis in forum Excel General
    Replies: 3
    Last Post: 06-16-2006, 02:00 PM
  6. Subtracting One Sum From Another
    By R. U. Sirius in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 09-27-2005, 02:05 PM
  7. Replies: 4
    Last Post: 02-13-2005, 01:06 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