+ Reply to Thread
Results 1 to 6 of 6

Sum of columns to right - update when new column inserted

  1. #1
    Registered User
    Join Date
    06-26-2013
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2016
    Posts
    43

    Cool Sum of columns to right - update when new column inserted

    Hi
    I'm trying to create a spreadsheet tracking time total time spent on a list of projects.

    Please see below and attached sample.

    Each day I want to insert a new column to the right of the Total column (please note that I don't want to add the column after the last column) and enter the time spent in minutes.

    P.No. Total 18Oct 17Oct 16Oct
    001 30 10 10 10
    002 25 15 10 0

    ..So I'm trying to work out formula to insert in the total column that will add all columns to the right (even when the number of columns increases)

    ..Ideally the formula would also convert the number of minutes into hours and minutes eg 05:20 for '5 hours 20 minutes' ie. 320minutes

    Thanks for any assistance
    Attached Files Attached Files

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Sum of columns to right - update when new column inserted

    1/ Try to insert a blank column (C) next to Total (B), then merge B&C column. In B2: = sum(C2:F2)
    Then next day, insert new column before D and the formula will be alway cover from C column.
    2/ To convert:
    =SUM(D2:F2)/24/60
    formatted as hh:mm
    Quang PT

  3. #3
    Registered User
    Join Date
    06-26-2013
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2016
    Posts
    43

    Re: Sum of columns to right - update when new column inserted

    Thanks for the fast help! - this works perfectly in my sample and I look forward to using it in work tomorrow.

    I wish I understood how inserting blank column, merging etc works though!

    Kind regards,
    Karen

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Sum of columns to right - update when new column inserted

    Hi Karen,

    Instead of using
    Sum(C2:E2)
    why not use a large column letter that you will never reach like "AA". So your new formula would be:
    Sum(C2:AA2)
    and then pull it down.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Registered User
    Join Date
    06-26-2013
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2016
    Posts
    43

    Re: Sum of columns to right - update when new column inserted

    Actually while implementing this I've just realised I want to calculate working days!!! (working day being 8 hours)

    Ie. If the number of minutes added up comes to 2160 ( which comes out as 01:12:00 using bebo021999's formula "=SUM(D2:F2)/24/60" formatted as hh:mm )
    ...2160 mins is 36 hours I would like this to show as 4 days & 4 hours & 0 mins ... something like 04:04:00

    Any help would be appreciated!

    Karen

  6. #6
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Sum of columns to right - update when new column inserted

    My post is wrong post - Please disregard

+ 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. Automatically Update An Inserted Object
    By Chard in forum Excel General
    Replies: 3
    Last Post: 05-21-2007, 06:23 AM
  2. auto update formula if rows inserted
    By ktchegi in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 04-20-2007, 07:51 AM
  3. update formula when row inserted
    By ktchegi in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-10-2007, 02:38 AM
  4. Replies: 2
    Last Post: 05-30-2006, 01:55 PM
  5. update column in VLOOKUP when columns are inserted
    By Takeadoe in forum Excel General
    Replies: 2
    Last Post: 04-10-2006, 09:40 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