Creating a flagging process
Hello,
I have created a form to be fed into a mastersheet so that persons should submit twice weekly, 3 days apart. Because many persons will be submitting weekly, I would want the system to flag persons who havent submitted twice for the week. Grateful for any assistance to create such logic.
Answers
-
Assuming you have a column that has some sort of unique id for each person, you would use something like this...
=IF(COUNTIFS([Unique ID]:[Unique ID], @cell = [Unique ID]@row, [Submission Date]:[Submission Date], AND(IFERROR(WEEKNUMBER(@cell), 0) = WEEKNUMBER([Submission Date]@row), IFERROR(YEAR(@cell), 0) = YEAR([Submission Date]@row))) > 1, 1)
-
Hi Paul,
Thanks much. The column would be continuously receiving data from the same set of individuals each week. It will therefore be continuously be populated (twice per wee by each individual). How would we be able to create this unique ID for each person? Also would we be able to display the names of the individuals such that the same name keeps together in the spreadsheet each week, rather than the order in which the forms are sent by individuals?
-
I was trying to create the columns but not quite understanding. See attached and let me know if this is what you are suggesting.
-
Recalling Data from Form Submissions
- Assuming the Original Sheet collects a Name and Date during the form submission
- Create a New Sheet (This will be used to flag)
- Create columns: "Name1", "Date1", and "Date2"
- You will then create references to your Original Sheet in Date1 and Date2 using LARGE and COLLECT
- In Date1 use the formula =LARGE(COLLECT(Reference1, Reference2, Name@row), 1)
- Reference1 is Date:Date of Original Sheet (use the blue Reference Another Sheet that appears when typing followed by clicking on the column header of the Original Sheet)
- Reference2 is Name:Name of Original Sheet (use the blue Reference Another Sheet that appears when typing followed by clicking on the column header of the Original Sheet)
- In Date2 use the formula =LARGE(COLLECT(Reference1, Reference2, Name@row), 2)
- Make sure all Date columns have Column Properties set to Date
From there you should have the two latest dates auto-populated into the New Sheet based on the name in the Name1 column.
Flagging Missing Data
- Add another column to the New Sheet labeled "Flag"
- Use the IF and WEEKNUMBER formula to flag the data
- In Flag use the formula =IF(WEEKNUMBER(Date1@row)+WEEKNUMBER(Date2@row)-WEEKNUMBER(TODAY())-WEEKNUMBER(TODAY())=0,"All Submissions Entered",IF(WEEKNUMBER(Date1@row)+WEEKNUMBER(Date2@row)-WEEKNUMBER(TODAY())-WEEKNUMBER(TODAY())=-1,"One Submission Required",IF(WEEKNUMBER(Date1@row)+WEEKNUMBER(Date2@row)-WEEKNUMBER(TODAY())-WEEKNUMBER(TODAY())<-1,"Two Submissions Required","Error")))
There are many ways to flag the data. This one will display how many submissions they still are required to do. Another option would be to add another row with due dates in Date1 and Date2 and replace TODAY() with references to those cells. I would also recommend using conditional formatting to highlight information when submissions are overdue so it's easier to see.
Good luck!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.6K Get Help
- 403 Global Discussions
- 215 Industry Talk
- 455 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 56 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!