+ Reply to Thread
Results 1 to 6 of 6

Create table automatically and add sum column and sum for each row

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Create table automatically and add sum column and sum for each row

    Hi Guys,

    i have range and want to create table with:
    1) additional column "Sum" based on dynamic number of columns from used range
    2) Show subtotals.

    Please Login or Register  to view this content.
    It is ok but how to dynamiccaly sum each row based on number of columns?:

    Screenshot_63.png



    Best,
    Jacek
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,147

    Re: Create table automatically and add sum column and sum for each row

    Place the following bit at the end of your code;

    Please Login or Register  to view this content.
    Last edited by Haluk; 06-29-2020 at 04:40 AM.

  3. #3
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Create table automatically and add sum column and sum for each row

    thank you Haluk.

    it is only showing totals row but i want to get Sum for column A, B, C for each row.
    Like in expected result:

    Screenshot_64.png

    So you see i have column "Sum" and there i have just added formula:

    Please Login or Register  to view this content.
    and problem is that this table is dynamic i can have different fields there added and somehow i have to include them into this formula.
    To always catch column changes and allow user to input his values after creating table (and of course in the same time to calculate Sum for each row).

    Best,
    Jacek

  4. #4
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,147

    Re: Create table automatically and add sum column and sum for each row

    I understand the problem now...

    Try the following code to see if it helps;

    Please Login or Register  to view this content.
    Last edited by Haluk; 06-30-2020 at 05:05 AM.

  5. #5
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,165

    Re: Create table automatically and add sum column and sum for each row

    Please Login or Register  to view this content.
    Last edited by sintek; 06-30-2020 at 04:21 AM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  6. #6
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Create table automatically and add sum column and sum for each row

    thank you very much it is very nice solution!

    Jacek

+ 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. create a second table automatically
    By jqfranco in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-25-2019, 09:59 AM
  2. Replies: 0
    Last Post: 01-19-2015, 11:00 AM
  3. [SOLVED] Automatically create a column in one table from the totals column in another table
    By TravisRauch in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-07-2012, 02:56 PM
  4. Replies: 4
    Last Post: 04-26-2012, 07:24 AM
  5. Create summary table automatically
    By mateoc15 in forum Excel General
    Replies: 1
    Last Post: 01-11-2012, 11:11 AM
  6. Create a table automatically
    By douglascaixeta in forum Excel General
    Replies: 6
    Last Post: 11-03-2008, 10:25 AM
  7. Automatically create trend table using symbols
    By cmbl in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-25-2006, 09:35 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