+ Reply to Thread
Results 1 to 7 of 7

Sum Variable Range

  1. #1
    Registered User
    Join Date
    01-23-2009
    Location
    Arizona
    MS-Off Ver
    Excel 2003
    Posts
    18

    Sum Variable Range

    I feel like I have searched everywhere and tried all of the other posted examples to the best of my ability; so I'm finally asking for help.

    I am in need of code to sum the above range. But it is different range every day. My company will add the deposit amounts each day from each deposit sheet.

    ie:
    48000
    80000
    12000
    3000





    200
    45000
    10000





    And so on. I have posted an example spreadsheet if needed. (The portion is green is all that needs to be summed but keep in mind it changes amount of rows included changes each day, and the yellow is where the solution goes, but I can easily change that). There are other formulas needed but I have figured those out. I need to run this macro daily just for the last group. My brain is exhausted. Please help!
    Thanks so much in advance.

    My code:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by cheerockracy; 02-24-2009 at 02:12 PM.

  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: Sum Variable Range

    Do you want 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
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Sum Variable Range

    Perhaps:

    Please Login or Register  to view this content.
    Edited...
    Last edited by DonkeyOte; 02-19-2009 at 02:52 PM.

  4. #4
    Registered User
    Join Date
    01-23-2009
    Location
    Arizona
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Sum Variable Range

    I'm looking for the formula in the cell. Basically I need it to look how it does now. Just need to automate the yellow cell (if that makes sense).

    Thanks!

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Sum Variable Range

    Sorry, I did a late edit of the sub routine... it would insert a subtotal for each group of Deposit Amounts... maybe you can work from that... I'm not really sure what you want to do... perhaps you only ever want to insert the formula for the last block as and when invoked ?

  6. #6
    Registered User
    Join Date
    01-23-2009
    Location
    Arizona
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Sum Variable Range

    Donkeyote,
    Your code is close to what I need. I'm trying to work with it to see if that will work. Thanks for the speedy replies. I'll post an update if I get it.

    Thanks again!

  7. #7
    Registered User
    Join Date
    01-23-2009
    Location
    Arizona
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Sum Variable Range

    That actually works FANTASTIC. It's completely working now. I'm so impressed with the speedy replies and the wonderful help. Thank you SO much!

    Final code if it helps anyone in the future:

    Please Login or Register  to view this content.

+ 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