Creating a utilization report - Formula needed

Greetings, I'm looking to create a "weekly report" of machine usage.

each machine has its own row, followed by its current hours. the hours are fed in automatically through API feed & overwrite daily. (if the machine reports hours in the date will update automatically also)

I think to create a basic utilization I need to reference a date range to pull the data into a column that represents a previous day. (such as "if Date -1 =Current hours"), followed by a string of 6 additional columns to "store" a weeks worth of data, then from there I can create a basic =sum formula to get my weekly utilization.

Any thoughts on what type of formula to grab the current hours for today-1, today-2, today-3, etc...

note* this is machine operation time (such as a operator using a machine 8 hours a day) but the number is always different - can be zero all the way to 24 hour operation per day

sample chart below for reference


thank you!

Sample 1.png


Answers

  • Genevieve P.
    Genevieve P. Employee Admin

    Hi@MichaelB

    The way I would do this is to use theWEEKNUMBER Function. Try adding a helper column with aColumn Formulaof:

    = WEEKNUMBER([日期时间报道]@row)

    Then once each row has a Week Number associated, the easiest thing to do would be to use a Report to Group by Week Number and then use the Summarize function to SUM the Current Hours. See:Redesigned Reports with Grouping and Summary Functions

    Let me know if this would work for you!

    Cheers,

    Genevieve

  • Thank you for the idea! I have not used that function before & it seems to work great.

    that would solve a portion of it but my main issue would revolve around counting each row items individual hours for the week (then later I can sum it for the whole fleet)

    Example: Each machine runs Daily & counts its total hours up. (like the odometer on a car - but in hours)

    Machine A runs a 8 hour shift every day but none on the weekend.

    April 3 Sun: 1048 hours

    April 4 Mon: 1056 hours

    April 5 Tue: 1064 hours

    April 6 Wed: 1072hors

    April 7 Thu: 1080 hours

    April 8 Fri 1088 hours

    April 9 Sat: 1088hours

    April 10 Sun: 1088 hours


    I need to capture how many hours were ran by Machine for the week. (Machine A ran 40 hours over the week) so my "total" would be 40, not the 1088 reading.

    unsure how to take a automatically overwriting cell (Hours & Date) and "store" the results (such as its cell history) for the past 7 days. i'm going to test out dumping all new values on a separate sheet & doing a index match / count if combination to reference it. that may get me a (count if under 7 days old) feature - but I'll need to constantly dump out old data to stay within sheet limits.

  • Genevieve P.
    Genevieve P. Employee Admin

    Hi@MichaelB

    If your data is coming in cumulatively, I would suggest setting up a formula that simply subtracts one Sunday value from another, so you can see 40 instead of 1088.

    In your Second sheet, you could drag fill down a whole Date column to create a column of all Sunday dates. Then yes, you could use an INDEX(MATCH to bring in the matching Hour value based on the Sunday date listed, and the 7 days before the Sunday date listed.

    First you can find the match for the Sunday Date in the cell to the left:

    =INDEX({Hours Column}, MATCH([Sunday Date]@row, {Date Column}, 0))

    Then subtract the value from 7 days before this date:

    - INDEX({Hours Column}, MATCH([Sunday Date]@row - 7, {Date Column}, 0))

    For a full formula:

    =INDEX({Hours Column}, MATCH([Sunday Date]@row, {Date Column}, 0)) - INDEX({Hours Column}, MATCH([Sunday Date]@row - 7, {Date Column}, 0))


    Let me know if this works for you!

    Cheers,

    Genevieve

Help Article Resources

@bea.sun<\/a> <\/p>

No worries!<\/p>

Happy to help!<\/p>

Try something like this.<\/p>

=COUNTIF([Office Engagement]@row, CONTAINS(\"Calls\", @cell))<\/p>

Did that work?<\/p>

Remember! <\/strong>Did my post(s) help or answer your question or solve your problem? Please support the Community by <\/em>marking it Insightful\/Vote Up\/Awesome or\/and as the accepted answer<\/em><\/strong>. It will make it easier for others to find a solution or help to answer!<\/em><\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question","log":{"dateUpdated":"2022-09-26 17:18:54","updateUser":{"userID":150538,"name":"Preston P.","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Preston%20P.","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/avatarstock\/nWVKDFTEFOKBN.png","dateLastActive":"2022-09-26T21:00:55+00:00","banned":0,"punished":0,"private":false,"label":"Employee Admin"}}},"bookmarked":false,"unread":false,"category":{"categoryID":322,"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[{"tagID":254,"urlcode":"Formulas","name":"Formulas"}]},{"discussionID":95905,"type":"question","name":"Vlookup from Created Date column","excerpt":"Hello, I'm having trouble when I use vlookup from a column typed as \"created date\", every time a date is created after 6pm, my vlookup returns the following day, as shown in the screenshoot. Is there a way to fix this?","categoryID":322,"dateInserted":"2022-09-26T15:29:00+00:00","dateUpdated":"2022-09-26T17:18:25+00:00","dateLastComment":"2022-09-26T17:55:23+00:00","insertUserID":152832,"insertUser":{"userID":152832,"name":"Clayton Ferreira","url":"https:\/\/community.smartsheet.com\/profile\/Clayton%20Ferreira","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!7dsvu45DVHs!mTMo3r-xMIs!vfSAAaE11Wq","dateLastActive":"2022-09-26T17:48:56+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":150538,"lastUserID":116407,"lastUser":{"userID":116407,"name":"Darren Mullen","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Darren%20Mullen","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/9WIC1TB7AJQT\/nP1GU5H4ITA1P.png","dateLastActive":"2022-09-26T21:01:55+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":3,"countViews":28,"score":null,"hot":3328422863,"url":"https:\/\/community.smartsheet.com\/discussion\/95905\/vlookup-from-created-date-column","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/95905\/vlookup-from-created-date-column","format":"Rich","lastPost":{"discussionID":95905,"commentID":344799,"name":"Re: Vlookup from Created Date column","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/344799#Comment_344799","dateInserted":"2022-09-26T17:55:23+00:00","insertUserID":116407,"insertUser":{"userID":116407,"name":"Darren Mullen","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Darren%20Mullen","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/9WIC1TB7AJQT\/nP1GU5H4ITA1P.png","dateLastActive":"2022-09-26T21:01:55+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2022-09-26T17:48:54+00:00","dateAnswered":"2022-09-26T16:06:28+00:00","acceptedAnswers":[{"commentID":344768,"body":"

@Clayton Ferreira<\/a> Smartsheet stores the Created date in UTC, even though it appears as your local time in the sheet. You can created a new column to ensure you are calculating on your local time. See my video here on how to do this:<\/p>

\n \n https:\/\/youtu.be\/S-GsCr9wA5g\n <\/a>\n<\/div>


<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question","log":{"dateUpdated":"2022-09-26 17:48:54","updateUser":{"userID":152832,"name":"Clayton Ferreira","url":"https:\/\/community.smartsheet.com\/profile\/Clayton%20Ferreira","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!7dsvu45DVHs!mTMo3r-xMIs!vfSAAaE11Wq","dateLastActive":"2022-09-26T17:48:56+00:00","banned":0,"punished":0,"private":false,"label":"✭"}}},"bookmarked":false,"unread":false,"category":{"categoryID":322,"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[]},{"discussionID":95883,"type":"question","name":"IF formula for between dates","excerpt":"I have dates in one column of a SmartSheet. I need a formula that tells me if the date is less than today and less than 10\/25\/22, return \"Yes\", if not than \"No\" Essentially I need the formula to return yes or no if the date is in the past and if the data is coming up within the next two weeks. Can someone please help with…","categoryID":322,"dateInserted":"2022-09-26T00:09:14+00:00","dateUpdated":null,"dateLastComment":"2022-09-26T13:37:34+00:00","insertUserID":151626,"insertUser":{"userID":151626,"name":"ss1992","url":"https:\/\/community.smartsheet.com\/profile\/ss1992","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2022-09-26T15:17:12+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":45516,"lastUser":{"userID":45516,"name":"Paul Newcome","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Paul%20Newcome","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/082\/nQPUTVFKKWDJ2.jpg","dateLastActive":"2022-09-26T14:54:36+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":1,"countViews":31,"score":null,"hot":3328351008,"url":"https:\/\/community.smartsheet.com\/discussion\/95883\/if-formula-for-between-dates","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/95883\/if-formula-for-between-dates","format":"Rich","lastPost":{"discussionID":95883,"commentID":344746,"name":"Re: IF formula for between dates","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/344746#Comment_344746","dateInserted":"2022-09-26T13:37:34+00:00","insertUserID":45516,"insertUser":{"userID":45516,"name":"Paul Newcome","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Paul%20Newcome","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/082\/nQPUTVFKKWDJ2.jpg","dateLastActive":"2022-09-26T14:54:36+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2022-09-26T15:17:08+00:00","dateAnswered":"2022-09-26T13:37:34+00:00","acceptedAnswers":[{"commentID":344746,"body":"

This would output \"Yes\" for dates that are in the past or in the upcoming two weeks...<\/p>


<\/p>

=IF([Date Column Name]@row<= TODAY(14), \"Yes\", \"No\")<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question","log":{"dateUpdated":"2022-09-26 15:17:03","updateUser":{"userID":151626,"name":"ss1992","url":"https:\/\/community.smartsheet.com\/profile\/ss1992","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2022-09-26T15:17:12+00:00","banned":0,"punished":0,"private":false,"label":"✭"}}},"bookmarked":false,"unread":false,"category":{"categoryID":322,"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[]}],"title":"Trending in Formulas and Functions ","subtitle":null,"description":null,"noCheckboxes":true,"containerOptions":[],"discussionOptions":[]}">