• 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
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

How to track hours expended vs Available?|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / How to track hours expended vs Available?|General Excel Questions & Answers|Excel Forum|My Online Training Hub

vba course banner

Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
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…How to track hours expended vs Avai…
sp_PrintTopic sp_TopicIcon
How to track hours expended vs Available?
Avatar
Michael Denton
Member
Members
Level 0
Forum Posts: 6
Member Since:
December 5, 2016
sp_UserOfflineSmall Offline
1
September 20, 2020 - 10:24 am
sp_Permalink sp_Print sp_EditHistory

Example.PNGImage Enlarger

Hello all,

Hoping someone can help me with a solution to this problem. Sorry if this gets lengthy, I will do my best to explain.

I have a list of products that are in column A, along with a work order and operation to perform some work on that product in column B. The amount of time allowed for each Work Order & Operation is listed in column C.

Each product can have multiple work orders and multiple operations per work order, but each work order is specific to a product. In other words, the unique identifier would be the work order + the operation.

I am basically pulling a weekly clocking report against a list of products that lists all of the work orders and operations for those products and the time clocked each day against them and pivoting the data out similar to the picture. As time progresses, the data set will grow to include any new time clocked each day going all the way back to the date it was first started. I need help figuring out what formula(s) or other solution will allow me to do the below fairly painlessly each week.

What I want to be able to do is create a line chart that gives me the amount of time loaded that week for a product (The STD) vs the amount of time clocked against it. This will be a cumulative weekly line that sums up all the time available for all work orders and operations for a product vs the cumulative time expended over the same period.

The tricky part is I only want to sum the STD time up to the available limit. (If a work order + operation is allowed 8 hours, but 16 have been clocked against it, only show up to that 8 hours on whatever day(s) it was clocked. If 2 hours were expended each day for 4 days = 8 hour STD show that, but make any time after that show as 0.

Hopefully the picture will do a better job of explaining. The date axis will be in weekly buckets not days, but I thought it was easier for the explanation of what I want to do this way.

For Work Order + Operation 1567789 0010, 8 hours total is available. On 5/5 2 hours is clocked bringing the available down to 6 until the next day it is clocked and so on until all 8 hours have been expended. On 5/8, all 8 hours have been expended over previous days so I would want 0 hours on 5/8 and any future dates even if time was clocked on those days. That weeks line would show 8 hours available against 20 expended.

Appreciate any tips / solutions!

 

 
sp_PlupAttachments Attachments
  • sp_PlupImage Example.PNG (105 KB)
sp_AnswersTopicSeeAnswer See Answer
Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4524
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
September 20, 2020 - 7:30 pm
sp_Permalink sp_Print

Hi Michael,

That's a tricky one because for every product you need 3 sets of data, two of which are plotted in the chart. It would be easy if it wasn't for the requirement to not plot time that exceeds the available limit. This requires a formula based approach, vs doing it all with PivotTables, which would enable you to automate it. 

Perhaps you could use Power Pivot and write a custom DAX measure that calculates the actual hours up to the point where they exceed the available hours.

Mynda

sp_AnswersTopicAnswer
Answers Post
Avatar
Michael Denton
Member
Members
Level 0
Forum Posts: 6
Member Since:
December 5, 2016
sp_UserOfflineSmall Offline
3
September 21, 2020 - 2:28 am
sp_Permalink sp_Print

Thanks for the reply Mynda!

I was wondering if I could pivot it out every week and then basically add a calculation row to the right of the data set for every row. Basically the dates would all be duplicated for each row. I'd use this calculation row for my chart line. 

Possibly use offset or something to calculate the sum of the clocking transactions against the fixed STD and if it was less, give that day whatever was clocked. If more, just give the last date the difference of the sum vs the STD and all future dates 0.

Just wasn't sure how to pull it off because the date range will be growing dynamically. 

Thanks for the ideas. I'll keep trying. 

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4524
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
4
September 21, 2020 - 9:16 am
sp_Permalink sp_Print

You could certainly enter the formulas in columns that are currently empty in anticipation of growth in your data. Have the formula return #N/A if there isn't any data for that month. #N/A doesn't get plotted in a chart, so it will give you the desired result. Just fiddly having to create all those formulas. Not ideal!

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Atos Franzon, Louis Muti
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 873
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 222
Jessica Stewart: 218
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Blair Gallagher
Brandi Taylor
Hafiz Ihsan Qadir
Gontran Bage
adolfo casanova
Annestine Johnpulle
Priscila Campbell
Jeff Mikles
Aaron Butler
Maurice Petterlin
Forum Stats:
Groups: 3
Forums: 24
Topics: 6369
Posts: 27852

 

Member Stats:
Guest Posters: 49
Members: 32359
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.