Thread: summing arrays
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Lars-Åke Aspelin[_2_] Lars-Åke Aspelin[_2_] is offline
external usenet poster
 
Posts: 913
Default summing arrays

On Fri, 23 Jan 2009 12:24:00 -0800, Ray S.
wrote:

Is it possible to sum two arrays? I have a large array with specific total
amounts for each item in each column and row of the array. Along column A
there are 40 rows of specific finance items. Columns B through X identify
specific business entities. The points at which the rows and columns cross
contain dollar amounts. I have two such large files and I want to essentially
combine them. They both have the same 40 items and the same business
entities, but with different dollar amounts. Is there a formula or function
whereby I can add the two together?



Is this to be done just once, or do you want to keep and update the
two files with automatic update of the sum?

In the first case you can select cells B2:X41 in the first sheet and
do "Copy". Then select cell B2 in the second cell and do "Paste
Special" with Operation set to "Add".

In the second case you put the following formula in cell B2 of a new
sheet:

=Sheet1!B2+Sheet2!B2

where Sheet1 and Sheet2 are the names of you two sheets with data.
Then copy this formula to the right thru cells C2:X2
Then copy cells B2:X2 down thru B3:X41

Hope this helps / Lars-Åke