• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Sum month columns based on =NOW()

kilgore99

New Member
I have 12 columns, Jan-12 to Dec-12, in a date format. I would like to auto sum the column based on a =now() formula. My goal is to show a ytd number. The =now() is not necessary but I would like the auto feature when I open the worksheet. Thanks.
 
Here ya go.

=SUM(A2:OFFSET(A1,MONTH(TODAY())-1,0))


A2 would be january,

A1 should always be above january
 
Assuming that the dates are in A1:L1, I think you need


=SUM(INDEX(A:L,0,MONTH(TODAY())))-INDEX(A1:L1,MONTH(TODAY()))


adjust if your ranges are different.
 
Back
Top