Not that I have friggatriskaidekaphobia or anything. But since today is Friday & 13th, lets put our Excel skills to test and find out when the next Friday the 13th is going to be.
(trivia: Check this for some interesting facts about Friday the 13th)
Finding Next Friday the 13th using Excel Formulas – Approach 1
Lets say, you have a date in cell C3, and you want to find out when the next Friday, the 13th is going to be starting the date in cell C3.
The first approach I can think of is pretty straight forward.
We list all the 13ths in a column and find the next 13th which is also a Friday. For this,
- In cell E3, we write =MONTH(C3)
- In cell F3, we write =YEAR(C3)
- We use these 2 cells to refer to the month and year of the starting date.
- Then, we write in an empty cell =DATE($F$3,$E$3+ROWS($A$1:A1),13) – lets say this cell is E5
- This gives us the 13th date of next month, from the start date in cell C3.
- Now, lets drag this formula and fill it down, for say, next 100 cells to get next 100 13ths.
- The ROWS($A$1:A1) portion generates continuous numbers from 1 thru 100 and thus we get next 100 13ths.
For more on this technique, read – Using ROWS() to generate a series of numbers
Once all the 13ths are listed, in an adjacent column, we can use WEEKDAY() formula to see if the 13th is a Friday – WEEKDAY(E5)=6
This column will have a bunch of TRUE & FALSE values.
Now to find the next Friday the 13th, we just look for TRUE value in this column (say F5:F104) use it to derive the date.
So this formula =DATE(F3,E3+MATCH(TRUE,$F$5:$F$104,0),13) should give us the next Friday, the 13th.
Break up of above formula:
- MATCH(TRUE,$F$5:$F$104,0) tells us the position of first TRUE value (ie first Friday, the 13th in our list)
- DATE(F3,E3+Match value, 13) gives the date of next Friday, the 13th
- Remember, F3 contains the year and E3 the month of starting date you entered in C3.
Finding Friday the 13th, 2nd Approach
While above approach works fine, it requires a few helper columns. So I got thinking, how can we write a one shot formula that gives us next Friday, the 13th date?
First the formula:
This is an array formula.
{ =DATE(YEAR($C$3), MATCH(TRUE, WEEKDAY(DATE(YEAR($C$3),MONTH($C$3)+ROW($A$1:$A$100), 13))=6,0) + MONTH($C$3),13) }
Scary formula indeed. We may have to coin a word for fear of long excel formulas – doubleXLformulaphophia.
How does this formula work?
Before understanding the portions of this formula, we need to understand the approach.
This formula uses similar thinking as of earlier formula. Just that it shrinks all those helper columns to an array and works the magic.
To find next Friday, the 13th, we need to list down next few 13ths and check which one is a Friday. Since Excel lookup formulas always return the first match, we find the first such Friday.
Parts of the formula:
- To get the next 100 13ths, we use, DATE(YEAR($C$3),MONTH($C$3)+ROW($A$1:$A$100), 13)
When used in an array formula, this gives us the 13th days of next 100 months.
(aside: technically, we do not need next 100 months. As per Wikipedia, the maximum gap between successive Friday, the 13ths is 14 months. more)
Also, note that we are using ROW() formula, not ROWS(), as we want all the row numbers for first 100 rows as an array.
- Once we have these 100 dates, we just check for their Fridayness with, WEEKDAY(100 dates))=6
This formula returns a 100 TRUE & FALSE values. TRUE, whenever the date is a Friday, FALSE, when it is not.
- Then, we find the first TRUE value (ie first occurrence of Friday, the 13th in next 100 months) with, MATCH(TRUE, next 100 dates’ Fridayness, 0)
This gives us the position of next TRUE value.
- Finally, we use that to construct the date of next Friday, the 13th – DATE(YEAR($C$3), MONTH($C$3) + first TRUE value, 13)
And that is how we find the next Friday the 13th based on the start date in cell C3.
Important Note:
Both approaches only search for Friday, the 13th starting next month of the date in C3. If C3 has a date prior to 13th and the 13th of that month is a Friday, the 13th, it would not be considered. For example, if you enter 10-JAN-2012 in C3, both formulas would find next Friday the 13th as April 13, 2012 not Jan 13, 2012.
Download Friday, the 13th Example Workbook
I have made a colorful (and almost gory) download workbook. Even if you do not want to learn this, I suggest downloading the file, for fun!
Click here to download the Friday, 13th calculations workbook & play with it.
Bonus: It has homework too!
Your Homework
Finally some homework to wrap up this week.
Write a formula to find the maximum gap between consecutive Friday, the 13ths in next 5 years, from a starting date in cell C3.
Please post your answers in comments so that we all can learn.
Checkout more Formula Forensics
Once in a while, we take a complex real world (or as in this case, gory world) problem and write an equally scary formula. Then, we go great lengths breaking it down and explaining it. We call this as Formula Forensics. Much like forensics in CSI, without ultra zoom & hot chicks. You can check out some of our recent adventures here:
- Using an array formula to count maximum occurrences of a text
- Counting specific words in a multi-cell range
- Extracting a list of items from a larger list by criteria
- … More formula forensics
PS: It is also Hui’s birthday today. Lets wish him many more years of fun, happiness & Excel craze.
PPS: Finding his next birthday is going to be simple, we just write =DATE(2013,1,13) 😛














