Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Help on Codes for Accumulating Figures

Am trying to accumulate column E figures in column K based on groupings in
column A. I tried these codes but isnt working.

Dim z As Long
z = 3
Do While Range("A" & z) < ""
Range(K2).Value = Range(E2).Value
Range("A" & z).Select
If Range("A" & z).Text = Range("A" & z - 1).Text Then
Range("K" & z).Value = Range("J" & z).Value + Range("K" & z -
1).Value

Else
Range("K" & z).Value = Range("J" & z).Value

End If
z = z + 1
Loop
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
YTD % over 12 accumulating figures Ellie Excel Worksheet Functions 1 May 27th 10 11:03 PM
Accumulating cells RR Dunn Excel Discussion (Misc queries) 3 April 18th 07 01:40 PM
Changing positive figures to minus figures Louise Excel Worksheet Functions 2 September 14th 05 10:05 AM
Accumulating data legepe[_5_] Excel Programming 0 October 21st 04 02:01 AM
Accumulating data legepe[_4_] Excel Programming 2 October 21st 04 01:54 AM


All times are GMT +1. The time now is 04:54 AM.

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

About Us

"It's about Microsoft Excel"