Hello everyone. Stop reading further and go fetch your helmet. Because what lies ahead is mind-blowingly awesome.
About a month and half ago, we held our annual dashboard contest. This time the theme is to visualize state to state migration in USA. You can find the contest data-set & details here.
We received 49 outstanding entries for this. Most of the entries are truly inspiring. They are loaded with powerful analysis, stunning visualizations, amazing display of Excel skill and design finesse. It took me almost 2 weeks to process the results and present them here.
![]()

But first, let me apologize
Each of our contest participants spent a lot of time crafting their files. But due to unforeseen personal work, I could not set aside time to process the entries until last week of May. I sincerely apologize for taking this much time to showcase the entries.
What about the winners?
This week our panel of judges will be reviewing these 49 entries. Next week we will share short-listed entries for public voting. Once the voting is complete, we will declare the winner. This process should be completed with-in 2 weeks.
How to read this post?
This is a fairly large post. If you are reading this in email or news-reader, it may not look properly. Click here to read it on chandoo.org.
- Each entry is shown in a box with the contestant’s name on top. Entries are shown in alphabetical order of contestant’s name.
- You can see a snapshot of the entry and more thumbnails below.
- The thumb-nails are click-able. So that you can enlarge and see the details.
- You can download the contest entry workbook, see & play with the files.
- You can read my comments at the bottom. The comments are in 2 sections – what is good, what can be improved.
- Please take my comments on “what can be improved” lightly. I do not mean to offend any of the contestants.
- At the bottom of the box, you can find links to the key techniques used. Click on them to learn more.
Thank you
Thank you very much for all the participants in this contest. I have thoroughly enjoyed exploring your work & learned a lot from them. I am sure you had fun creating these too.
So go ahead and enjoy the entries.
PS: We had to disqualify 2-3 entries due to errors in VBA code or inability to open the file.
Migration Dashboard by Aditya Canay

- Good colors
- Easy to understand (built in help sheet as well)
- Interactive. Can ask questions & get answers
- Interesting facts & overall summary on top
What can be improved:
- Summary on top is static. It would be better to depend on year or state selected.
- State selection is clumsy. Could have used Active-x combo box or slicer
- Donut chart is not the best choice.
Techniques used:
Migration Dashboard by Aditya Srinivaasan

- Simple and easy on eyes
- Form controls with auto complete (Active-x combos)
- Added data on Cost of living, Crime rate & Tax rate. Helps understand what may have caused the migration.
What can be improved:
- Missing overall summary or header.
- Logarithmic scale on population breakup chart. Makes it unclear.
- Not sure which year’s data population distribution chart shows.
- Crime rate indexation assume same weightage for all crimes. Could have used a better measure.
Techniques used:
Migration Dashboard by Amit Ajmera

- Comprehensive dashboard with lots of detail
- Analysis of individual state, comparison with another state and overall trends
- Interactive. Can ask questions & get answers
- Analysis of any year or average of all 3.
- Shows a map of selected state.
What can be improved:
- Could use subtle and better colors. Also apply consistent colors.
- Alignment is off in few places.
Techniques used:
Migration Dashboard by Arnaud Duigou

- Clickable map to drill down to a state
- Overall statistics vs. Individual state focus
- Interactive. Can ask questions & get answers
- Interesting facts & overall summary on top
- Built-in help bubbles (that can be toggled)
- Analysis on factors for migration (by using additional data like per-capita income, unemployment rate and weather conditions)
What can be improved:
- Not sure how the tool tips button is supposed to work.
- Alignment is off in few places.
- Switching between state view & overall heatmaps seems clumsy. Also, the state selection combo box on top feels redundant
- Colors & fonts can be improved. Feels like too many of them are used.
Techniques used:
Migration Dashboard by Biju Chacko

- Simple charts with easy to understand colors
- Interactive charts to see migration trends per year
What can be improved:
- Could use a summary on top and few other metrics
- Bar charts have non-zero axis. Creates false impression
- Alignment can be improved. Lots of empty spaces that can be filled with useful insights.
Techniques used:
Migration Dashboard by Celso Garcia

- Clickable map to drill down to a state
- Color coded map & bar chart for easy interpretation
- Form controls to select year
What can be improved:
- Could use a header with summary statistics
- Map and bar chart represent the same data. Could have used other metrics in the bar chart to give more insights
Techniques used:
Become Awesome in Excel & VBA – Create dashboards like these…
- Learn how to create interactive dashboards & reports using Excel
- Develop your own macros & VBA code
- 50+ hours of video training
- Learn at your own pace
- Click here to know more
Migration Dashboard by Cesarino Rua

