+ Reply to Thread
Results 1 to 8 of 8

Add data in multiple columns (dynamic # of columns)

  1. #1
    Registered User
    Join Date
    12-04-2019
    Location
    Virginia
    MS-Off Ver
    2019
    Posts
    4

    Add data in multiple columns (dynamic # of columns)

    Hi all,

    I'm creating a budget spreadsheet that is going to have multiple months in it (in a single sheet). Each month has four columns, and one of those columns is "Amount budgeted". Now, as I add extra months to the excel sheet, this column starts repeating (per month). To get some calculations going, my current goal is to add the value in each "Amount Budgeted" column that repeats for every month.

    In other words, I have a 100 rows, with interesting data in columns 10, 14, 18, 22, 26 and so on. If the current column that I'm working in is Column 30, is there an easy way/formula to find the sum of past columns?

    Hope this makes sense!

    Thanks

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,022

    Re: Add data in multiple columns (dynamic # of columns)

    Hi there.

    A picture is worth 1,000 words. An Excel sheet is worth 1,000 pictures.

    Please read the yellow banner at the top of the screen. Act on its guidelines and post a SMALL sample sheet.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    12-04-2019
    Location
    Virginia
    MS-Off Ver
    2019
    Posts
    4

    Re: Add data in multiple columns (dynamic # of columns)

    Great saying, and yes, I should have done this to begin with. I have now attached an example. Thanks in advance!
    Attached Files Attached Files
    Last edited by neotaruntius; 12-10-2019 at 01:31 PM.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,022

    Re: Add data in multiple columns (dynamic # of columns)

    maybe just this:

    =SUM(B8:G10)

  5. #5
    Registered User
    Join Date
    12-04-2019
    Location
    Virginia
    MS-Off Ver
    2019
    Posts
    4

    Re: Add data in multiple columns (dynamic # of columns)

    Thanks Glenn! I updated the example slightly, as I realized my example wasn't perfect.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,022

    Re: Add data in multiple columns (dynamic # of columns)

    What is normally present in B8 to B10???

  7. #7
    Registered User
    Join Date
    12-04-2019
    Location
    Virginia
    MS-Off Ver
    2019
    Posts
    4

    Re: Add data in multiple columns (dynamic # of columns)

    I offset it a little bit to make the example clearer, but B8-B10 will have another month underneath as well.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,022

    Re: Add data in multiple columns (dynamic # of columns)

    Please post a representative sample. I do not follow what you're telling me.

+ 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. [SOLVED] Dynamic Print Area Macro With Multiple Columns Of Varying Row Data
    By Gtrtim112 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-16-2019, 02:16 AM
  2. [SOLVED] Display columns in excel based on Data validation list in multiple columns
    By tejboyd in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-27-2017, 09:17 PM
  3. Replies: 6
    Last Post: 11-25-2015, 01:01 PM
  4. [SOLVED] Dynamic Unique List from multiple dynamic columns
    By JO505 in forum Excel General
    Replies: 7
    Last Post: 06-11-2015, 05:41 PM
  5. [SOLVED] macro needed to extract specific columns out of multiple columns with their row data
    By genetist in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-07-2014, 12:49 AM
  6. Replies: 9
    Last Post: 12-15-2013, 10:05 PM
  7. Macro to copy 3 columns of data from multiple sheets into 3 columns on 1 sheet
    By bballdcm2007 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-15-2012, 04:37 PM

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