+ Reply to Thread
Results 1 to 6 of 6

SUMIF with Date

  1. #1
    Registered User
    Join Date
    06-18-2015
    Location
    Liverpool
    MS-Off Ver
    2013
    Posts
    10

    SUMIF with Date

    I have dates like:

    21.05.2014
    21.05.2014
    21.05.2015

    A1:A3


    and the coresponding numbers next to it

    100
    60
    200

    B1:B3


    I need a SUM of the number if and only if the year is 2014, or 2015, etc. How do I do that?

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: SUMIF with Date

    If those are actual dates (formatted to look that way), then:
    Please Login or Register  to view this content.
    Otherwise, if Col_A contains numeric text
    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: SUMIF with Date

    If your dates are text then you can use this:
    Please Login or Register  to view this content.
    If they are dates and just formatted like that, then you will need to use this:
    Please Login or Register  to view this content.
    Some people volunteer in soup kitchens or hospitals. I choose to make the world better by trying to help you with Excel. We're all learning.

    <---Click * Add Reputation for all helpful comments. It's like giving a smile.
    Forum Rules: How to mark your post [Solved] and have a happier, Excel enriched life.

  4. #4
    Registered User
    Join Date
    06-18-2015
    Location
    Liverpool
    MS-Off Ver
    2013
    Posts
    10

    Re: SUMIF with Date

    Almost,

    the sum product doesn't work, because I need to seperate the numbers.

    I have a column for 2014, 2015, 2016, etc.

    In column 2014 only the sum of the numbers from 2014 is put in, and so on.

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: SUMIF with Date

    Maybe something like this would be of interest:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    A
    B
    C
    D
    E
    1
    21.05.2014
    100
    2014
    160
    2
    21.05.2014
    60
    2015
    200
    3
    21.05.2015
    200
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: SUMIF with Date

    Or this

    enter formula in C2 and pull it to the right

    =SUM(INDEX((--RIGHT($A$2:$A$4,4)=C$1)*($B$2:$B$4),0))


    Row\Col
    A
    B
    C
    D
    1
    Date Value
    2014
    2015
    2
    21.05.2014
    100
    160
    200
    3
    21.05.2014
    60
    4
    21.05.2015
    200
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ 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. SUMIF by Date - SUMIF by Date = #VALUE when linked worksheet not open
    By alexhartley in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-14-2013, 03:56 AM
  2. [SOLVED] Sumif when range is date + time and crieteria is date
    By lokpal.panwar in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-05-2013, 06:46 AM
  3. [SOLVED] SUMIF(By Date) - SUMIF(By Date)= #Value Error From Linked Data
    By Dragunov in forum Excel General
    Replies: 2
    Last Post: 05-17-2012, 11:22 AM
  4. Sumif two columns to get month-to-date and year-to-date
    By Reyan123 in forum Excel General
    Replies: 1
    Last Post: 03-30-2010, 07:51 PM
  5. SUMIF within date range as a function of today()'s date
    By irvine79 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-06-2006, 01:00 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