49 Responses to “Project Management Dashboard / Project Status Report using Excel [Part 6 of 6]”
[...] display milestones Part 4: Time sheets and Resource management Issue Trackers & Risk Management Project Status Reporting – Dashboard Bonus Post: Using Burn Down Charts to Understand Project [...]
Excellent!
I was looking forward to this and you've done it again...Shame I can't claim it was all my own work 😉
ps hope you're getting enough sleep
Excelent !!! Tks to share your knowledge with us.
Izabel
Sao Paulo - Brazil
Nice job!.
I'm also keen on PM Excel Dashboards. Please, take a look at
http://screencast.com/t/TyaxH5r4mDf
That's one example of my Project control Spreadsheets.
Cheers
Hi Miguel,
Do you share your PM Excel Dashboards? It looks awesome.
Regards,
Germán
Hi M. Miguel,
Can you share your Excel Dashboards? Awesome work BTW.
Regards,
Michel Levesque
Can you share the PM excel template?
[...] haired Dilbert hat zum Abschluss einer Artikeserie zum Thema Projektmanagement mit Excel eine Anleitung zum Bau eines Projekt-Dashboards veröffentlicht. Ein Dashboard ist eine Visualisierungsform für große Mengen von meist [...]
Quite a nice and helpful article. I am sure excel is one of the most used application across many many big companies. And your info on project status update using excel would surely be usefull. Keep up the good work on this blog site. Also to share there are some open source flash-based graphing and charting solution which caould also be used on any project..
http://askwiki.blogspot.com/2009/07/how-to-create-quality-charts-using.html
@Alex, Izabel .. thank you 🙂
@Miguel: Thank you. Your dashboard looks very good. It is inclined towards the budget and finances of the project. I have kept those aspects out of this series. May be I will revisit the financial aspect of projects at a later point.
@Rishil: Thank you. Yes, you can create flash based charts (or even simple image based charts) and embed them in a project dashboard that can be published to the team using intranet (like sharepoint). This is how large companies usually do it. Thanks for sharing the Askwiki article.
Great looking dashboard!! Do you have a version for the Mac versions of Office available?
Thanks
Chandoo,
this is great piece of collating info.I liked it and shall try using it in office.
Thanks for the all hard work behind this.
Chandoo,
Kudos. This is really as simple as it gets for laymen. We did this sort of stuff in Consulting - but this can now become really simple for people. Will have my team look at this! Great work.
thanks,
Mrigank
[...] I suggest reading my 7 part series on project management using excel. Starting with Excel Gantt Charts to Project Dashboards. [...]
Just downloaded the project management template bundle...great!
Have you done anywork on a Project Portfolio Dashboard template?
@Bw... Thanks for getting a copy of the templates. 🙂 I have worked on few assignments where we built such templates. But these are similar to other regular dashboard templates. I will share some of these ideas in a later post someday. Meanwhile if you have any ideas on how to structure project portfolio dashboard, let me know using comments or email.
[...] to display milestones Time sheets and Resource management Issue Trackers & Risk Management Project Status Reporting – Dashboard Bonus Post: Using Burn Down Charts to Understand Project [...]
[...] display milestones Time sheets and Resource management Part 5: Issue Trackers & Risk Management Project Status Reporting – Dashboard Bonus Post: Using Burn Down Charts to Understand Project [...]
[...] to display milestones Time sheets and Resource management Issue Trackers & Risk Management Project Status Reporting – Dashboard Bonus Post: Using Burn Down Charts to Understand Project [...]
Thanks fro the great ideas! To get a sense of the layout and design of a Dashboard more geared toward Cost and Schedule anaysis, check out the example Dashboard at http://www.ProjectDashboards.com which was built entirely in excel.
hey,
i just need a simple Chart where by i can show some of the projects by % wise. no dates required.
1st column Project name and 2nd column will be status (filled with %). can you pls help me out.
Thanks.
@DS... if you have excel 2007, you can use data bars in conditional formatting for this purpose.
Hi Chandoo - this series is an excellent resource and tutorial, thank you for sharing.
When I sat down to consider what my dashboard should look like, one of the most important features for me is to be able to maintain version control and to show simply on what version is on display.
Apart from the naming convention of the file name, is there a good way to do this within a dashboard? I'd be interested to hear your thoughts!
@Larph: Welcome 🙂
> You can do version control thru Macros (but always remember that your audience can disable macros)
> Another option is to use a static time stamp / version number in the title page of dashboard that you update manually whenever you make changes to the file
> In excel 2010, you can keep track of file versions from File menu. This can be used to select a previous version of dashboard.
> Best option is to use a version control system like SVN or upload files to Sharepoint or something like that. This will take care of versioning for you (although it is a bit technical and dashboard audience may have difficulty figuring the versions out).
> The easiest option is to use filenames and the CELL() formula to get the version number (or date) from the filename so you can show it on the dashboard.
Hi Chandoo... I'm following you from Brazil...
I would like to thank you for the tips about excel, mainly with dashboards ... It helped me a lot …
Take care...
Di
On the dashboard when I print, the text is blanked out in the middle of the Issues list - suggestions on how to fix?
[...] Project Management Dashboard in Excel [...]
Hi Chandoo, do you have an equivalent Project Management Dashboard / Project Status Report for MS Office 2010?
As a Microsoft trainer I'm interested in your choice of Excel for project management. I'm assuming that you've tried Microsoft Project and have decided not to use it? We get folks on our MS Project courses who've tried to use Excel for PM purposes and none of them have made such an impressive project plan, but I wonder is it worth all the effort?
This looks very interesting. How may I be a part of this
Does this template work in Google Spreadsheets?
Many thanks for sharing your expertise with us. Keep up the good work 🙂
Heya i'm for the first time here. I came across this board and I to find It really helpful & it helped me out a lot. I am hoping to offer one thing again and aid others like you helped me.
Hi Chandoo,
Your PM dashboards impressed me so much that I've downloaded the Portfolio and Project Management package. All of the documents look very professional.
I was going through the Portfolio dashboard and I had a question.
When I enter in additional holidays they are highlighted in the gantt chart. Is it possible so that the name of the holiday shows up in the highlighted area of the gantt chart.
Thanks
Adam
[...] Project Status Dashboard [...]
[...] Project Status Dashboard in Excel [...]
[...] Project Management Dashboard in Excel [...]
can you confirm that the downloads will work on a mac - excel for mac v14.3.6
thanks
Made a slight variation on the schedule sheet,
1. Add a date column for start
2. In week column cell use =weeknum() and link to date cell
3. Hide week column
When you enter in a date for each task the week number is populated accordingly
simple but more effective, you can also dynamically link the date cell to your MSP project file for even more automation!!
I purchased a copy of the project management dashboard excel file. I misplaced the password to unlock the file and make modification. Can you please resend the password.
Thank much in advance...
Hi there! I just would like to give you a big thumbs up for your great info
you've got right here on this post. I'll be returning to your website
for more soon.
I bought ur project management template just want to know how to hide the budget section from portfolio?
Hi, Thanks - very good job you've prepared!
You've inspired me as well 🙂
Best regards
Hello!
I am using a gantt chart template which i got from your website. All is good just when I add all my acitivities in data spreadsheet and then go back to gantt chart to view them, I only see first 9 and then I need to keep scrolling for the next ones. is it possible to see most of the activities if not all in the single frame.
thanks for answering!
This is my first time pay a visit at here and i am actually happy to read all at alone place.
I am interested in your dashboard; downloaded the locked version, unable to use it...do you have a user guide that is available that I can see and use on the locked version?
Please send me daily newsletter
Hi,
I downloaded the PM dashboard and the gantt chart only has dates till the year 2016. How do I change this to include 2017 FY as well.
When I enter a activity for this year , it fails to show up on the chart.
Hi
Would.like to purchase the project management .kits
Pls share the payment link in INR
Also share your contact number to speak with you
Regards
Hari
9384825926