If you often work with dates, you’ll find these hacks incredibility useful. Chances are that you might already know some of them and might find few new ones as well. Let’s jump right into it

## 1) Dates are Positive Numbers

Every once in a while dates act cocky and appear as random numbers. All you have got to do is convert them into a Date format using **Ctrl **+** Shift **+** 3**

**Fun Fact 1** : Excel calendar begins from 1 Jan 1900. In any cell type 1 and convert that into a date format and take a look into the formula bar, you’ll see 1 Jan 1900. So the next time you a see a random number don’t freak out, it simply means the numbers of days past since 1 Jan 1900

**Fun Fact 2** : You can convert the dates back to numbers using **Ctrl **+** Shift **+** ~**

## 2) Enter Today’s Date

There are 2 ways to do that

- Use the shortcut
**Ctrl****:***(semicolon).*The date will be static and will not change - Use the formula
**=TODAY()**in any cell. The date will be dynamic and will change as per the calendar date

## 3) Find the no of days between 2 dates

- Subtract the smaller date from the larger date
- One is added to include the starting date in the calculation (i.e. there are 10 days in between 1 Nov till 10 Nov)

## 4) Find the no of months between 2 dates

**The DATEDIF function**can find the number of completed months between 2 dates.- This function is not documented in Excel, you can use it if you know it already 🙂

## 5) Find the no of years between 2 dates

There are a few more variation for using DATEDIF, you can **learn all of them here**

## 6) Find if the dates are between Start and End Dates

- The AND function is checking if the dates is between start and end
- Learn how to use the
**IF AND Function**

## 7) Display Month as Numbers

- The & operator combines the month name and 1 to form a date
*“1Feb”* - The month function then extracts the month number from that date

I learnt this trick from Denys Calvin’s comment on Chandoo’s blog

## 8) Display week number from a date

- The WEEKNUM function returns the week number of any date
- The first input is the date
- The second input is the week start type, you can customize the day when your week starts

## 9) Display the Day with the Date

- Select the date/dates
- Press Ctrl 1 (to open format cells)
- Go to Custom
- Use the code : dddd dd-mmm-yy
*(4 times d, adds the day)*

**Fun Fact 1 : **ddd adds the short form of Day for example Mon, Tue etc..

**Fun Fact 2 :** mmmm adds the full name of the month for example November, December etc..

**Fun Fact 3 :** mmmmm adds a initial letter of the month for example N (for November) D (for December) etc..

## 10) First Day of the Next Month

The EOMONTH returns a month ending date. It accepts 2 inputs

- The Start Date – Could be any date
- Months – The numbers of months you want to go forward or backward. Use –
*minus*sign to go backwards

**Plus 1** shifts the month ending date to the start of the next month

## 11) First Day of the Current Month

The logic and formula remains the same just the month number in the EOMONTH becomes -1

## 12) Last Day of the Current Month

Simple EOMONTH with months as 0 will work 🙂

## 13) Last Day of the Previous Month

The month input becomes -1 to get the last date of the previous month

## 14) Get Weekdays Only

- Simple
**IF Formula**Checks if the previous day is Friday*(i.e. weekday = 5)* - If yes then it jumps to Monday
*(previous day + 3)* - Else jumps by a single day
*(previous day + 1)*

## 15) Show Alternate Dates

- Write the first 3 alternate dates
- Drag the cells down, selecting the first 3 cells and alternate dates will be auto filled

## 16) Find the next leap year

- The formula is checking which of the next 4 years are divisible by 4.
- If yes then the formula picks up that year

**Fun Fact : **

- This formula will always give the next leap year even if the current date belongs to a leap year
- If you want the current leap year also to be considered tweak the formula like this

=MAX((MOD(YEAR(EDATE(Q12,{0;12;24;36})),4)=0)*(YEAR(EDATE(Q12,{0;12;24;36}))))

Just be sure to press CTRL SHIFT ENTER to confirm the formula

## 17) Find the next Sunday

To customize this formula to any other day, just change = 7 to any other week number. 1= Monday and 7 = Sunday

## More Tips on Dates

## What are your Date Tips, Tricks and Hacks

If you have a favorite tip on dates or have found any of these useful, please share using comments