+ Reply to Thread
Results 1 to 3 of 3

Macro to sum relative column and row

Hybrid View

  1. #1
    Registered User
    Join Date
    07-02-2012
    Location
    reno, nv
    MS-Off Ver
    Excel 2007
    Posts
    1

    Macro to sum relative column and row

    Dim count
    ActiveCell.Offset(0, 1).Range("A1").Select

    Do
    count = count + 1
    ActiveCell.Offset(-1, 0).Range("A1").Select



    If ActiveCell.Value = "" Then GoTo error1

    Loop
    error1:
    ActiveCell.Offset(0, -2).Select
    Selection.End(xlDown).Select
    ActiveCell.Offset(1, 1).Range("A1").Select


    ActiveCell.FormulaR1C1 = "=SUM(R[-count]C[1]:RC[24])"
    ActiveCell.Offset(1, -1).Range("A1").Select


    End Sub

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Macro to sum relative column and row

    Not a mind reader.

  3. #3
    Forum Contributor
    Join Date
    09-22-2012
    Location
    Berkeley, CA
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: Macro to sum relative column and row

    Me neither. Please elaborate on your problem Keats.
    ------------------------
    W2

+ 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