Best Of
Re: Text to Date Field
Hi @John Stanik
Will your text entry always have the exact same format of mm/dd/yy?
You can use the DATE function to translate numbers into Dates, with the syntax being DATE(YYYY, MM, DD).
In this instance, we'll want to use the VALUE Function around each number set we're grabbing, like so:
DATE(VALUE(20 + YY), VALUE(MM), VALUE(DD))
Then we can use the RIGHT Function, MID Function, and LEFT Function to grab different elements of your text string.
DATE(VALUE(20 + RIGHT(YY)), VALUE(LEFT(MM)), VALUE(MID(DD)))
For the MID portion, we'll need to use a FIND Function to find the starting position (a number) of whatever it is looking for, in this case a "/". The formula uses the number it finds as a starting position in the text string.
Full Formula:
=DATE(VALUE(20 + RIGHT([Text Column]@row, 2)), VALUE(LEFT([Text Column]@row, 2)), VALUE(MID([Text Column]@row, FIND("/", [Text Column]@row) + 1, 2)))
You'll need to enter the formula into a Date Column. Let me know if this works and makes sense!
Cheers,
Genevieve
Genevieve P.
Re: is it possible to create a search form to query existing data in a sheet?
Hey @Steve Cohen
A form cannot do lookups directly, using a form you would need to couple this with a mechanism (a separate sheet, dashboard, update request, report, etc) that could return the information to the user.
My work around used a published sheet that was nothing more than a 'lookup page'. I have fields designated for data entry and the result field (Form Data) immediately returns the desired value. I published the sheet to ensure it was open to anyone in the organization. No data is retained on the lookup sheet - there is no need for the user to save the sheet and if they do, I overwrite their info using Change Cell Value/Clear Cell Value. Because of this, only one row is ever used on the sheet. The sheet always opens exactly as shown below with the yellow row being the input row.
cheers
Kelly Moore
Re: More fun with functions =IF(OR
Hi @Draykov ,
I have added in the OR syntax for "Humanities" as in your example.
=IF(OR([Teaching Discipline]@row = "English", [Teaching Discipline]@row = "Humanities"), "AA", IF([Teaching Discipline]@row = "Art", "BB", IF([Teaching Discipline]@row = "Philosophy", "CC", IF([Teaching Discipline]@row = "Business", "DD", IF([Teaching Discipline]@row = "Accounting", "EE", IF([Teaching Discipline]@row = "Government", "FF", IF([Teaching Discipline]@row = "History", "GG", IF([Teaching Discipline]@row = "Anthropology", "HH", IF([Teaching Discipline]@row = "Mathematics", "II", IF([Teaching Discipline]@row = "Biology", "JJ", IF([Teaching Discipline]@row = "Geology", "KK", IF([Teaching Discipline]@row = "Computer Science", "LL"))))))))))))
If you follow the same structure, you can add to any of the other IF scenarios you need.
Hope this helps,
Dave
Re: Basic copy/paste function
I regularly do all three of those. You may need to reach out to Support to see if there is a bug somewhere.
Paul Newcome
Re: Contact Upload Feature No Longer Working
If Google Sheets isn't an option, opening the .csv in Notepad and saving before importing also works.
Re: A way to place the Row ID (for APIs) into a cell value with formula?
Hi @KGuyer ,
There isn't currently a specific function that returns the rowID. When you have a moment, please let our Product team know about your feedback by filling in this form, here. Thank you!
As @MattW mentions, a possible way to automate this would be to use a third party tool that uses the API to return all rowIDs within a sheet (by making a GET sheet call for example) and then collect the rowIDs and post them back within the sheet as needed. I'd refer to https://smartsheet.redoc.ly/tag/sheets#operation/getSheet from the API documentation if this sounds like a possible solution.
The other way to obtain the rowID would be to manually collect it from the row properties and paste it to the relevant cell but I understand this can be a tedious task in voluminous sheets.
I hope this can be of help.
Cheers!
Julio
Julio S.
Auto Generate Task List based on Criteria
I am wondering if there is a way to trigger a task list to start when criteria is met?
The task list is built and made into a template. I am wanting to trigger the activation or start and rename of this when the contract column in my schedule is changed to NTP. The file name would change to my Job Code which would be @row. Then the task template needs one date based off job start@row to activate all tasks.
Is this a possibility?
Re: Add Months to Date formula?
Slight edit added...
Dealing with months is somewhat tricky.
"How" do you want to add the months? Here are a few examples of ways to deal with months:
With a start date of 01/31/2024 and adding one month... simply incrementing the month will give you 02/31/2024, which is obviously not possible.
The average month length is 30.4375 days (factoring in leap years as well). This can be rounded down to 30 days. A start date of 01/31/2024 and adding 40 months (40 x 30 = 1200) will return 04/15/2027 as a result. Mathematically this makes sense, logically you would expect the result to land in May. I believe Smartsheet essentially does this in the background so it is the easiest to implement.
Going back to our first example (Starting on 01/31/2024 and adding one month), we could approach this a couple of different ways. We can say that any result that lands on an "impossible" day just gets "pulled back" to the last valid day of the month. So 01/31/2024 + 1 month would return 02/29/2024 (leap year).
The other option is to have it roll over to the first day of the following month. 01/31/2024 + 1 month = 03/01/2024.
How you would prefer to handle the result will dictate how to approach this.
Carson Penticuff
Re: Can automation create a new sheet from a template?
You can automate the initiation from the Approval column, however optional items will be skipped and it will only include required items.
Cheers,
Genevieve
Genevieve P.
Re: Column Dividers in a Sheet
Hi @Kendra P,
I use the same thing; formatted columns as dividers. One thing is you have to use a different name for each one.
Sometimes I use a period for my first, and 2 periods for my second.
Sometimes I name the column separators which helps when scrolling through many columns. It's like column group headers, but as columns instead of headers.
I don't believe there's any other option to separate out sections of columns (like in Excel).
Would make for a good Product Idea to submit though!
BRgds,
-Ray
Ray Lindstrom
