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

Excel Formula: Get Percentage of Year Completed or Remained

doc convert date to julia 1

Combine the function YEARFRAC together with YEAR and DATE functions in Excel can calculate the completed or remaining time of year in a percentage value based on the given date.

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

Year Completed

 

Generic formula:

YEARFRAC(DATE(YEAR(date),1,1),date)

Syntaxt and Arguments

Date: to find the amount of time completed in the year based on this date.

Return Value

This formula returns to a decimal value. For getting a percentage value, please format the result as percentage.

How this formula works

Let’s say to get the percentage of the year completed based on the date in B3, please use the formula as this:

=YEARFRAC(DATE(YEAR(B3),1,1),B3)

Press Enter key to get a decimal value.
doc convert date to julia 1

Then keep the result highlighted, click Home tab and go to click the Percent Style icon in the Number group for formatting the result as percentage.
doc convert date to julia 1

Explanation

YEAR function: the YAER function is used to get the year of the given date and display the result in a serial number format.
Here the formula YEAR(B3) returns 2021, which is the year of the given date.

DATE function: the DATE function gets the date displayed as mm/dd/yyyy format based on the given year, month and day.

YEARFRAC function: calculates the difference between two dates and gets the fractional year in a decimal value.

In this formula YEARFRAC(DATE(YEAR(B3),1,1),B3), it gets the fractional year in a decimal value between the first day of the year and the given date.

=YEARFRAC(DATE(YEAR(B3),1,1),B3)
=YEARFRAC(1/1/2021,6/20/2021)
=0.469444

Year Remained

 

Generic Formula

1-YEARFRAC(DATE(YEAR(date),1,1),date)

Take the above given date as an example, please use the below formula:

=1-YEARFRAC(DATE(YEAR(B3),1,1),B3)

Press Enter key to get a decimal value.

Then keep the result highlighted, click Home tab and go to click the Percent Style icon in the Number group for formatting the result as percentage.
doc convert date to julia 1

Explanation

The whole year can be seen as the integer 1, to minus the completed time of year, the remained time of year is figured out.


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