+ Reply to Thread
Results 1 to 9 of 9

Adding values in one column based on range of dates in another column

  1. #1
    Forum Contributor
    Join Date
    05-17-2010
    Location
    Nigeria, Owerri
    MS-Off Ver
    Excel 2007 and 2013
    Posts
    254

    Adding values in one column based on range of dates in another column

    Please in a table I'm working on, I have column A for dates and B for values. I want a formular that will check throught the dates and add the corresponding values in B. For example, formular that will add the values in column B between 1/1/2014-31/1/2014. Hope my explanation is clear enough.

    Thanks.

    Jude.
    Last edited by [email protected]; 05-01-2014 at 11:18 PM.

  2. #2
    Registered User
    Join Date
    04-30-2014
    Location
    pa
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Adding values in one column based on range of dates in another column

    This is exactly what I am trying to figure out as well

  3. #3
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Adding values in one column based on range of dates in another column

    =SUMIFS(B:B,A:A,">="&[Reference to cell with start date],A:A,"<="&[Reference to cell with end date])

    St_Jude - you show you are using XL2003 and XL2007. This will only work on 2007. Sumifs wasn't available before that release.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Adding values in one column based on range of dates in another column

    One way assuming you're using Excel 2007 or later.

    Use cells to hold the date criteria.

    D2 = 1/1/2014
    E2 = 31/1/2014

    Then, this formula:

    =SUMIFS(B2:B25,A2:A25,">="&D2,A2:A25,"<="&E2)

    Adjust the ranges to suit.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    04-30-2014
    Location
    pa
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Adding values in one column based on range of dates in another column

    This is exactly what I needed, it works! thanks!

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Adding values in one column based on range of dates in another column

    Quote Originally Posted by xandrew245x View Post
    This is exactly what I needed, it works! thanks!

    You're welcome. We appreciate the feedback!

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Adding values in one column based on range of dates in another column

    Quote Originally Posted by gak67 View Post
    This will only work on 2007. Sumifs wasn't available before that release.
    This one will work in any version of Excel.

    D2 = 1/1/2014
    E2 = 31/1/2014

    =SUMIF(A2:A25,">="&D2,B2:B25)-SUMIF(A2:A25,">"&E2,B2:B25)

  8. #8
    Forum Contributor
    Join Date
    05-17-2010
    Location
    Nigeria, Owerri
    MS-Off Ver
    Excel 2007 and 2013
    Posts
    254

    Re: Adding values in one column based on range of dates in another column

    Thanks friends. This worked perfectly for me. Many thanks.

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Adding values in one column based on range of dates in another column

    You're welcome. Thanks 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)

Similar Threads

  1. Adding Sequential Numbers in Column B Based on Column A Values
    By habsfan1433 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-14-2014, 04:17 PM
  2. [SOLVED] Adding a value to a column based on values in another column fro the same worksheet
    By JohnnyBoyxxx in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-18-2013, 06:31 PM
  3. Replies: 1
    Last Post: 11-05-2013, 11:22 AM
  4. [SOLVED] Adding Values from One Column Based on Criteria in another column
    By andymc80 in forum Excel General
    Replies: 1
    Last Post: 01-30-2013, 09:29 AM
  5. Replies: 3
    Last Post: 01-10-2012, 10:41 PM

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