Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in


How to sumif date is less/greater than today in Excel?

Supposing we have a sale volume table with planning and actual volumes of every day. Now we are required to count occurred dates before today and calculate the total planning volumes before today in order to dynamically compare the planning volumes and actual volumes. Here I will apply the SUMIF function to get it done in Excel quickly.

Sumif date is less/greater than today with formula in Excel

Easily select and count if dates are are less/greater than today in Excel

If you have Kutools for Excel installed, you can apply its Select Special Cells utility to quickly select and count any date cells if dates are less or greater than a certain date, or in a certain date range. Full Feature Free Trial 60-day!

ad select specific cells count greater than today

arrow blue right bubbleSumif date is less/greater than today in Excel

To sum sale volumes if they occurred before today in Excel, we can get it done with the SUMIF function easily as following:

Find a blank cell (in our case, we select the Cell B21), enter the formula =SUMIF($A$2:$A$20,"<"&TODAY(),B2:B20) and press the Enter key. See the left screenshot.


(1) In the formula of =SUMIF($A$2:$A$20,"<"&TODAY(),B2:B20), the $A$2:$A$20 is the date column where you will check if the sale volumes are before or less than today, the B2:B20 is the planning volume column where you will sum, and you can change them based on your needs.

(2) If you want to sum sale volumes if they are greater than today, you can apply the formula =SUMIF($A$2:$A$20,">"&TODAY(),B2:B20), and to sum sale volumes if they are no less than today, you can apply the formula =SUMIF($A$2:$A$20,">="&TODAY(),B2:B20).

note ribbon Formula is too complicated to remember? Save the formula as an Auto Text entry for reusing with only one click in future!
Read more…     Free trial

If date is before or after today, select/highlight/copy/delete entire rows in Excel

If you have Kutools for Excel installed, you can apply its Select Special Cells utility to quickly select the entire row if a date if before or after today, and then easily highlight, copy, or delete these entire rows with ease in Excel. Full Feature Free Trial 60-day!

module select special cells 3

Recommended Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 71%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 82% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Josiah · 8 months ago
    I'm aware that this post is rather old but I have a question: why is the ">"&TODAY() part necessary in that second section with the formula "=SUMIF($A$2:$A$20,"<"&TODAY(),B2:B20)"? It was what I was missing to get my formula to work. I am not sure why that's necessary as other formulas don't seem to require the concatenation of the > symbol and the word TODAY().

    Let me know if you can, thanks!
    • To post as a guest, your comment is unpublished.
      kellytte · 4 months ago
      Hi Josiah,
      The ">"&TODAY() in the formula will filter dates that are later than today, and then sum the filtered out results. Without the ">"&TODAY(), the formula will sum all recorded data.