+ Reply to Thread
Results 1 to 7 of 7

Formula to sum a row through the current month

  1. #1
    Forum Contributor
    Join Date
    09-19-2012
    Location
    NYC
    MS-Off Ver
    Excel 2010
    Posts
    137

    Formula to sum a row through the current month

    Hello All,

    I am looking for a formula that finds the name of the current month in at the top of a column, then adds all the numbers in the next row from the first column up to and including that column. The object is to track current production goals. Here's a sample, the formula belongs in cell N3:

    current goal sample.xlsx

    Thanks in advance,

    Willardio

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Formula to sum a row through the current month

    try this...

    =SUM(INDIRECT("A3:"&CELL("address",OFFSET(A3,0,O2-1))))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    09-19-2012
    Location
    NYC
    MS-Off Ver
    Excel 2010
    Posts
    137

    Re: Formula to sum a row through the current month

    Hmm, I get "#REF." I also don't see where the function looks up the current month in row 2. So let's say today's date was may 3, 2013; I would want the value in N3 to be "5"...

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Formula to sum a row through the current month

    oops my bad, sorry...you need to add this to N1...
    =TEXT(TODAY(),"mmm")

    My apologies

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Formula to sum a row through the current month

    Try this.

    Please Login or Register  to view this content.

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

    Re: Formula to sum a row through the current month

    A solution with a minimum of volatile functions
    Please Login or Register  to view this content.
    BTW what will happen next month? As there are no years, XL will stop at the first instance of "Apr"
    Last edited by Pepe Le Mokko; 03-22-2013 at 03:18 AM.

  7. #7
    Forum Contributor
    Join Date
    09-19-2012
    Location
    NYC
    MS-Off Ver
    Excel 2010
    Posts
    137

    Re: Formula to sum a row through the current month

    Pepe, I need it to start over in April, not stop, and it looks like that is what will happen so thanks for the solution. And thanks to all of you for your suggestions, you're so smart!
    All values in the table will be changed each April when a new contract begins. Hmm, maybe I should make Pepe wait nine days for his star, just in case... kidding!

    Thanks again to all of you,

    Willardio

+ 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