LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Junior Member
 
Location: India
Posts: 24
Send a message via Skype™ to Gaura215
Default Getting a Grand Total in Grand Total field only

Hello I have a spreadsheet, in which I have 3 tables in coloum I:N. Rows of these tables varies depending upon the data in the table. I need a macro which auto sums in the grand total row (Last Row of Each Table) for the data in the respective table.
The code that I am using is giving me an auto sum in the next balnk cell, but I want it to be in Grant Total row only. There may be gaps in the table.

As of now I am using the following code:

Sub Slide07_Global_AutoSum()

For Each NumRange In Columns("I:N").SpecialCells(xlConstants, xlNumbers).Areas
SumAddr = NumRange.Address(False, False)
NumRange.Offset(NumRange.Count, 0).Resize(1, 1).Formula = "=SUM(" & SumAddr & ")"
c = NumRange.Count
Next NumRange

NoData:
Call Slide06_SEMEA

End Sub
__________________
Regards
Gaurav
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot Table 2007 display field only in Grand Total M Masalha[_2_] Excel Discussion (Misc queries) 0 December 27th 09 04:24 AM
PivotTable Grand Total Error using Calculated Field CherylS Excel Worksheet Functions 1 July 16th 08 07:04 PM
Pivot Table Calculated Field using Grand Total diaare Excel Worksheet Functions 3 May 9th 08 07:50 PM
Missing Grand Total for a Calculated Field in a Pivot Table Robert Hamilton Excel Worksheet Functions 0 March 7th 06 06:14 PM
Pivot Table Calculated Field (Grand total question) Linda Excel Discussion (Misc queries) 5 August 3rd 05 10:11 PM


All times are GMT +1. The time now is 05:55 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"