+ Reply to Thread
Results 1 to 3 of 3

Summing the values of a generated array.

  1. #1
    Registered User
    Join Date
    10-07-2008
    Location
    Warwick, UK
    Posts
    5

    Summing the values of a generated array.

    Hi,

    I'm writing a macro which has to insert a formula into a cell (TopCell) which adds some other cells up.

    The addresses of these other cells have already been generated using VBA into an array within the program (I don't want to have to add new worksheets to the project). The array can be different lengths (i.e. difference numbers of cells) depending on the point in the spreadsheet.

    I want to know how to get excel to insert a formula into the TopCell which adds up all the cells it finds in the array. - I.e. in the TopCell i want to see

    =Sum(A1,A2,A3....End of array)

    Cheers,
    Jo

  2. #2
    Registered User
    Join Date
    10-07-2008
    Location
    Wessex
    Posts
    55
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-07-2008
    Location
    Warwick, UK
    Posts
    5
    thats brilliant thanks!

+ 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. Replies: 9
    Last Post: 06-06-2009, 12:09 PM
  2. String array values to array of User-Defined Types
    By rtiltins in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-03-2008, 07:45 AM
  3. unable to set y values with an array
    By tamushrek in forum Excel Charting & Pivots
    Replies: 10
    Last Post: 08-11-2008, 11:58 AM
  4. Copy Range to array Rounds Values?
    By additude in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-01-2008, 08:49 AM
  5. List of unique values from an array
    By scubohuntr in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-23-2008, 06:05 PM

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