+ Reply to Thread
Results 1 to 4 of 4

Sum Multiple Columns in a specific range

  1. #1
    Registered User
    Join Date
    01-24-2017
    Location
    home
    MS-Off Ver
    MS Office 2016
    Posts
    46

    Sum Multiple Columns in a specific range

    I am trying to get the sum of a group of columns on a sheet. I am currently using the below code. I am trying to only sum columns starting after AX, but currently it starts at A.

    I will add, instead of having it sum all the columns in the last row, is it possible to get them to sum in row 2?

    Please Login or Register  to view this content.
    Last edited by kasermap; 03-22-2024 at 03:07 PM.

  2. #2
    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
    44,463

    Re: Sum Multiple Columns in a specific range

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file and a mocked up solution.
    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


  3. #3
    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
    44,463

    Re: Sum Multiple Columns in a specific range

    Are you still using Excel 2016?

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Sum Multiple Columns in a specific range

    If .Cells(.Rows.Count, "AX").Value <> "Total" Then
    or "AY"???
    Ben Van Johnson

+ 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. Stop Calculated Column To Certain Columns Only.
    By Dal123 in forum Excel General
    Replies: 3
    Last Post: 04-18-2022, 10:10 AM
  2. [SOLVED] Stop macro from executing multiple times with multiple clicks
    By marvrulz in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-20-2020, 01:47 PM
  3. [SOLVED] Text to Columns, can't stop it..
    By DonG in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 04-06-2018, 11:59 AM
  4. stop increasing the num, when drag down the columns
    By cmiaoqin in forum Excel General
    Replies: 2
    Last Post: 12-08-2005, 02:41 AM
  5. Replies: 1
    Last Post: 06-15-2005, 08:05 PM
  6. Replies: 2
    Last Post: 04-12-2005, 06:06 PM
  7. [SOLVED] Tab Stop across Columns
    By [email protected] in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-13-2005, 12:06 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