+ Reply to Thread
Results 1 to 7 of 7

SUM of above column without column name

  1. #1
    Registered User
    Join Date
    11-22-2016
    Location
    United States
    MS-Off Ver
    XL 2010
    Posts
    18

    SUM of above column without column name

    I am looking to calculate the SUM of the above column in the first blank cell below the last populated row in VBA. I do not want to include the 1st row in the column with the headings.

    Example:

    If my Data ranges from Cells S2:S1233 - In Cell S1234 I want it to SUM my data above. My data will always be a different amount of rows.

    Thanks.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: SUM of above column without column name

    There are quite a few various ways to get the result.
    Here is one:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-22-2016
    Location
    United States
    MS-Off Ver
    XL 2010
    Posts
    18

    Re: SUM of above column without column name

    Excellent, thank you so much!

    One more question - How would this look differently if it's within another macro? Rather than within it's own Sub.

    Thanks again!

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: SUM of above column without column name

    Dims go at the top, the rest wherever you put it. Code runs line by line. Make sure it is in the correct order. Possibly the rest of the code would be the last lines in your macro.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: SUM of above column without column name

    Another way, assuming cell is the single-cell range where you want the result to appear:

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Registered User
    Join Date
    11-22-2016
    Location
    United States
    MS-Off Ver
    XL 2010
    Posts
    18

    Re: SUM of above column without column name

    Thank you!!

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: SUM of above column without column name

    You're welcome.

+ 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. Replies: 7
    Last Post: 08-09-2015, 05:07 PM
  2. Compare multiple columns (column A,column B,Column C) and return value (Column D)
    By john008 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-21-2015, 08:24 AM
  3. [SOLVED] Delete Cell Numbers of Column B From Column A (Column B Small and Column A too big)
    By it_electronics2000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-09-2012, 08:56 AM
  4. [SOLVED] Delete Cell Numbers of Column B From Column A (Column B Small and Column A too big)
    By it_electronics2000 in forum Excel General
    Replies: 4
    Last Post: 04-07-2012, 09:14 AM
  5. [SOLVED] Delete Cell Numbers of Column B From Column A (Column B Small and Column A too big)
    By it_electronics2000 in forum Excel General
    Replies: 5
    Last Post: 04-06-2012, 12:02 PM
  6. [SOLVED] Delete Cell Numbers of Column B From Column A (Column B Small and Column A too big)
    By it_electronics2000 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-06-2012, 11:18 AM
  7. [SOLVED] Delete Cell Numbers of Column B From Column A (Column B Small and Column A too big)
    By it_electronics2000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-06-2012, 11:13 AM

Tags for this Thread

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