+ Reply to Thread
Results 1 to 12 of 12

Adding up in Excel.

Hybrid View

  1. #1
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,089

    Re: Adding up in Excel.

    For *any* cell in column B

    Private Sub Worksheet_Change(ByVal Target As Range)
        If Intersect(Target, Columns(2)) Is Nothing Then Exit Sub
    
            Application.EnableEvents = False
            Range("A"&Target.Row) = Range("A"&Target.Row) + Range("B"&Target.Row)
            Range("B"&Target.Row) = ""
            Application.EnableEvents = True
    
    End Sub

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  2. #2
    Registered User
    Join Date
    08-20-2013
    Location
    Flint, MI
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: Adding up in Excel.

    Hello TMShucks! Could you tell me how to do this a cross a whole sheet? For instance:

    Column C will be the data entry column, Column D will be the totaling column
    Column E will be the data entry column, Column F will be the totaling column
    Column G will be the data entry column, Column H will be the totaling column

    It will do this every other pattern all the way through column GT being a totaling column. Column A has names and column B has the code for what type of hours I have to enter. Please help, I can send you the sheet if needed.

  3. #3
    Registered User
    Join Date
    12-16-2021
    Location
    Kuwait
    MS-Off Ver
    Version 2111
    Posts
    1

    Re: Adding up in Excel.

    Quote Originally Posted by rachelherner View Post
    Hello TMShucks! Could you tell me how to do this a cross a whole sheet? For instance:

    Column C will be the data entry column, Column D will be the totaling column
    Column E will be the data entry column, Column F will be the totaling column
    Column G will be the data entry column, Column H will be the totaling column

    It will do this every other pattern all the way through column GT being a totaling column. Column A has names and column B has the code for what type of hours I have to enter. Please help, I can send you the sheet if needed.
    Hello,

    Was anyone able to figure out how to do exactly this? Thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1