- Map with details on hover!
- Lots of details for selected state, include flag of the state, important cities etc.
What can be improved:
- Some of the tables feel like orphans. Could use titles (and overall summary or title or both)
- The bar chart on right is just repetition of data in the last of column of table before that. Could have used this space for something else.
- Feels like too much data. Need to zoom down to 80% to see everything. Consider using form controls or something else to make it easy on eyes.
Techniques used:
Migration Dashboard by Chris Newman

- Clear, dashboard style output with details in big fonts.
- Details of migration combined with political tastes of the state.
- Slicers for selecting year
- Good choice of colors, good alignment and layout.
- Built-in help bubbles
What can be improved:
- Poor choice of conditional formatting databar on top. Could have used regular bar chart with 0 axis.
- Giving a choice of additional measures could have added detail to state view.
Techniques used:
Migration Dashboard by Daniel Dion

- Clickable map to drill down to a state
- Also, slicers to select a state
- Ability to select year, type of metric (leaving, entering, net gain) to view for the selected state.
What can be improved:
- Too many scrollbars. Especially both slicer & clickable map serve the same purpose. So, could have removed the slicer.
- The listing of states & column chart beneath the map are same data. Again this space could have been used for other insights.
Techniques used:
Migration Dashboard by David Hoppe

- Map with vectors indicating the movement
- Multiple statistics and ability to switch them (and years)
- Ability to analyze by absolute or relative population
- Slicers for selecting state (or region or division)
- Simple, clean layout with good colors and beautiful presentation
What can be improved:
- Could have added help or instructions
- Could have removed either region or division slicer (as they feel redundant)
Techniques used:
Migration Dashboard by Dwight Johnson

- Simple charts with easy to understand colors
- Data validation to select state
What can be improved:
- Could have moved the output to a blank sheet & cleaned it up
Techniques used:
Migration Dashboard by Fakhri Damdi

- No comments
What can be improved:
- Could have reduced the formatting and focused on insights
- Feels incomplete and rushed. Could have focused on answering some analytical questions instead of making charts from raw data
Techniques used:
Migration Dashboard by Gangadhar Yeligaty

- Simple dashboard with easy to understand layout and charts
- Interactive charts to see migration trends per year
- Scrolling area to see where people move from selected state
- Built-in help
What can be improved:
- Could have added header section with few statistics
- Could have used better formatting for the charts (labels & axis feels heavy)
Techniques used:
Migration Dashboard by Janet

- Dual map with ability to analyze by either leaving or entering state
- Ability to focus on various trends (with sortable table, year selection)
- Slicers for selecting year, state, type of sort
- Good choice of colors, good alignment and layout.
What can be improved:
- Sort order slicers are reversed (clicking on Ascending sorts the table in descending)
- Feels like too much data. Could have used 000s or millions notation for population numbers (and removed MoE numbers or have them toggled)
- Could have added help to understand what arrows meant in the last column.
Techniques used:
Migration Dashboard by Jean-MarcVoyer

