If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Cell Formatting

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-04-04, 22:08
Burnedout Burnedout is offline
Registered User
 
Join Date: Aug 2004
Location: Aurora, Ontario
Posts: 10
Question Cell Formatting

When I add Cell C & D together I get a total. I put this total in Cell A.

Is there a way to make Cell A show me an accumulated total for any value added to C or D. The reason for this total is I am trying to create an overtime issuance log based on total hours and I require a grand total for a set period?

Any suggestions would be greatly appreciated.
Reply With Quote
  #2 (permalink)  
Old 09-06-04, 04:34
DavidCoutts DavidCoutts is offline
Registered User
 
Join Date: Jan 2004
Location: Aberdeen, Scotland
Posts: 1,067
Im not entirely sure what you want, is this any help

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Column = 3 Or Target.Column = 4 Then
        Range("A" & Target.Row).Value = Range("A" & Target.Row).Value + _
            Cells(Target.Row, Target.Column).Value
    End If
End Sub
Dave
Reply With Quote
  #3 (permalink)  
Old 09-06-04, 20:58
Burnedout Burnedout is offline
Registered User
 
Join Date: Aug 2004
Location: Aurora, Ontario
Posts: 10
Thumbs up

Thank you David, your soultions worked prefectly.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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