+ Reply to Thread
Results 1 to 2 of 2

Adding a column of numbers which fall between today and 30 days ago

  1. #1
    Registered User
    Join Date
    01-01-2005
    Posts
    1

    Adding a column of numbers which fall between today and 30 days ago

    I am trying to add a column of numbers with the criteria that the dates those numbers are associated with are from today to 30 days prior.

    A.......................B

    DATE................NUMBER

    1/1/05.................6
    12/18/04.............13
    12/12/04.............2
    12/3/04...............2
    11/27/04............15
    11/20/04.............3


    need to add 6+13+2+2

    I have tried SUMIF with different criterium (ie TODAY()-30, EDATE(), etc.) but can't get this to work....please help

    Thanks
    Last edited by MEATBALL; 01-01-2005 at 05:21 PM.

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Try the following...

    =SUMPRODUCT(--(A2:A7>TODAY()-30),B2:B7)

    Hope this helps!

    Quote Originally Posted by MEATBALL
    I am trying to add a column of numbers with the criteria that the dates those numbers are associated with are from today to 30 days prior.

    DATE NUMBER

    1/1/05 6
    12/18/04 13
    12/12/04 2
    12/3/04 2
    11/27/04 15
    11/20/04 3


    need to add 6+13+2+2

    I have tried SUMIF with different criterium (ie TODAY()-30, EDATE(), etc.) but can't get this to work....please help

    Thanks

+ 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