How to Sum for a Specific Date Range in Excel

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ก.ค. 2024
  • In Excel, you can use the SUM function to calculate a simple total for a range of cells.
    If you want a total based on conditions, such as dates between a specific start date and end date, you can use the SUMIFS function.
    The SUMIFS function will show a total based on one or more criteria.
    Watch this short video to see the steps, and then verify that the total is correct.
    Visit my Contextures website to download the sample file, and to see more ways to SUM in Excel.
    www.contextures.com/xlfunctio...
    Instructor: Debra Dalgleish, Contextures Inc.
    More Excel Tips and Tutorials: www.contextures.com/tiptech.html
    Subscribe to Contextures TH-cam: th-cam.com/users/contextu...
    Video Timeline
    0:00 Introduction
    0:45 Start SUMIFS formula
    1:04 Formula Criteria - Start Date
    1:52 Formula Criteria - End Date
    2:25 Test the Formula Result
    2:46 Get the Sample File
    VIDEO TRANSCRIPT
    One of the most common things you do in Excel is get a total of something. So here we have a column where we've sold items on certain dates and we can see how many units we sold each day. We have a total at the bottom, and that just uses the SUM function.
    If you want to put some conditions on the total, instead of using SUM, you could use a SUMIFS function. This is available in Excel 2007 and later versions.
    In this cell I'd like to see the total for a specific date range. I've put a starting date here and an ending date.
    In this cell I'm going to put in a SUMIFS formula, and it will look at the dates and then only total the units that are between the start and end date.
    To start the formula, I'll click in this cell, type an equal sign and the SUMIFS function, and open bracket.
    The first thing we have to put in is the sum range, so which cells do we want to add up if we meet the criteria? We want to add these units sold. Put that in, and put in a comma.
    The next thing is the criteria range. Which cells do we want to check to see if they meet the criteria that we've set. And that's the date cells. I'll select those. Type a comma.
    The next thing is the first criteria. We want it to be based on this start date. We want any numbers that are for a date on or after this start date.
    I'm going to put the operator in, and the operator will be greater than or equal to, and I have to put that inside quotes. Double quote, greater than, equal to, double quote.
    I'm going to join that to a cell reference. I'll put in an ampersand and then click on the start cell, so it's going to look for any items where the date is on or after that start date.
    Then we're going to have to put in our end date. For the criteria range 2, again, we want it to check those dates, type a comma. The second criteria is this end date. We want things that are on or before that.
    Again, the operator will go in double quotes, and this will be less than, equal to, double quote, and we'll join with the ampersand.
    Click on the end date, and close the bracket. Press Enter.
    We can see that there were 494 units sold in this date range.
    To verify that quickly, we can manually select the dates in that date range. The first one within that date range is January 9th going down to February 4th.
    When I look in the status bar, the sum is 494, which matches our total. So with SUMIFS you can use multiple criteria to get a total.
    For more Excel tips and tutorials and to download the sample file from this video, please visit my Contextures website at www.contextures.com
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 184

  • @dimasandriansyah8491
    @dimasandriansyah8491 2 หลายเดือนก่อน +1

    video from 11 years ago saved my job, thank you!

    • @contextures
      @contextures  2 หลายเดือนก่อน

      You're welcome, Dimas, and thanks for letting me know that this video helped you!

    • @dimasandriansyah8491
      @dimasandriansyah8491 2 หลายเดือนก่อน

      @@contextures I love the fact that you even replied to my comment 🥲, wish you the best for anything you do! ❤

  • @j_beezy1
    @j_beezy1 9 ปีที่แล้ว +4

    Great video. Simple and to the point. Worked perfectly! Thanks

  • @meithileshramautar3412
    @meithileshramautar3412 8 ปีที่แล้ว

    Oh gosh. at last. No word could describe my gratitude. Thanks loads.

  • @novicetech1
    @novicetech1 5 ปีที่แล้ว +1

    I don't even have the words for how awesome your channel is. Thank you so much. You make me seem like an EXCEL guru.

  • @thede5olate0ne
    @thede5olate0ne 5 ปีที่แล้ว +2

    Thanks very much for this! I had a table of expenses by week that I needed to easily total by month to create data for a table. Exactly what I was looking for!

  • @aidankeatley2576
    @aidankeatley2576 10 ปีที่แล้ว +1

    Thank you SO much! this was one of the best tutorials.

  • @Mrkientube
    @Mrkientube 6 ปีที่แล้ว

    All of your videos are of great help - can't thank you enough.

    • @contextures
      @contextures  6 ปีที่แล้ว +1

      Thank you! I'm glad you find the videos helpful

  • @nadinea7671
    @nadinea7671 5 ปีที่แล้ว

    Extremely helpful! Thanks for such a wonderful tutorial :)

  • @andrewmilne6103
    @andrewmilne6103 6 ปีที่แล้ว +1

    Truly brilliant! I had been using filters before, which is very clunky. The presentation was excellent also, easy to follow and understand!

    • @contextures
      @contextures  6 ปีที่แล้ว

      Thanks, Andrew! I'm glad you liked the video.

  • @wisemanteta4193
    @wisemanteta4193 5 ปีที่แล้ว

    Your clarity is amazing.Talented teacher welldone!

    • @contextures
      @contextures  5 ปีที่แล้ว +1

      Thank you very much!

  • @shiningxtarq7628
    @shiningxtarq7628 3 ปีที่แล้ว

    Thank you so much! Been looking for this. I already subscribed as my way of thanking you. 😊

  • @himlerita
    @himlerita 6 ปีที่แล้ว

    Super helpful and exactly what I needed!

  • @anatulymaimany
    @anatulymaimany 7 ปีที่แล้ว

    Very short and precise ,exactly what I was looking for ,Thanks

    • @contextures
      @contextures  7 ปีที่แล้ว

      Thanks! I'm glad it helped you

  • @markpierce823
    @markpierce823 6 ปีที่แล้ว

    This was the best! I got the info I needed within the first 5 minutes. Many thanks!

    • @contextures
      @contextures  6 ปีที่แล้ว

      You're welcome, Mark! Thank you for letting me know that it helped

  • @richdogg28
    @richdogg28 5 ปีที่แล้ว

    Thank you. Works perfectly!

  • @sahadsiyan8489
    @sahadsiyan8489 2 ปีที่แล้ว +2

    thanks alot mam ,finally got it ,searching this for a long time😍

    • @contextures
      @contextures  2 ปีที่แล้ว +1

      You're welcome Sahad, and thanks for letting me know the video had what you were looking for!

  • @frankwinkler9856
    @frankwinkler9856 6 ปีที่แล้ว

    Just what I needed (works well with COUNTIFS, too). Thank you very much.

    • @contextures
      @contextures  6 ปีที่แล้ว

      You're welcome, Frank! Thanks for your comment

  • @janetgannon7729
    @janetgannon7729 2 ปีที่แล้ว +1

    Thank you so very much for this tutorial! I have been trying to find out how to do this formula for a long time and you have explained it very simply, step by step, so I was able to put in the correct formula, and it works! So pleased!!! Thank you!!! :-)

    • @contextures
      @contextures  2 ปีที่แล้ว

      You're welcome, Janet, and thanks for your lovely comment - I appreciate it!

  • @Lufc-Chaddy
    @Lufc-Chaddy 5 ปีที่แล้ว

    Thank you very much, just what I was looking for

  • @talal401786
    @talal401786 ปีที่แล้ว +2

    Thank you so much for the helpful information

    • @contextures
      @contextures  ปีที่แล้ว

      You're welcome, Talal, and thanks for your comment!

  • @Ansaret
    @Ansaret 7 ปีที่แล้ว +1

    i was searching for it
    thank you so much

  • @jig1056
    @jig1056 8 ปีที่แล้ว +5

    Nice perfect, exactly what I was looking for.. Thanks

    • @contextures
      @contextures  8 ปีที่แล้ว +1

      +Mark Nelson You're welcome! Thanks for letting me know that the video helped.

  • @abhishekbhardwaj4609
    @abhishekbhardwaj4609 4 ปีที่แล้ว

    you saved me lot of time...... after so many hit and trials
    thanks a lot

  • @davem5348
    @davem5348 11 ปีที่แล้ว

    This Helped so much! Thank you for your video!

  • @ugosouza2127
    @ugosouza2127 3 ปีที่แล้ว +1

    You just made something I am working on so much easier.

    • @contextures
      @contextures  3 ปีที่แล้ว

      Thanks, Ugo, and that's great to hear!

  • @breem8257
    @breem8257 4 ปีที่แล้ว

    This is a very helpful video. Super helpful.
    Thank you very much :)

  • @hrishidop
    @hrishidop 3 ปีที่แล้ว +1

    You save my 1 hours thank you so much

    • @contextures
      @contextures  3 ปีที่แล้ว

      You're welcome, and I'm glad the video helped save your time!
      -Debra

  • @balletsusie
    @balletsusie 4 ปีที่แล้ว

    Super helpful, thank you!!

  • @madhurangadhanushka4832
    @madhurangadhanushka4832 3 ปีที่แล้ว

    Wow Thank you for the video.

  • @MarcTS81
    @MarcTS81 7 ปีที่แล้ว +1

    Amazing video! Thank you.. :) I struggled a little bit getting it to work, but found out it was due to the fact that my date cells were merged - after that it worked like a charm.. :)

    • @contextures
      @contextures  7 ปีที่แล้ว

      You''re welcome! Thanks for letting me know how you fixed the formula when it wasn't working.

  • @marcosviniciusdossantos1693
    @marcosviniciusdossantos1693 7 ปีที่แล้ว

    Perfect! Thank you very much!

  • @poojitha
    @poojitha 2 ปีที่แล้ว +1

    Very useful even after 8 years. Thanks!

    • @contextures
      @contextures  2 ปีที่แล้ว +1

      You're welcome, Poojitha, and thanks for letting me know that the video was useful to you, after so many years!

    • @poojitha
      @poojitha 2 ปีที่แล้ว

      @@contextures Glad that you saw my response. 😊

  • @mayankjain9713
    @mayankjain9713 4 ปีที่แล้ว

    Very helpful video
    Thank u

  • @bjrnarmornning8503
    @bjrnarmornning8503 8 ปีที่แล้ว

    I've been loosing my mind trying to find out how to solve this, and in a way I can understand - Thank you!

  • @davidnour7012
    @davidnour7012 6 ปีที่แล้ว

    Ahh hah, very cool. I've been trying to get this done for about a week now with no success! Your vid is intuative and easy to follow.Worked like a charm, well Done and thx again...

    • @contextures
      @contextures  6 ปีที่แล้ว

      Thank you, David! Glad the video helped you get your work done

  • @ChotiSiBaatMereSaath
    @ChotiSiBaatMereSaath 4 ปีที่แล้ว

    Thank you so much. This really helped alot.

  • @AlbertoLutz
    @AlbertoLutz 5 ปีที่แล้ว

    Nice. You kept it easy!!!. Thank You.

  • @nafizhaq4554
    @nafizhaq4554 4 ปีที่แล้ว

    Thanks really helpful

  • @tj6544
    @tj6544 5 ปีที่แล้ว

    Thanks very useful.

  • @shuki713
    @shuki713 7 ปีที่แล้ว +1

    amazing!!!! love this share! Thanks!

    • @contextures
      @contextures  7 ปีที่แล้ว

      Thanks, I'm glad you liked the video!

  • @WrestlingTournamentsDotCom
    @WrestlingTournamentsDotCom 5 ปีที่แล้ว +3

    3 hours of failing, and then you save me in less than 3 minutes. Thank you!

  • @emberprinting
    @emberprinting 3 ปีที่แล้ว +1

    Thank you so much!

    • @contextures
      @contextures  3 ปีที่แล้ว

      You're welcome, and thanks for your comment!

  • @pradeeprajpoot871
    @pradeeprajpoot871 ปีที่แล้ว +1

    Thanks A lot for saving my time

    • @contextures
      @contextures  ปีที่แล้ว

      You're welcome, Pradeep, and thanks for your comment!

  • @kaushalkishore5076
    @kaushalkishore5076 2 ปีที่แล้ว +1

    It's really helps, Thanks from AUG 2021... 🙏🙂

    • @contextures
      @contextures  2 ปีที่แล้ว

      You're welcome, Kaushal, and thanks for your comment!

  • @sagarhanjagi9962
    @sagarhanjagi9962 6 ปีที่แล้ว

    Thank You - this helped me lot

    • @contextures
      @contextures  6 ปีที่แล้ว

      You're welcome, Sagar! Thank you for letting me know that the video helped

  • @krn14242
    @krn14242 11 ปีที่แล้ว

    Thanks Debra

  • @KristiyanNalbantov
    @KristiyanNalbantov 10 ปีที่แล้ว

    So helpful, regards

  • @charlescaison4376
    @charlescaison4376 6 ปีที่แล้ว

    Excellent Video

  • @mohammednoormepurath2929
    @mohammednoormepurath2929 2 ปีที่แล้ว +1

    very neat explanation.....

    • @contextures
      @contextures  2 ปีที่แล้ว

      Thank you, Mohammed!

  • @enamulhoque5050
    @enamulhoque5050 6 ปีที่แล้ว

    Thanks, Nice tutorial

    • @contextures
      @contextures  6 ปีที่แล้ว

      You're welcome, Enamul, and thanks for your comment!

  • @contextures
    @contextures  11 ปีที่แล้ว

    @Elisabeth, what do you see in the status bar, if you select the cells that have the values you want to sum? Do you see a sum in the status bar, or just a count?

  • @Hey_Delight
    @Hey_Delight 4 ปีที่แล้ว

    Thanks a lot.

  • @sharonsfella
    @sharonsfella 5 ปีที่แล้ว

    Perfect for a problem I had

  • @imtiazakber8035
    @imtiazakber8035 5 ปีที่แล้ว

    you are great ........................

  • @onebombcutie
    @onebombcutie 8 ปีที่แล้ว

    Thank you, I love you!

    • @contextures
      @contextures  8 ปีที่แล้ว

      +onebombcutie You're welcome!

    • @contextures
      @contextures  8 ปีที่แล้ว

      +onebombcutie You're welcome!

  • @ellenhobson7569
    @ellenhobson7569 4 ปีที่แล้ว

    Wow!! It's so simple once you explain it. I tried the same formula except for the quotes and ampersand. In other words, I was nowhere near the correct formula. Thank you so much for your expertise. :)

    • @contextures
      @contextures  4 ปีที่แล้ว

      You're welcome, Ellen, and thanks for letting me know that the video helped you!

  • @Putravid
    @Putravid 3 ปีที่แล้ว

    thankyou so much

  • @s.k.srivastav7008
    @s.k.srivastav7008 4 ปีที่แล้ว

    Very nice

  • @dharmendrayadav-bw2gp
    @dharmendrayadav-bw2gp 5 ปีที่แล้ว

    Nice trick.

  • @coolag74
    @coolag74 5 ปีที่แล้ว

    Hats off to you...

  • @Hustler628
    @Hustler628 2 ปีที่แล้ว +1

    love ya! thx!

    • @contextures
      @contextures  2 ปีที่แล้ว

      You're welcome, Ayan, and thanks for your comment!

  • @chicorebello
    @chicorebello 5 ปีที่แล้ว

    Short and to the point. What if I have date & time in two different columns and want to add between a two different date-time combinations...what would that formula look like?

  • @sura212
    @sura212 5 ปีที่แล้ว

    Thank you very much

    • @contextures
      @contextures  5 ปีที่แล้ว

      You're welcome, Sora! Thanks for your comment.

  • @Pichi_17
    @Pichi_17 2 ปีที่แล้ว +1

    Tq soo much mam, this helped me alot

    • @contextures
      @contextures  2 ปีที่แล้ว

      You're welcome, Sonia, and thanks for your comment!

  • @waqasmaqbool3356
    @waqasmaqbool3356 8 ปีที่แล้ว

    thankx u shared great

  • @AnilSardiwal
    @AnilSardiwal 8 ปีที่แล้ว

    THANK YOU...

  • @abhilashva576
    @abhilashva576 2 ปีที่แล้ว +1

    Thank you

    • @contextures
      @contextures  2 ปีที่แล้ว

      You're welcome, and thanks for your comment!

  • @adzyniks
    @adzyniks 10 ปีที่แล้ว

    Thanks, I couldn't find that anywhere

    • @contextures
      @contextures  10 ปีที่แล้ว

      You're welcome, and thanks for letting me know that it helped you

  • @carmelahabte7362
    @carmelahabte7362 6 ปีที่แล้ว

    nice vedio ,thanks,

    • @contextures
      @contextures  6 ปีที่แล้ว

      You're welcome, Carmel, and thanks for your comment!

  • @sravankumar6087
    @sravankumar6087 3 ปีที่แล้ว +1

    THANK YOU SUPER

    • @contextures
      @contextures  3 ปีที่แล้ว

      You're welcome, and thanks for your comment!

  • @chkindiastudio5790
    @chkindiastudio5790 4 ปีที่แล้ว +1

    This is fantastic... can you tell me how to make this formula for show error if sum range is empty. because this formula suppose blank cell as 0. i want error showing message on blank cell
    @contextures inc

  • @TueTonic
    @TueTonic 11 ปีที่แล้ว

    This is amazing, What would be perfect if this could be I cooperated in to a pivot table, so the table returns a sum of the values i.e. products sold(£) during one particular date range. Any idea Debra?

  • @emilyshapiro3755
    @emilyshapiro3755 3 ปีที่แล้ว +1

    Very helpful and easy follow video! Is there a version of it that would look up 2 criteria? i.e. look of values within a date range for a specific product type

    • @contextures
      @contextures  3 ปีที่แล้ว

      Thanks Emily, and we did another SUMIFS video recently, with text criteria. Maybe it will help you. th-cam.com/video/hHHKElZsLAU/w-d-xo.html

  • @sajeerkakkarayil7256
    @sajeerkakkarayil7256 2 ปีที่แล้ว

    Can you explain through same with sumofproduct formula

  • @shaukatsamad2510
    @shaukatsamad2510 5 ปีที่แล้ว

    Excellent , sir, u have done excellent job i appreciate n expected more from yr side to teach us that v can learn more n more ....... thnx, yr version is old of 2013 , pls describe latest version of 2018

    • @contextures
      @contextures  5 ปีที่แล้ว

      It would be the same in the latest version of Excel.

  • @phillipmagnussen4009
    @phillipmagnussen4009 10 ปีที่แล้ว

    what if you have multiple rows of data relating to each sepcific date in a list, i.e. units sold, cost of goods sold, interest pmts and so on and you want to copy the formula over? Does the dates have to be right next to the column (or row) you want to sum up? great video btw and thanks for any answer!

  • @Luciano_mp
    @Luciano_mp 11 ปีที่แล้ว

    Obrigado.

  • @MrFuadHamid
    @MrFuadHamid 6 ปีที่แล้ว +1

    Its great....

  • @jamjam0409
    @jamjam0409 6 ปีที่แล้ว

    Thanks!!!

    • @contextures
      @contextures  6 ปีที่แล้ว

      You're welcome! Thank you for watching my video

  • @sarahurbano3262
    @sarahurbano3262 7 ปีที่แล้ว

    Hi just wondering if this formula works also if I want to get the sum in two colums.

  • @davidforbert1798
    @davidforbert1798 5 ปีที่แล้ว

    What about in the event the event where the date range cells are empty? Is there a way to pull the full sum if no dates are provided (instead of getting a null value)?

  • @mohammadilyas1692
    @mohammadilyas1692 9 ปีที่แล้ว

    Nice video! Come in handy. I have a question. Could I input the empty cells (in which cells data will be input in future) in both of criteria range (maybe it will long till last row of excel) for automatic calculation?
    And also could I define start & end as same for each day calculation method?
    Thank u.

  • @Smooth6get2cozy
    @Smooth6get2cozy 6 ปีที่แล้ว

    hi thank you great formula. if i want to write down the date in the formula instead of choosing on other cell, what the magic word after "&" ? thank you

    • @contextures
      @contextures  6 ปีที่แล้ว

      Thanks, and for a date, use DATEVALUE("3/1/17") or DATE(2017,8,1)

  • @jerrywhidby.
    @jerrywhidby. 4 ปีที่แล้ว

    A note to others. I kept receiving a zero from this formula. Turns out that my dates were in text format. I used Data>Text to columns to force them to become dates, and everything worked after that. I hope that helps someone.

  • @SmFacts190
    @SmFacts190 6 ปีที่แล้ว

    hey plz can u show me how to see the end of day sale total (daily sale) after every transaction is done should be saved at some column . tnxxxx

  • @mukeshgupta4143
    @mukeshgupta4143 6 ปีที่แล้ว +1

    Only month criteria can we sum the table.... I am not able to solve.

  • @davecastro6072
    @davecastro6072 5 ปีที่แล้ว

    is there a way to use purely function notation?

  • @shaukatsamad2510
    @shaukatsamad2510 5 ปีที่แล้ว

    Some how , how I ll know that on this article the formula have to apply, or how v can use the different formula that ll be prefect... n works properly.....

  • @KonadanJ
    @KonadanJ 4 ปีที่แล้ว +1

    How do I collect amount and dates from several sheets? I have 33 sheets, and need a week of sales tottal.

  • @mukeshgupta4143
    @mukeshgupta4143 6 ปีที่แล้ว

    Can you help me, I want start and end date like just month January start and end should February.

  • @ravinderdhiman6012
    @ravinderdhiman6012 3 ปีที่แล้ว +1

    thnx

  • @mabuhaymoretv551
    @mabuhaymoretv551 3 ปีที่แล้ว

    Hi, may I know how to count the selected cells within the period covered. Sample: I only select (E190, E205, E212 within May 4 to 10, 2021 only) thanks

  • @joshjeanminette6792
    @joshjeanminette6792 7 ปีที่แล้ว

    What if my units were names? Using this same formula im getting back 0. All suggestions appreciated.
    Thanks,

  • @jeffreypritchard6102
    @jeffreypritchard6102 6 ปีที่แล้ว

    What if I want the product of cells that fall within a date range?

  • @AbhishekBaghel2
    @AbhishekBaghel2 4 ปีที่แล้ว

    How to sum if dates in rowes landscape

  • @TheAlibaadshah
    @TheAlibaadshah 6 ปีที่แล้ว

    and how to make this in vb?

  • @johngazo8867
    @johngazo8867 2 ปีที่แล้ว +1

    Hello! I loved your tutorial, it's very helpful. To be honest, this is the closest solution to my problem now. But I have a question and I'm hoping you have an answer. For example, I have separated the Due Dates by conditionally highlighting them between, less than 30 days, between 30-60 days and 61 days above, is there a formula where the total amounts can be totaled?
    For example, I need the total amount to be paid of vendors who's Due Date passed less than 30 days?
    My boss wanted me to have this and your kind response will he highly appreciated. I hope you can help me. Thank you 🙏🏻

    • @contextures
      @contextures  2 ปีที่แล้ว

      Thanks, John, and you could use 3 COUNTIFS formulas for that. Check for invoices with no Paid date, then check if the Due date is in one of your date ranges. For example:
      =COUNTIFS(Paid,"",Due,">="&TODAY()-29,Due,"="&TODAY()-60,Due,"

  • @imBipul
    @imBipul 6 ปีที่แล้ว

    but how can i do it between 2 times for =sum hourly data??

  • @elisabethbradley9082
    @elisabethbradley9082 11 ปีที่แล้ว

    this is the first logical tutorial I've seen for this. Unfortunately its still not working for me. Its coming up with the #value! which i always interpreted as there are no values to add. However even when i put in values that should work, nothing comes up
    I named the ranges so that I could use it as numbers get added (as a forever growing list) could this be part of the problem? does every cell need to have a value in order for the formula to work?
    Thanks for any ideas!

  • @shijil100
    @shijil100 4 ปีที่แล้ว

    This formula is too helps me. More over can you tell how to get sum in category wise. Example. In this table add category a,b,c like. Need total sum of a=? , B=? , C=? Like. Can you help me. Because I want to make a my own food budget table