- WOW
- Form controls, selectable cells to define analysis
- Good design and colors
- Excellent analysis (with ability to ask a lot of questions and get answers visually
What can be improved:
- Dark background makes it tricky to read numbers. Could have used white or dull background.
- The dashboard is very comprehensive. It could have benefited from help screen.
Techniques used:
Migration Dashboard by Jeff Sawers

- A very interesting layout and selection mechanism (with slicers for year, region and state)
- Focus on top 10 states with-in selection and where people moved using databars & heat maps
- Good alignment, colors and design.
What can be improved:
- The heatmap section is somewhat tricky to interpret. May be aggregating data at just region level would have made it easy to read.
- A little more analysis or explanation on what may have caused migration would make this even better.
Techniques used:
Migration Dashboard by Joey Cherdarchuk

- Beautiful and simple design
- Clickable cells for selecting year and state
- Simple colors and attractive maps
What can be improved:
- The labels on bar chart are hard to read. A better color or placement would have benefited.
- If the selected year’s map is highlighted, it would make interpretation of trends faster.
- A quick summary on what may have caused such migration trends would make this dashboard even better
Techniques used:
Migration Dashboard by Jon Schwabish

- Simple chart with interactive controls
- Uses the hypothesis that people in poor states move to neighboring states and tests it with the interactive charts & data.
- Good colors and simple design
What can be improved:
- Could have added overall statistics in header
- Could have displayed relevant facts for the selected region or state.
Techniques used:
Migration Dashboard by Jorge L

- Simple & clear layout with summary on top and state details at bottom. Good colors too
- Interactive controls to select state and year.
What can be improved:
- Selecting state is tricky with data validation. Could have used a slicer or active-x combo box
Techniques used:
Migration Dashboard by Jude Shyju

- Data & charts (map or table) in one view with ability to toggle fields & years
- Ability to drill down to a state and visualize inflow or outflow
What can be improved:
- Picture links create clumsy output. Could have used regular charts, tables and drawing shapes instead.
- Lack of alignment in few places.
- Although ability to turn off fields is welcome, it just results in a column with #N/A. Not useful as no space is gained.
Techniques used:
Migration Dashboard by Kevin Steiner

- Interesting visualization with very tiny cells making up US map, pivot table report filters used for selection
- Choropleth map with Excel cell grid!
- Ability to see the map & full data (as pivot report)
What can be improved:
- The cell grid map, although innovative, does not look perfect. Could have used regular map with a little bit of VBA to color it.
- Instead of presenting all the data in a table (pivot table), could have used charts. This saves space and helps create a better layout.
Techniques used:
Migration Dashboard by krishnakumar

- Detailed analysis on regional migration trends (Midwest, northeast, south & west)
- Ability to drill-down to an individual state by selecting year, region and state’s name
- Interesting facts & details about state shown.
What can be improved:
- Regional migration column chart is tricky to read. Could have used a map or diagram for better effect.
- Too long. Requires 2 scrolls to see the full dashboard. Instead could have shrunk or removed a few charts to create a compact report.
Techniques used:
Migration Dashboard by krishnasamymohan

- Simple report on state migration
What can be improved:
- Too simple. Could have used some charts or conditional formatting to highlight interesting points
- Year selection does not seem to work.
- Gauge charts a poor choice for visualizing this type of data. Could have used alternatives
Techniques used:
Migration Dashboard by krishnateja

- Interesting layout and state selection mechanism (clickable map)
- Ability to analyze selected state’s migration flows
What can be improved:
- Instead of 4 charts depicting regional trends, one chart with selected region’s trends could be used. This creates space for more analysis.
- In-consistent colors and alignment
- Could have displayed a title & quick summary on top.
Techniques used:
Migration Dashboard by Kyle Tan

- Interesting presentation with ability to choose a variety of perspectives (destination vs. origin, year, entire USA vs. single state) and various measures for doing correlation analysis.
- Sortable, scrollable chart of state migration flows (with distance from origin!)
- I love the correlation analysis chart. But selecting right measure to analyze feels tedious. Could have pre-calculated or suggested measures based on state selection.
- Good, compact layout.
What can be improved:
- The exploded, grouped pie chart on top feels clumsy and poorly done. Should have used a simple bar chart for top 15 states alone.
- The VBA code feels buggy and sluggish. Could have checked it for errors and disabled screenupdating.
- Could have displayed a title & quick summary on top.
Techniques used:
Migration Dashboard by Mark Weber

- Superb colors, layout, chart selection and presentation
- Very easy to use with built-in help, lots of buttons to change / show / hide things you want.
- Analysis by state and state-to-state.
- 2 color themes – dark & light version.
- Subtle but powerful use of conditional formatting.
What can be improved:
- Could have added a top section with overall USA statistics.
- The analysis is limited to population numbers alone. Could have added additional metrics for richer analysis.
Techniques used:
Migration Dashboard by Matthew Waechter

- Beautiful colors and layout. Feels well balanced and easy on eyes.
- Ability to select state & year to understand migration flows. The selection choice feels slick (clickable cells with arrow indicator)
- Interesting ladder / waterfall chart to explain net gains in population.
What can be improved:
- The dot plots on top feel cryptic. Could have added help or title to explain that they are migration numbers for all 50 states.
- The analysis is limited to population numbers alone. Could have added additional metrics for richer analysis.
Techniques used:
Migration Dashboard by Michael Bellot

- An elegant dashboard with subtle colors, interesting shapes and clever layout
- The clickable map is a very user-friendly way to explore the information.
- Additional metrics like health, education, wealth, crime, climate etc. help explain migration reasons
What can be improved:
- Could have added data labels to the bar charts (or to the map) to make it better.
- The radar chart, although looks pretty, just repeats the data on the shapes. Could have used it for something else.
- A little more clean-up on dashboard sheet is needed. It shows some calculations and data on the right (which could be hidden)
- It is not sure for what year the map & bar chart data is displayed. An year selection mechanism can also be added.
Techniques used:
Migration Dashboard by NA Horansil

- Wow, cell grid used to create a giant map of USA. Then conditional formatting is used to highlight state’s cells based on migration numbers.
- Ability to select state & year to understand migration flows.
- Sortable migration trends chart (although in a separate sheet)
What can be improved:
- While the cell-grid map looks neat, could have used a regular map with VBA for color-coding. This provides better fidelity and forces us to focus on numbers rather than technique.
- The work books has 3 sheets with dashboards / charts. Contest rules specify one chart or dashboard. Could have integrated all to one page.
- Could have displayed a title & quick summary on top.
Techniques used:
Migration Dashboard by Nathaniel Mahoney

- One more cell grid map, this time at zip code level. Looks interesting although stretched.
- Ability to select state & year to analyze migration trends
- Uses pivot tables & additional data.
What can be improved:
- The map gets stretched and looses clarity due to cell grid approach. Could have used a regular map with VBA.
- The dashboard (?) has no title, no additional numbers and has minimal legend. Could have added a title, quick summary and few more charts.
- How the zip code level migration data is obtained is not clear. Could have added instructions & pointed to sources.
- Requires Data > Refresh once selection is made. Could have automated that with VBA.
Techniques used:
Migration Dashboard by Nhut Vo

- Simple report on state migration
- Ability to select state, year for analyzing migration flows. Ability to sort the list of states based on inflows or outflows.
What can be improved:
- The chart on the right (state-wise distribution) feels busy. Could have shown only top 10 states as sorting is already available.
- The sorting buttons are confusing. Could have used a selection mechanism (or toggle button).
Techniques used:
Migration Dashboard by Niyaz Shaffi

- Clean layout with good colors and clear titles
- Slicers for selecting to & from state, year
- Forecast of migration flows
- Choropleth map based on state migration flows
- Ability to expand a chart (and see more data points, although for a poorly executed chart)
What can be improved:
- The radar plots are a poor choice for depicting top 10 states. Should have used bar / column charts
- The migration inflow vs. area bubble chart is not easy to understand. Should have added instructions.
Techniques used:
Migration Dashboard by Permana Zainal

- Clear, simple layout with bright colors
- A map with bubbles depicting migration trends.
- Ability to analyze by state, year and migration destination
What can be improved:
- The map / bubble chart is confusing with too many colors. Not sure what the state fill colors represent. The bubble colors are also distracting and useless (as the bubble size is what matters). Could have simplified with either Choropleth map or outline map with bubbles.
- The bar charts beneath donuts do not start at zero. This creates wrong impression of the data.
- Summary of total migrants / population chart needs axis labels and ability to sort.
Techniques used:
Migration Dashboard by Prashant Sharma

- Roll-over selectable map and ability to select year for analysis
- Simple dashboard with state migration analysis
What can be improved:
- The state-wise migration flows chart needs ability to sort.
- Could have added few more charts or analysis tables. The chart & tables are just a replica of original data.
- Could have added a title & quick summary at overall USA level.
Techniques used:
Migration Dashboard by Rajesh Sangati

- Map with ability to select state, type of migration and year (from drop downs)
- Answers questions like which states get most net migrations, contribute for 90% of outflows, inflows
- Simple layout and easy to use
What can be improved:
- The map feels hand-drawn. May be a better outline map or shapes would do justice.
- Labels on charts are difficult to read. Should have used 2 letter state code with horizontal orientation.
Techniques used:
Migration Dashboard by Richard Dutton

- Clear, elegant layout with lots of detail
- Can select a state (from drop-down), year to analyze migration flows.
- Sortable state-to-state migration chart
- Clicking on any state in the map shows further statistics.
What can be improved:
- The state selection drop-down is clumsy to use. Should have used either active-x or slicer or clickable map to make it user-friendly.
- The axis labels on state-to-state migration are hard to read. May be 2 letter codes or scrollable chart would do the trick.
Techniques used:
Form ControlsMaps + VBASortable TablesConditional Formatting
Migration Dashboard by Roberto Mensa

- Wow. A very colorful, clear and well designed report
- Slicers for selecting year, type of data and state are well placed and formatted. They look very natural.
- The map / bubble chart / xy plot is a clever piece of work and explains where people are heading or coming from.
- Interesting addition of Wikipedia links for state names, so that we can learn more by clicking.
What can be improved:
- Could have added a title on the top
- An outline map instead of geo-political map would have made the bubble + XY plot pop out more.
Techniques used:
Migration Dashboard by Roger Haragushiku

- A simple data table along with bubble chart depicting migration data.
- Ability to select a state and year for analysis
What can be improved:
- The map depicts data in the data table. Could have removed one and used the space for something else.
- Could have added a title and quick summary on top.
Techniques used:
Migration Dashboard by S Ramesh

- Interesting report. Start with a help screen and can speak the numbers upon selecting a state.
- A map where you can select a state for further analysis.
What can be improved:
- The map with radio buttons feels somewhat busy. Could have used a simpler outline map with clickable text-boxes for smooth layout.
- The charts which show details are on other sheets. The contest rules specify creating one chart or dashboard on a single page.
- Although built-in help is nice, there is no way to see it again. A help button would have been useful.
Techniques used:
Migration Dashboard by Shailesh Patwardhan

- A crisp, simple and number-only dashboard
- Tests a few hypotheses to explain the migration and explores what may have caused the movement
- Sections on key findings & unexplained are very useful
What can be improved:
- The precision of numbers seems excessive given the nature of them (and margin of error). Could have rounded numbers to nearest %, thousand or million as needed.
- A few charts could have made the insights pop out better.
- Could have added analysis by a selected state. This makes the dashboard personal and interesting.
Techniques used:
Migration Dashboard by Shamik Sharma

- Clear, elegant dashboard with lots of detail, interactivity and analysis
- Ability to analyze by selecting a single state, multiple states and year.
- Additional data on unemployment rate, gross state product (GSP), international migration helps understand the migration trends better.
- Very good colors, alignment, layout and feel.
- Built-in Help sheet to explain the dashboard
What can be improved:
- While the dashboard provides powerful analysis and ability to interact, a little bit of conclusions or summary text could have helped in interpreting it better.
Techniques used:
Migration Dashboard by Somalinga K

- A simple dashboard with ability to explore any given state’s migration trends and understand one state to another flows.
- Colorful and simple.
What can be improved:
- The data-validation in cell I2 was incorrectly setup (corrected it in download file)
- Instead of showing data as-is based on selection, could have added some analysis or exploration on why the migration may have happened.
- Should have used consistent fonts, alignment & colors and prevented errors thru IFERROR()
Techniques used:
Migration Dashboard by Srinivas Chilukuri

- Beautiful colors and layout. Enables quick analysis and exploration.
- Ability to select a state & year for deep-dive analysis
- Additional data median income, temperature & crime-rate helps understand migration better.
- Inflow vs. outflow scatter plot is interesting
What can be improved:
- The Choropleth map on top feels under-utilized. Could have generated map based on selected state instead of all states.
- Alignment is a bit off in few places. Also the charts on right could use grid-lines or repeated axis labels for better readability.
- The file is password protected (VBA code). This is against rules.
Techniques used:
Migration Dashboard by Stacey Baker

- A very insightful & detailed dashboard.
- Ability to explore migration trends based on state, year, various metrics (crime rate, per-capita income, unemployment rate, median home value, median rent, % of unmarried population etc.)
- Ability to compare up to 4 states on various metrics to understand reasons behind migration.
What can be improved:
- The dashboard is too long. Could have reduced the map size and arranged everything on one screen / page.
- Reading the dashboard is tricky due to its length. A help sheet is needed.
Techniques used:
Become Awesome in Excel & VBA – Create dashboards like these…
- Learn how to create interactive dashboards & reports using Excel
- Develop your own macros & VBA code
- 50+ hours of video training
- Learn at your own pace
- Click here to know more
Migration Dashboard by Suriya Banu

- Unique design and interesting choice of colors & layout
- Ability to select a state by clicking on cells with state 2 letter codes.
- The neighbor state statistics is insightful. It shows consistent movement of people with-in neighboring states.
- Interesting facts about the state.
What can be improved:
- The home screen is drab and has no insights. Could have used it for overall summary and quick insights on migration trends.
- The pie charts are a poor way to depict data like this. Should have used column or bar charts.
- Year selection feels tricky. Should have used a more obvious method.
Techniques used:
Migration Dashboard by Thiruselvan

- Very insightful & interesting dashboard
- Good mix of charts, observations, fun facts and analysis.
- Ability to select a state for in-depth analysis.
- Pareto analysis to understand migration of a selected state.
What can be improved:
- The pareto analysis feels forced. It would have been better to test whether a pareto behavior is exhibited by the data before going this route.
- Some place the alignment, font sizes, border thicknesses and colors are a bit off.
- Could have used an Active-X drop down for state selection.
Techniques used:
Migration Dashboard by Trevor Eyre

- Interesting dashboard with ability to compare 2 states for given time period on various parameters
- Simple & elegant design
What can be improved:
- The controls for date range selection feel un-necessary as we have only 3 years of data. The other controls should have been intergraded in to the dashboard to make it compact.
- The charts & analysis leaves one wanting for more.
Techniques used:
Migration Dashboard by Tyler Barr

- A colorful, interesting design with built-in help
- Slicers for selecting state & year
- Ability to zoom the map view is an interesting touch.
What can be improved:
- The map, 50 state table at the bottom & top 5 migration states on top right all depict same data. Could have removed one of them and used the space for other types of analysis.
- Picture links make the “Where are they coming from” section a bit stretched. Could have used textboxes or regular cells.
- Alignment is a bit off in few places.
Techniques used:
Migration Dashboard by Vikram Krishnamurthy

- A detailed dashboard to explore migration from one state to another
- Analysis by yearly trends, average distance from selected state. Also you can explore GDP, personal income and employment for the selected state.
What can be improved:
- Poor choice of charts & colors. The 3d pie charts, in-consistent colors and layout makes it tricky to gain insights from this. Could have used simple bar charts and subtle colors.
- Lots of white space and redundant charts make it hard to understand key points. Should have reduced the charts and made them in to a tight layout.
Techniques used:
Become Awesome in Excel & VBA – Create dashboards like these…
- Learn how to create interactive dashboards & reports using Excel
- Develop your own macros & VBA code
- 50+ hours of video training
- Learn at your own pace
- Click here to know more
Like all? Download one zip file with all dashboards
If you are planning to play with all these dashboards,
download this zip file [50 mb, ZIP file].
Make sure you close all other workbooks before opening these files as many contain VBA code.
How do you like these dashboards?
Quite a few of these dashboards are really impressive. Seeing them is just like watching a magic show or world-class ballet performance. I will share my views & our judges views next week.
Meanwhile, Tell us which entries you liked most? Go ahead and share your views.













41 Responses to “Calculate Elapsed Time in Excel [Quick Tips]”
Hi Chandoo,
To calculate time lapses in excel I usually use the DATEDIF function. Even though is undocumented by MS there is a great explanation of its use in Chip Pearson's site :
http://www.cpearson.com/excel/datedif.aspx
Is pretty easy to use and has great flexibility.
See you and keep Excelling!!!
Another great article, I will be linking to it on my blog.
Oliver:
Yes, I think that DATEDIFF do it better.
Great post! This a fantastic tutorial on calculating elapsed time in Excel that could be helpful even to a novice user. Keep up the useful tips!
Also, the Office community on Facebook could really benefit from you knowledge! Check it out at http://www.facebook.com/office
Cheers,
Andy
MSFT Office Outreach Team
hi, Chandoo !!!
for elapsed time , we can use this unique formula either for hours, minutes or seconds : NOW()-A1)
but using respective special number formats
for hours : [h] ==> 46553
for minutes : [m] ==>2793212
for seconds : [s] ==> 167592763
We can also use mean duration for years (orbital period of the Earth around the Sun : i-e tropical year) which is : 365.25 days
and mean duration for month : 365.25/12 days
be Excelent !!!!
@Oliver... Thanks for the pointer to datediff(). I will update the post with information about this as well.
@Glen... thanks for the linklove 🙂
@Andy... Welcome. Thanks for telling us about the office community on FB.
@Modeste ... that is very cool. I will remember these formatting codes for an upcoming article on number formatting codes 🙂
Great tip Chandoo! I use the formula to calculate years elapsed all the time. It can seriously help save a ton of time with calculations. Also, NETWORKDAYS is one that helps and can seriously impress a boss. Keep up the great work here!
No problem! I will definitely be directing people with tough Excel questions to your blog. Keep up the great posts!
Andy
MSFT Office Outreach Team
Hi,
always great posts and a good way to start my day
but regarding the elapsed time calculations: have you never noticed that there is a result difference between using =TODAY()-A1 and using =NETWORKDAYS(A1,TODAY())?
try it for A1= a Monday such as 21sep09 and "today" is e.g. a Thursday; you get 3 or 4 respectively as a result, depending on the formula used; this is because formula =networkdays() always includes both the startdate and the end date and not only the time between these 2.
This is easily corrected/compensated bij always adding a -1 to the =networkdays() formula because the majority of us will count startday as day 0 and then the result will be consistent across the different formulas.
However, you then get into trouble if you calculate the networkdays for a date further in the past and where either the start or end date falls in a weekend.
just thought to point this out as to me these formula's are not interchangeable just like that!
have a great day!
Paul
=DATEDIF([DOJ],TODAY(),"Y") & " Y, " & DATEDIF([DOJ],TODAY(),"YM") & " M, " & DATEDIF([DOJ],TODAY(),"MD") & " D"
This will fix your 30 Days problem
I calculated the time diff between two date+ times by subtracting 2 cells & custom formatted it to "d hh:mm" format.
E.g.
Cell A1 04-Jan-12 6:00 PM
Cell A2 05-Jan-12 4:45 PM
Cell A3 0 22:45 (formula: =A1-A2)
Wat shud i do 2 not display the "zero" values i.e. no. of days in this case is zero hence the cell shud display " 22: 45" and not "0: 22: 45".
@Amol
Try the Custom Format code:
[
<1] hh:mm ; [>=1] d “d” hh:mmHi Chandoo,
If possible to compute the interval of time and date in one column.
In column C I would like to compute the total days and hours . What formula ? Please help
Example.
Column A Column B
2/13/12 3:30 AM 2/14/12 12:00 AM
In referenc to Elapsed time in months
To calculate the elapsed time in months, we can use the formula =(NOW()-A1)/30. This returns the value in 30 day months.
I use to apply formula =ROUND((TODAY()-A1)/30,0). Today, I faced a peculiar situation, A1 has date 01-Mar-2009, and today being 01-Mar-2012, it should be 36 months, but it is showing 37 months!!
Any suggestions to avoid such errors?
Regards,
Prasad DN
All I want to do is add up a series of times and receive a reply that gives me a total. What I used to do was subtrace the end time from the start time and format the result as [hh]:mm but this doesn't seem to work anymore. How has Bill Gates confounded me?
@Pete
I use Excel 2010 and it still works
The times must be entered as times in the format hh:mm:ss or hh:mm without seconds
Adding up times is as simple as =Sum(Range) or =Sum(A2:A10)
then using a Custom Number format as you have mentioned [h]:mm
If this isn't working, 2 ideas
1. Check your times are times and not text
2. Can you share your data or file with us?
My hospital tracks times from patient arrival to various procedures or treatments. When those times cross over midnight, the regular formulas (2nd time minus first time) don’t work because the result is negative and Excel (2007) won’t show a negative number in time format.
I couldn’t find a solution here (chandoo.org) but found one elsewhere that worked and it’s very simple. I would like to share it.
Assuming 1st time in A1 (column for patient arrival time) (11:00 PM), and 2nd time in B1 (column for x-ray given) (12:30 AM)). Should be 1:30 elapsed time.
=B1-A1+(B1<A1) [This comparison is the key to the solution.]
=12:30 AM – 11:00 PM + (12:30 AM < 11:00 PM)
=0.0208 – 0.9583 + (True)
=-0.9375 + (1) [This is the key! If it is false, Excel adds 0. If it’s true, Excel adds 1 and that is what corrects the negative number. Now Excel can interpret the number as a time.]
=0.0625
Converted to hh:mm = 1:30
I wrapped this formula inside an IFERROR one to alert my data entry person if she messed up and applied it to lots of different columns and it has worked wonderfully. No more complaints from the data entry person who just plugs in times from medical charts.
Very interesting solution. Thank you so much for sharing it with all of us.
HI,
I am working on a Xl application..
I want to capture time between two clicks.
Ex, in my application during run somewhere I press OK button and then I click Cancel.. I want to measure time between these two clicks... Is it possible??
Pls help on this...
@shashidhar
The answer is Yes
You will have to add an appropriate VBA event to start and stop a timer.
There are techniques which can time to the millisecond so maybe look those up on the net
WOW!!!!!! I truly love your excel time format program! WHOOOO! I am very interested in how the time formats "update" (manually on a physical keyboard) that "updates" the time into its respective decimal time formats, such as:
YYYY.yyyy, HH.hhh, etc...
How do those formulas or equations work if not in Excel mode? Example: TI calculators, Word, or any other computer language programming? Just wanted to see how it works. E-mail me at Ultra64848689Ti@gmail.com.
Thanks again for an EXCELLENT Excel program into decimal time formats!
Here's an idea: how about creating an APP for iOS and Android? Just wanted to point that out. =-D
Regarding the elapsed time in months:
I made this function to determine the time elapsed since a date using the number of days in each respective month. It's a simple subtraction and I think it works very well:((Year Today-Year A1)*12++(Month Today - Month A1)+(Day Today/Days in Month Today)-Days A1/Days in month A1)
Here's the function:
=((YEAR(TODAY())-YEAR(A1))*12)+(MONTH(TODAY())-MONTH(A1))+(DAY(TODAY())/DAY(DATE(YEAR(TODAY()),MONTH(TODAY())+1,0))-DAY(A1)/DAY(DATE(YEAR(A1),MONTH(A1)+1,0)))
Have a Merry Christmas everyone!!
I need the ability to calculate how much progress we have made between two dates and I want to represent that as a percentage.
I am thinking this would be a combination of today, networkdays & dividing the days elapsed vs the total days. Then it should be as easy as formatting my cell. Any help would be greatly appreciated.
@Christian
Your correct
dates are just numbers and so you can use simple math to derive the percentage
=(Date Now-Start Date)/(End date-Start date)
that will give you a number between 0 and 1
which you can format as a %'age
is there a way out to calculate the productivity for an employee
The day start is at 08:00 and day end is 20:00
The start date / time is recorded and end date / time is recorded
I want to calculate the timelapse taking into consideration the day begin and dayend time.
If the work begins and ends the same day, a simple formula b1-a1 would compute the productivity.
But if the process remains incomplete and is carried over to the next day, then timelines to be computed accordingly
to clarify,
if start time of an activity is 03/15/2015 18:00 hrs and end time is 03/16/2015 11:00 hrs, then the resultant formula should be 5 hrs (ie 18:00 to 20:00 hrs on day1 + 08:00 to 11:00 hrs on day2) ie 2+3
please guide.
Venkatesh, try (b1-a1)-0.5
This will subtract the fixed amount of time between shifts, 12 hours. If the time between shifts varies, then you could reference other cells that contain the variables.
Please help. when I use the networking days formula I get a date (2-may-00) I want actual number of days. I managing projects and I need to know how many days have passed since we received a project to the current date. Please help Thanks
@Aria: Just format the cell as general or number. that will fix the problem.
You rock! I looked at 17 other sites and they all did not work. Yours did. Thanks!
Hi folks ...
calculating age in years , months and days
=text(now()-a1,"yy")&" y " &text(now()-a1,"mm")-1 &" m "&text(now()-a1,"dd") & " d"
Hi, the Elapsed time in days [ =TODAY()-A1 ] works great however, if I do not have a date in A1, it shows 42157. Anyway to get it to display 0 or a Null value?
@Dan
=If(A1="",0,TODAY()-A1)
I get #NAME? and the formula does not work.
Hi Chandoo,
This might be a challenge - I am looking to calculate elapsed time between two columns
Start date Complete date
9/9/2015 7:21 10/2/2015 11:01
I need to take into account the following:
1) The employee works 7:00-3:15 pm each day
2) Std Work hours are 7hrs 45 min each day
3) Need to take into account all holidays in between start and end date
4) Work week is Mon through Friday.
Can you help?
Thanks!
Hi, i have a certain name (wilium) in column A and against this name i have 2 option, 1 Done and 2 Inprogress. i want that i count done again wilium and count inprogress against wilium separately. which formula will work for it??
Hi, i have a certain name (wilium) in column A and against this name i have 2 option, 1 Done and 2 Inprogress in column C. i want that i count done again wilium and count inprogress against wilium separately. which formula will work for it??
Year, month, day results for DoB.
The formulas I have found on the net and the datedif function do not work. This is what I came up with using a Microsoft support paper dated April 1997 with some modifications:
IF(OR(A2>$A$1,ISBLANK(A2)),"",IF(YEAR($A$1)=YEAR(A2),0,IF(MONTH($A$1)>=MONTH(A2),YEAR($A$1)-YEAR(A2),YEAR($A$1)-YEAR(A2)-1))&" years "&MONTH($A$1)-MONTH(A2)+IF(AND(MONTH($A$1)<=MONTH(A2),DAY($A$1)<DAY(A2)),11,IF(AND(MONTH($A$1)=DAY(A2)),12,IF(AND(MONTH($A$1)>MONTH(A2),DAY($A$1)=DAY(A2),ABS(DAY($A$1)-DAY(A2)),DAY(EOMONTH(A2,0))-DAY(A2)+DAY($A$1))&" days")
Check it out...
Hi, Augustin
what about :
calculating age in years , months and days
=YEAR(NOW()-DoB)-1900 & " y " & MONTH(NOW()-DoB)-1 & " m " & DAY(NOW()-DoB) & " d"
Hi Chandoo,
I am looking for help with the elapse time formula. I have a recruitment tracking sheet where we track the number of days the positions are opened, and when they are finally closed.
The opened positions will have a running turnaround time (TAT) formula and I am using this formula:
=NETWORKDAYS (start_date, TODAY (), Holidays2018)
Now, without disrupting the running TAT formula, how do I then get the TAT to stop when we have a final end date? All the information below is row:
- start_date --> Cell A
- TODAY () --> cell B
- end_date --> Cell C
Hope you are able to help. Thanks!
Interesting question. Try this:
Thank you for this helpful article. I was trying for days now to figure it out. Now the only issue I have is that if I do not have a value inputed for =TODAY()-[@[Date Precured]] Date Precured then it shows 44055. How can I get it to leave it blank if there is no data? Thanks again!!!