+ Reply to Thread
Results 1 to 3 of 3

How to input date range for SUMIF formula?

  1. #1
    Registered User
    Join Date
    03-18-2014
    Location
    United States
    MS-Off Ver
    Excel 2011
    Posts
    5

    How to input date range for SUMIF formula?

    I have a column of hours spent working on a particular task, but I only want to add the hours that fall within a two week reporting period.

    Is it correct to use the SUMIF formula? If so how do I write the formula to include the date range desired? Would it go under 'criteria'?

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: How to input date range for SUMIF formula?

    A SUMIFS formula may work better

    =SUMIFS(B:B,A:A,">=3/15/2014",A:A,"<=3/22/2014")
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to input date range for SUMIF formula?

    SUMIF() let's you sum the values in one range using a SINGLE criteria against a matching sized range. You can't do a "date range of two weeks" without using TWO criteria, a START and and END date.

    So you will need to use SUMIFS() instead, it allows you to sum the values in one range using multiple criteria against matching sized ranges. Read up on that and it will resolve your need.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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. Macro or Formula to create Date range by getting input of month and year
    By indianhp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-03-2013, 11:00 AM
  2. [SOLVED] Help with formula SUMIF based on date range (list validation).+pls see attach
    By zeko90 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-24-2013, 12:57 PM
  3. Date Input through to Date Range Formula for other cells
    By Lewis333 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-02-2013, 11:42 AM
  4. [SOLVED] How to input the correct SUMIF formula?
    By dcmoser1952 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-11-2013, 12:58 AM
  5. Date Range in SumIf Formula?
    By burgeon in forum Excel General
    Replies: 2
    Last Post: 02-22-2005, 05:56 PM

Tags for this Thread

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