Sum array then pasting it in another workbook

Vbanoob98

Board Regular
Joined
Sep 13, 2019
Messages
128
The formula I have is the following:

Inarr: Range("A1:J57")
With Workbook("book.xlsx").Worksheet("All")
loLastRow = .Cells(Rows.Count, 1).End(xlUp).Row + 1
.Range("A") & loLastRow) inarr(43, 7)

So thats great for single cells. Now I have to take cells E13:E21 + E23:E31, sum them and then paste them on colunmn I of the workbook.

Anyone has any clue on how to do this? Many thanks!!
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Hi
try this metod
as ex:

Code:
arr1 = Range("e13:e21")
arr2 = Range("e23,e31")
result = WorksheetFunction.Sum(arr1) + WorksheetFunction.Sum(arr2)
 
Upvote 0

Forum statistics

Threads
1,224,836
Messages
6,181,248
Members
453,026
Latest member
cknader

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top