Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Totals for months

Hi,

Is possible to modify this program for have
the divided total for months in the "D"
column?

Regards.

Marcello

For example:

|A |B |C |D
| Page | Date | Import | Total
| 1 | 10/04/2005 | 32,50 |
| 1 | 12/04/2005 | 12,50 | 45,00
| 1 | 11/05/2005 | 52,50 |
| 1 | 30/05/2005 | 10,50 | 63,00
| 1 | 10/06/2005 | 19,50 | 19.50


Sub EnumSheet1()
Dim sh As Worksheet
Dim Name As String
Dim I As Long
Dim DataDoc As Date
Dim ConPag As Currency

I = 1

With Sheets("sheet1")
For Each sh In Worksheets
If sh.Name < "Sheet1" Then

DataDoc = sh.Cells(21, 4)
ConPag = sh.Cells(85, 7)
I = I + 1
.Cells(I, 1) = sh.Name
.Cells(I, 2) = DataDoc
.Cells(I, 3) = ConPag
End If
Next
End With
End Sub
Reply
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
Adding Regressive Months Totals BadBoy Excel Worksheet Functions 2 September 17th 09 07:52 PM
Adding Progressive Months Totals BadBoy Excel Worksheet Functions 5 September 17th 09 06:03 PM
Add monthly totals of months forward mikeinrbs Excel Worksheet Functions 0 September 14th 09 08:41 PM
Looking for certain months and summing the totals sherobot Excel Worksheet Functions 10 January 30th 08 05:44 PM
Add Totals for Last 12 Months Beamers Excel Discussion (Misc queries) 2 March 28th 07 02:03 AM


All times are GMT +1. The time now is 11:47 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"