+ Reply to Thread
Results 1 to 6 of 6

Add SUM formula to each worksheet in the workbook for dynamic Column lengths...

  1. #1
    Registered User
    Join Date
    12-11-2013
    Location
    auckland
    MS-Off Ver
    Excel 2010
    Posts
    56

    Lightbulb Add SUM formula to each worksheet in the workbook for dynamic Column lengths...

    Hi All,

    I am currently trying to add a SUM formula for a dynamic range to the bottom of each column in each worksheet in the workbook except certain sheets. My code cycles through correctly however it is adding the SUM to the second row down, or to the row number of the first sheet total.

    See Code:

    Please Login or Register  to view this content.
    I think this may be a simple solution but for the life of me i cant figure it out... Am i missing something right in front of me?

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Add SUM formula to each worksheet in the workbook for dynamic Column lengths...

    Move
    Please Login or Register  to view this content.
    to inside the loop like
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-11-2013
    Location
    auckland
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: Add SUM formula to each worksheet in the workbook for dynamic Column lengths...

    Hi Jindon,

    You've done it!! Thank you so much, I cant believe I never saw that. You taught us all something new.

    Cheers!

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Add SUM formula to each worksheet in the workbook for dynamic Column lengths...

    If so many worksheets to skip, I would go with Select Case statement like
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-11-2013
    Location
    auckland
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: Add SUM formula to each worksheet in the workbook for dynamic Column lengths...

    That's rather efficient... I never thought of doing it by using cases. I will switch it out now.

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Add SUM formula to each worksheet in the workbook for dynamic Column lengths...

    You are welcome and thanks for the rep.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. Formula help to find how many lengths of an material per column of figures
    By MrExcel78 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-14-2017, 02:50 AM
  2. Replies: 2
    Last Post: 09-11-2014, 11:53 AM
  3. Replies: 0
    Last Post: 02-28-2006, 09:10 PM
  4. Replies: 0
    Last Post: 02-28-2006, 09:10 PM
  5. Replies: 0
    Last Post: 02-28-2006, 09:10 PM
  6. Fill down formula using VBA to varying column lengths
    By Lee Jeffery in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 01-28-2005, 08:40 PM

Tags for this Thread

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