+ Reply to Thread
Results 1 to 2 of 2

SUM offset ranges in a loop

  1. #1
    Registered User
    Join Date
    09-10-2017
    Location
    Mansfield, UK
    MS-Off Ver
    2007
    Posts
    23

    SUM offset ranges in a loop

    Hi,

    I have a table that fills in using loops through different data. The data all fills in ok but I can't get the sums to work for the totals columns. I am trying to loop through each cell in the total row and sum the range above using offset but I keep getting the Method 'Range' of object '_Worksheet' failed error. Please could someone tell me how I should be setting this range up. Table and code below:
    Capture.JPG

    Please Login or Register  to view this content.
    I would just use the sum function in the cell but I will be running another rub to re fill the table with currency data from different sources so i'll need to update the formats.

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: SUM offset ranges in a loop

    You don't need the quotation marks there
    Please Login or Register  to view this content.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

+ 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. For each loop only displaying last loop in all of my ranges
    By mickeyb121 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-12-2017, 06:52 AM
  2. [SOLVED] Dynamic Ranges without OFFSET?
    By lyla22 in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 08-18-2014, 08:23 AM
  3. [SOLVED] Offset from different possible ranges
    By BRISBANEBOB in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-14-2013, 10:10 PM
  4. Using Offset with named ranges
    By arno in forum Excel Formulas & Functions
    Replies: 35
    Last Post: 09-06-2005, 10:05 PM
  5. Using Offset with named ranges
    By StanJ in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 PM
  6. Using Offset with named ranges
    By StanJ in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 PM
  7. Using Offset with named ranges
    By arno in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-06-2005, 08:05 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