Is it possible to count the number of entries in a column for the current work week, and quarter?
Is it possible to count the number of badge IDs in a column for the current work week, and a quarter? I need to track the progress of a weekly target that resets every Friday.
Currently, I can not get the CWs (blue) to align this is my starting point for all of our contract workers.
Here is one of my sheets created that we use for the dashboard (above picture)
Test Dashboard Data - Trending screenshot
Formula used in the above sheet Test Dashboard Data - Trending
Then we have a quarterly which I have created three columns and all three columns do not have the correct count.
CWs Formula
All CWs Formula
Tried pulling a link in from my Test Dashboard Data - Trending
Adriane
Best Answers
-
Jeff Reisman ✭✭✭✭✭✭
I don't understand why you think this is the wrong result. You're taking your same formula that resulted in 2946, and telling it to add the value in Onboarded@row, which is 5.
2946 + 5 =2951
Or put another way: 2946 - 0 + 5 = 2951
You do need to add at least a parentheses to the end. I drew in a comma, a space, two quotes, and an end parentheses.
Unless you're trying to get it to add the number of offboarded to the number of onboarded and subtract that from 2946, to give you 2946 - (0 + 5) = 2941 ??? That wouldn't make logical sense though for what you've stated you're trying to achieve.
Regards,
Jeff Reisman,IT Business Analyst & Project Coordinator,Mitsubishi Electric Trane US
链接:Smartsheet Functions Help Pages链接:Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
Jeff Reisman ✭✭✭✭✭✭
@Adriane PriceOK follow along with me. Let's call this Formula A:
This formula has given me the correct count of 2,946 contracted workers for the workweek (WW) 17.
=IF(TODAY() - [Week Start Date]@row > 0, COUNT({HR Line Manager Tracker - CW Dell Id}) - Offboarded@row, " ")
You say the formula above has given you the correct worker count for week 17, yes? And that number is 2946, correct?
Then you say that you changed it to Formula B:
=IF(TODAY() - [Week Start Date]@row > 0, COUNT({HR Line Manager Tracker - CW Dell Id}) - Offboarded@row+ Onboarded@row
and it gave you 2951. If Formula A included the number of onboarded already,then all you did was change the formula to ADD the Onboarded value to your total AGAIN.Notice that theitalicizedportions of the two formula above are identical.
So, if COUNT({HR Line Manager Tracker - CW Dell Id}) includes the number of Onboarded workers and equals 2946, then Formula A should be:
=IF(TODAY() - [Week Start Date]@row > 0, COUNT({HR Line Manager Tracker - CW Dell Id}), "")
which would equal 2946. To subtract the number of Offboarded workers, Formula B should be:
=IF(TODAY() - [Week Start Date]@row > 0, (COUNT({HR Line Manager Tracker - CW Dell Id}) - Offboarded@row), "")
which would also equal 2946, because the number of Offboarded@row (in your screenshot) is 0.
Regards,
Jeff Reisman,IT Business Analyst & Project Coordinator,Mitsubishi Electric Trane US
链接:Smartsheet Functions Help Pages链接:Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Answers
-
Jeff Reisman ✭✭✭✭✭✭
首先,你能定义你正在使用的范围?{HR Line Manager CW Tracker Range 6} and {Test Dashboard Data - Trending Range 15} don't mean much to someone trying to troubleshoot. Maybe give us your formulas with the values you're expecting vs what you're getting? (As a best practice, I try to replace "Range #" with the column name or an abbreviation of the column name. It makes troubleshooting easier, especially months or years later when trying to figure out how you made something work!)
Based on what you have above, shouldn't this formula end with+[Total Onboarded]@row instead of minus? That could be throwing all your numbers off.
Regards,
Jeff Reisman,IT Business Analyst & Project Coordinator,Mitsubishi Electric Trane US
链接:Smartsheet Functions Help Pages链接:Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
Adriane Price ✭✭✭✭✭
@Jeff Reisman——谢谢你,对不起我花了这么长时间to reply. My end goal is to get this equation: [Head Count of the prior week] - [offboarded this week] + [onboarded this week] = [Head Count of this week]
Since I did not originally create these sheets I needed to go back in and rename a lot of them to make heads or tails of what belonged to what. Plus I have found that my fiscal workweeks are not accurate.
This formula has given me the correct count of 2,946 contracted workers for the workweek (WW) 17.
=IF(TODAY() - [Week Start Date]@row > 0, COUNT({HR Line Manager Tracker - CW Dell Id}) - Offboarded@row, " ")
Sheet created to calculate per week global count.
The data source sheet.
When I change it to
=IF(TODAY() - [Week Start Date]@row > 0, COUNT({HR Line Manager Tracker - CW Dell Id}) - Offboarded@row + Onboarded@row
This formula has given me an incorrect count of 2,951 contracted workers for the workweek (WW) 17.
Even though the first count is correct, the formula that I created does not provide the weekly total count as the executives are expecting. They are looking at a net count per end of the week and per end of the quarter. Yet it is supposed to all match up to the 2,946 that is currently showing as of today 5/25 or depending on the next upload of the new contracted worker count.
The below example is what the executives are thinking with fictitious numbers inserted to show an example. I am pretty sure I have overthought this entire thing by now. In the beginning, we did not have any dates or numbers to establish a true base count.
The executives are looking for a trending and yet want counts to be a part of some of this dashboard that I create from these sheets.
Adriane
-
Jeff Reisman ✭✭✭✭✭✭
I don't understand why you think this is the wrong result. You're taking your same formula that resulted in 2946, and telling it to add the value in Onboarded@row, which is 5.
2946 + 5 =2951
Or put another way: 2946 - 0 + 5 = 2951
You do need to add at least a parentheses to the end. I drew in a comma, a space, two quotes, and an end parentheses.
Unless you're trying to get it to add the number of offboarded to the number of onboarded and subtract that from 2946, to give you 2946 - (0 + 5) = 2941 ??? That wouldn't make logical sense though for what you've stated you're trying to achieve.
Regards,
Jeff Reisman,IT Business Analyst & Project Coordinator,Mitsubishi Electric Trane US
链接:Smartsheet Functions Help Pages链接:Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
Adriane Price ✭✭✭✭✭
@Jeff Reisman- It is incorrect because there are a total of 2,946 contracted workers and that number already included the onboarded contracted workers.
Adriane
-
Jeff Reisman ✭✭✭✭✭✭
@Adriane PriceOK follow along with me. Let's call this Formula A:
This formula has given me the correct count of 2,946 contracted workers for the workweek (WW) 17.
=IF(TODAY() - [Week Start Date]@row > 0, COUNT({HR Line Manager Tracker - CW Dell Id}) - Offboarded@row, " ")
You say the formula above has given you the correct worker count for week 17, yes? And that number is 2946, correct?
Then you say that you changed it to Formula B:
=IF(TODAY() - [Week Start Date]@row > 0, COUNT({HR Line Manager Tracker - CW Dell Id}) - Offboarded@row+ Onboarded@row
and it gave you 2951. If Formula A included the number of onboarded already,then all you did was change the formula to ADD the Onboarded value to your total AGAIN.Notice that theitalicizedportions of the two formula above are identical.
So, if COUNT({HR Line Manager Tracker - CW Dell Id}) includes the number of Onboarded workers and equals 2946, then Formula A should be:
=IF(TODAY() - [Week Start Date]@row > 0, COUNT({HR Line Manager Tracker - CW Dell Id}), "")
which would equal 2946. To subtract the number of Offboarded workers, Formula B should be:
=IF(TODAY() - [Week Start Date]@row > 0, (COUNT({HR Line Manager Tracker - CW Dell Id}) - Offboarded@row), "")
which would also equal 2946, because the number of Offboarded@row (in your screenshot) is 0.
Regards,
Jeff Reisman,IT Business Analyst & Project Coordinator,Mitsubishi Electric Trane US
链接:Smartsheet Functions Help Pages链接:Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
Adriane Price ✭✭✭✭✭
@Jeff Reisman- oh my I definitely have been looking at this one too long. Got it, thank you for pointing that out.
Adriane
Help Article Resources
Categories
Check out theFormula Handbook template!
Instead of applying the formula to \"Multiselect Text String\" row, did you tried with \"Multiselect Values\" row?<\/p>
=IF(HAS([Multiselect Values]@row, [Component ID]@row), \"MATCH\", \"NO MATCH\")<\/p>
Thank you,<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"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":109493,"type":"question","name":"I am having trouble using \"And\", \"OR\" & \"Countif(s)\" to build a formula.","excerpt":"Hello, I am attempting to come up with a sheet summary formula that counts cells if they meet at least one of 3 different statuses in the same column, AND also meet one of 5 different statuses in a separate column. So using the screenshot I've provided as an example (although it doesn't have 5 different statuses in the…","snippet":"Hello, I am attempting to come up with a sheet summary formula that counts cells if they meet at least one of 3 different statuses in the same column, AND also meet one of 5…","categoryID":322,"dateInserted":"2023-08-25T20:03:21+00:00","dateUpdated":null,"dateLastComment":"2023-08-26T00:34:49+00:00","insertUserID":165710,"insertUser":{"userID":165710,"name":"SmarsheetNewb","url":"https:\/\/community.smartsheet.com\/profile\/SmarsheetNewb","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-08-26T00:33:27+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":161714,"lastUser":{"userID":161714,"name":"Carson Penticuff","url":"https:\/\/community.smartsheet.com\/profile\/Carson%20Penticuff","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/B0Q390EZX8XK\/nBGT0U1689CN6.jpg","dateLastActive":"2023-08-26T01:04:51+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":3,"countViews":23,"score":null,"hot":3386005690,"url":"https:\/\/community.smartsheet.com\/discussion\/109493\/i-am-having-trouble-using-and-or-countif-s-to-build-a-formula","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/109493\/i-am-having-trouble-using-and-or-countif-s-to-build-a-formula","format":"Rich","tagIDs":[254],"lastPost":{"discussionID":109493,"commentID":392692,"name":"Re: I am having trouble using \"And\", \"OR\" & \"Countif(s)\" to build a formula.","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/392692#Comment_392692","dateInserted":"2023-08-26T00:34:49+00:00","insertUserID":161714,"insertUser":{"userID":161714,"name":"Carson Penticuff","url":"https:\/\/community.smartsheet.com\/profile\/Carson%20Penticuff","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/B0Q390EZX8XK\/nBGT0U1689CN6.jpg","dateLastActive":"2023-08-26T01:04:51+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Get Help","url":"https:\/\/community.smartsheet.com\/categories\/get-help"},{"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-08-26T00:33:25+00:00","dateAnswered":"2023-08-25T20:44:12+00:00","acceptedAnswers":[{"commentID":392662,"body":"
Try this:<\/p>
=COUNTIFS([Item Number]:[Item Number], OR(@cell = \"C001\", @cell = \"COO2\", @cell = \"COO3\", @cell = \"COO4\"), [Status]:[Status], OR(@cell = \"Green\", @cell = \"Yellow\", @cell = \"Red\"))<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"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":109474,"type":"question","name":"Help with date calculation formula","excerpt":"Hello, I'm trying to find a formula that will help me calculate how long an intake took to resolve. The rows I need to be calculated are Date Reported & Resolution Date. If the resolution date is blank I want it to use the current date in the calculation to see how long this issue has gone unresolved. Any help is much…","snippet":"Hello, I'm trying to find a formula that will help me calculate how long an intake took to resolve. The rows I need to be calculated are Date Reported & Resolution Date. If the…","categoryID":322,"dateInserted":"2023-08-25T16:29:39+00:00","dateUpdated":"2023-08-25T16:29:59+00:00","dateLastComment":"2023-08-25T23:01:30+00:00","insertUserID":165688,"insertUser":{"userID":165688,"name":"Nwest","title":"Systems Analyst","url":"https:\/\/community.smartsheet.com\/profile\/Nwest","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!ukHVZ18ImX4!BcjWAe8S9SY!l7iQo_PZHOx","dateLastActive":"2023-08-25T17:22:30+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":165688,"lastUserID":8888,"lastUser":{"userID":8888,"name":"Andrée Starå","title":"Smartsheet Expert Consultant & Partner | Workflow Consultant \/ CEO @ WORK BOLD","url":"https:\/\/community.smartsheet.com\/profile\/Andr%C3%A9e%20Star%C3%A5","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/0PAU3GBYQLBT\/nXWM7QXGD6464.jpg","dateLastActive":"2023-08-26T17:06:33+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":3,"countViews":23,"score":null,"hot":3385987269,"url":"https:\/\/community.smartsheet.com\/discussion\/109474\/help-with-date-calculation-formula","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/109474\/help-with-date-calculation-formula","format":"Rich","tagIDs":[254],"lastPost":{"discussionID":109474,"commentID":392687,"name":"Re: Help with date calculation formula","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/392687#Comment_392687","dateInserted":"2023-08-25T23:01:30+00:00","insertUserID":8888,"insertUser":{"userID":8888,"name":"Andrée Starå","title":"Smartsheet Expert Consultant & Partner | Workflow Consultant \/ CEO @ WORK BOLD","url":"https:\/\/community.smartsheet.com\/profile\/Andr%C3%A9e%20Star%C3%A5","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/0PAU3GBYQLBT\/nXWM7QXGD6464.jpg","dateLastActive":"2023-08-26T17:06:33+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Get Help","url":"https:\/\/community.smartsheet.com\/categories\/get-help"},{"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-08-25T17:04:22+00:00","dateAnswered":"2023-08-25T16:36:59+00:00","acceptedAnswers":[{"commentID":392622,"body":"