+ Reply to Thread
Results 1 to 4 of 4

function to sum based on date

  1. #1
    Registered User
    Join Date
    05-11-2007
    Posts
    4

    Cool function to sum based on date

    Looking to be able to change the date and the function will automatically sum the columns to give me the total year to date.

    In the attached file I would like to change the date highlighted in blue and it will sum the columns from Jan07 to the date entered.


    Any help appreciated.

    Thanks
    John
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by Jondal
    Looking to be able to change the date and the function will automatically sum the columns to give me the total year to date.

    In the attached file I would like to change the date highlighted in blue and it will sum the columns from Jan07 to the date entered.


    Any help appreciated.

    Thanks
    John
    Try this

    =SUMPRODUCT(($A$2:$N$2<=P2)*(A3:N3)) copy down

    P2 contains date entered (in blue)
    (adjust ranges to suite)

  3. #3
    Registered User
    Join Date
    05-11-2007
    Posts
    4
    Great solution.

    Many thanks


    john

  4. #4
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by Jondal
    Great solution.

    Many thanks


    john
    You're welcome and thank you for the feedback.

+ 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