Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 10-04-2020, 02:33 AM
Purfleet Purfleet is offline How to optimize the data summation code for each row and column in a data rectangle area? Windows 10 How to optimize the data summation code for each row and column in a data rectangle area? Office 2019
Expert
 
Join Date: Jun 2020
Location: Essex
Posts: 345
Purfleet is a splendid one to beholdPurfleet is a splendid one to beholdPurfleet is a splendid one to beholdPurfleet is a splendid one to beholdPurfleet is a splendid one to beholdPurfleet is a splendid one to beholdPurfleet is a splendid one to behold
Default

As long as the rows and columns are static, you just need to do a sum formula in the range without the fixed references

Sub sumtheall()

Columns("k:k").ClearContents
Rows("15:15").ClearContents

Range("a15:j15") = "=sum(a1:a14)"
Range("k1:k14") = "=Sum(a1:j1)"

End Sub

Last edited by Purfleet; 10-04-2020 at 02:36 AM. Reason: typo
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to copy specific ranges column data as row data from one worksheet to another using excel VBA ganesang Excel Programming 1 03-26-2020 06:18 AM
with different area of blocks, can we arrange automatically in a big rectangle area, Optimally oneeyeevil Excel Programming 0 06-21-2019 03:45 AM
How to optimize the data summation code for each row and column in a data rectangle area? Colored Rectangle in Column eseel Word Tables 4 07-26-2017 06:07 AM
How to convert multiple xml data in xl column to xl data vivekanand.p Excel Programming 0 01-28-2016 08:13 AM
How to optimize the data summation code for each row and column in a data rectangle area? How to edit cell data without changing print area. FIXED print area VictoriaT8 Excel 3 02-22-2013 07:54 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:33 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft