+ Reply to Thread
Results 1 to 8 of 8

Sum of column in Multi Rows

  1. #1
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Columbus Ohio
    MS-Off Ver
    Excel 2010
    Posts
    137

    Sum of column in Multi Rows

    Hello, I have a workbook where I am trying to sum and average the data in each row (rowsize will vary) and place it in a specific column. For example the sum of columns in A2 will go in column AA:22 or somewhere depending on location of buttons. I am getting confused on how to cycle through each row and use VBA to find the SUM and then AVG. I tried jumping into VBA to quickly and feel I need to do some reading this weekend! Anyways, any help would be appreciated. I have included a sample workbook.
    Attached Files Attached Files
    Last edited by jonboy6257; 11-01-2013 at 12:25 PM.

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

    Re: Sum of column in Multi Rows

    This makes absolutely no sense

    the sum of columns in A2 will go in column AA:22

  3. #3
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Columbus Ohio
    MS-Off Ver
    Excel 2010
    Posts
    137

    Re: Sum of column in Multi Rows

    Sorry I didn't read what I typed! Let me word it differently. The sum of all Columns in Row 1 will go into Cell A22.
    Last edited by jonboy6257; 11-01-2013 at 12:08 PM.

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

    Re: Sum of column in Multi Rows

    Still confused. You said Row A but do you mean Column A? Cell A22 already has a value in it and it is a completely random spot. Did you upload the correct workbook? Try

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Columbus Ohio
    MS-Off Ver
    Excel 2010
    Posts
    137

    Re: Sum of column in Multi Rows

    Sorry for the mix up. I was looking for the sum of all columns in Row 1. It should be AA22 not A 22.
    Last edited by jonboy6257; 11-01-2013 at 12:13 PM. Reason: Error

  6. #6
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Columbus Ohio
    MS-Off Ver
    Excel 2010
    Posts
    137

    Re: Sum of column in Multi Rows

    Thanks again, it does exactly what I need it to.

  7. #7
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Sum of column in Multi Rows

    Hi jonboy

    You really don't require VBA to do this

    Place this Formula in AA2 and drag down
    Please Login or Register  to view this content.
    And this Formula in AB2 and drag doun
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  8. #8
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Columbus Ohio
    MS-Off Ver
    Excel 2010
    Posts
    137

    Re: Sum of column in Multi Rows

    I needed VBA because the amount of Names will vary once imported. I pull a .CSV file in with VBA and than manipulate the data to remove those who didn't work. As new employees are hired the list will grow and vice versa in regards to firing people. I should have put that the amount of rows will vary. The only constant is the number of columns.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. 1 column into multi-columns and multi-rows
    By affj in forum Excel General
    Replies: 7
    Last Post: 07-17-2013, 09:34 AM
  2. [SOLVED] Splitting multi-line cells into rows and moving the values into another column
    By Gav74 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-04-2013, 09:59 AM
  3. [SOLVED] Delete Dublicate rows based on multi column values
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-19-2013, 03:21 PM
  4. [SOLVED] VBA from (multi) column to rows
    By oeldere in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-16-2013, 04:20 PM
  5. Delete Autofiltered rows from multi-column Listbox
    By kriswhiteley in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-03-2012, 08:46 AM

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