• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

DATES AND DASHBOARD|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / DATES AND DASHBOARD|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…DATES AND DASHBOARD
sp_PrintTopic sp_TopicIcon
DATES AND DASHBOARD
Avatar
Amaro Cernadas

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
May 27, 2019
sp_UserOfflineSmall Offline
1
May 27, 2019 - 9:23 pm
sp_Permalink sp_Print

Hi everyone,

I am writing you becouse I need your help. I´m working in my own Dashboard but I have some problems with the dates.

Dashboard is related with accidents in a construction company. In the DATA Worksheet I indicate the name of the worker and his company, and the date and the accident clasiffication, if the worker will lost days [[accident leave date begin, I will know this date, and I will write the date finishing accident leave  (I dont know till that day) but I want to know:

1)how many days lost (automatic form)

2)how many day one worker lost by month if the accident is in february and he recovers in june. (automatic form)

Date accident feb/02/2019 Accident leave date feb/02/19 Accident leave date off  jun/02/2019

Total days 120

By month February 26 March  31  Arpil 30 May 31 June 2

In other way, I write dates by months and year in the right but I think it is not the proper way because if it is a long period of time will be not usefull at all, any suggestion?

With all this information I want to build a Dashboard with slicers, grafics, etc...

Waiting for your help, thank you in advance 

 

Best Regards

Amaro

sp_AnswersTopicSeeAnswer See Answer
Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4448
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
May 28, 2019 - 9:33 pm
sp_Permalink sp_Print sp_EditHistory

Hi Amaro,

Please see attached. Note, Tables cannot have dates as the column labels, so I have inserted a row above the table with a proper date for use in the formulas.

Also, the duration calculation requires a day to be added to the result to calculate the total days off where it includes the last day of accident leave.

I've also added conditional formatting for the red fill.

There is possibly a more elegant formula to calculate this, but it's late here and I'm tired, so my brain is at half capacity 🙂

I hope that helps.

Mynda

sp_AnswersTopicAnswer
Answers Post
Avatar
Amaro Cernadas

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
May 27, 2019
sp_UserOfflineSmall Offline
3
May 29, 2019 - 2:12 am
sp_Permalink sp_Print

Thank you Mynda,

Your answer with your solution is amazing, very helpfull!!

But now your answer create for questions on me:

1)I include all columns for 2019, and I copy all formulas from 2018. The formulas only work between January and May, after that something happen and don´t work. I fight for three hours but .....Frown

2)why in the panel I only can see from column D, and the colums A,B,C and D are hide. I try to show all colums but was imposible..

3)Does any option exist to hide/show the columns by years??

I send you again the document with my changes.

Thank you so much

 

Best regards

Amaro

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4448
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
4
May 29, 2019 - 10:30 am
sp_Permalink sp_Print

Hi Amaro,

The formula uses the TODAY function in the MIN formula to find the earliest day between the end of accident leave, the end of the month the formula is in and today's date.

...MIN([@[ACCIDENT LEAVE OFF]],EOMONTH(K$1,0)+1,TODAY())

 

If the Accident Leave Off date is in the future it will be ignored until you reach or pass this date in real time.

I wrote it like this because you initially said "if the worker will lost days [[accident leave date begin, I will know this date, and I will write the date finishing accident leave (I dont know till that day)". If you don't know when in the future the accident leave will end, then we need to use the TODAY function to calculate the duration.

However, looking at your latest file, you don't have any empty Accident Leave Off dates, so you can just remove the TODAY function from the formula.

Lastly, I froze the panes, which is why you can't scroll to see columns A:D. You can unfreeze them on the view tab of the ribbon.

Mynda

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: RAQUEL ACION, Dana Friedt, Nada Perovic
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
terimeri dooriyan
Jack Aston
AndyC
Denise Lloyd
michael serna
mashal sana
Tiffany Kang
Leah Gillmore
Sopi Yuniarti
LAFONSO HERNANDEZ
Forum Stats:
Groups: 3
Forums: 24
Topics: 6218
Posts: 27266

 

Member Stats:
Guest Posters: 49
Members: 31901
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.