+ Reply to Thread
Results 1 to 7 of 7

=sum skipping columns and date-dependent

  1. #1
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    811

    =sum skipping columns and date-dependent

    Is it possible to write a forumula to total non-contiguous columns dependent on a date selected? I've attached a sample workbook of what I mean.

    Grateful for any ideass. Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Summing columns based on date

    Using your posted workbook.....try this

    Please Login or Register  to view this content.
    Copy that formula down through AQ7.

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    811
    Hi Ron

    Not really...the columns containing dates will contain the 'actual' figures, and at the end of each quarter are sub-totals of 'actuals' and 'budgets'. All I want to sum are the 'budget' figures =< that the data in B17

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Summing Bgt values up to a data

    I'm a bit puzzled...the formula I posted DOES sum only the budget values.
    Notice the offset of the columns in the formula (B:AL vs C:AM):

    Please Login or Register  to view this content.

    I attached an edited version of your workbook.
    What am I missing?
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    811
    Hi Ron

    I can understand your confusion - it works perfectly in the sample but when I to my actual spreadsheet I get #VALUE. I've obviously done something wrong but I can't figure out what.

    Thanks for your input - the power of SUMPRODUCT (if you know how to use it!) is awesome.

    I'll keep on working on why my transfer doesn't work

  6. #6
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Summing Bgt values up to a data

    If there are #VALUE! errors in the formula ranges, we could eliminate those and maybe solve the issue.

    Try posting a sample workbook that more closely matches your working model.
    We'll see what we can do.

  7. #7
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    811
    Ron

    The #VALUE occur when there is no data in the cells. I've eliminated it by using an If(error routine.

    Would SUMPRODUCT work where I need to do a lookup as part of the formula? I've got a couple of thousand lines of data with a description next to each line. There are in total about 500 descriptions. If Iwant to SUM the values in the description lines into a twenty or thrity summaries, whould I use SUMPRODUCT? e.g. Descriptions "Line 1", "Line 2", "Line 3" and "Line 18" summarise into "Blue", descriptions "Line 34", "Line 37" and "Line 211" summarise into "Green". Does that make sense? The format is the same with non-contiguous columns.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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