Note: The other languages of the website are Google-translated. Back to English

Excel Formula: Count Days Left in Year or Month

doc convert date to julia 1

In this tutorial, it provides the formulas to count how many days are left in the current month or year.

If you want to follow along with this tutorial, please download the example spreadsheet.
doc convert date to julia 1

Days left in the current month

 

Generic formula:

EOMONTH(date,0)-date

Syntaxt and Arguments

Date: the date that you want to count the left days in current month.

Return Value

The formula returns a value in date format, you can change it to general or number format to get the actual number of left days.

How this formula work

In cell B3:B8 is a list of dates, to count the days left in the current month, please use below formula:

=EOMONTH(B3,0)-B3

Press Enter key and drag fill handle down to the cell B8.
doc convert date to julia 1

Then click Home tab, and go to Number Format drop-down list to select General or Number to change the dates to numbers.
doc convert date to julia 1

Explanation

EOMONTH function: gets the last day of the month before or after a certain number of months. Here, EOMONTH(B3,0) returns the total days in the current month.

Days left in current year

 

Generic formula:

=DATE(YEAR(date),12,31)-date

Syntaxt and Arguments

Date: the date that you want to count the left days in current year.

Return Value

The formula returns a numeric value.

How this formula work

In cell B3:B8 is a list of dates, to count the days left in the current year, please use below formula:

=DATE(YEAR(B3),12,31)-B3

Press Enter key and drag fill handle down to the cell B8.
doc convert date to julia 1

Explanation

Year function: gets the year based on the date.

Date function: creates a date based on the given year, month, and day. Here DATE(YEAR(B3),12,31) will get the date 12/31/2019.


Relative Formulas

Relative Functions


The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

Would you like to complete your daily work quickly and perfectly? Kutools for Excel brings 300 powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) and save 80% time for you.

  • Designed for 1500 work scenarios, helps you solve 80% Excel problems.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands.
  • Become an Excel expert in 3 minutes. No longer need to remember any painful formulas and VBA codes.
  • 30-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years.
Ribbon of Excel (with Kutools for Excel installed)

Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Firefox, And New Internet Explorer.
Screen Shot of Excel (with Office Tab installed)
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations

Follow Us

Copyright © 2009 - www.extendoffice.com. | All rights reserved. Powered by ExtendOffice. | Sitemap
Microsoft and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.
Protected by Sectigo SSL