+ Reply to Thread
Results 1 to 4 of 4

Trouble inserting SUM function with variables

  1. #1
    Registered User
    Join Date
    12-20-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    21

    Trouble inserting SUM function with variables

    I am trying to insert a sum function as the last step in a macro im running and cant quite figure out the way I need to set up the function. I am using two variables endoffile and columncounter in the For loop im running.

    Baiscally I need to insert the formula in cell (endoffile, columncounter) with =sum((5, columncounter)endoffile-1,columncounter))

    If anyone can help me out I would appreciate it.

    Thanks
    Last edited by Lewis2010; 02-25-2011 at 11:53 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Trouble inserting SUM function with variables

    Do you want to put the formula in the cell or the result?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    12-20-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Trouble inserting SUM function with variables

    I actually finally figured it out. Thanks!

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482

    Re: Trouble inserting SUM function with variables

    If the formula is going in the same column as the values being summed then

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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