Formulas and Functions

Formulas and Functions

Ask for help with your formula and find examples of how others use formulas and functions to solve a similar problem.

Who could use a PARSE function?

So I have been trying to think of how to best word it, and trying to help someone else with a solution led me down the rabbit hole I needed.


How about a PARSE function.

=PARSE(range, selection number, delimiter)


Use case would be plentiful, but a couple of examples would be...

A. You want to search a range for the second choice in a multi-select column. As it stands, you would either need to parse out the data or use a series of MID and FIND functions to search on the CHAR(10) delimiter to pull that selection, or you could hard code that selection which means having to change it up for a number of formulas, or...

You could use the PARSE function and just have something to the effect of...

=COUNTIFS([Other Column]:[Other Column], CONTAINS(PARSE([Multi-Select Column]@row, 2, CHAR(10)), @cell))


B. In order to cut down on cells used on a cross sheet reference, you are using the method of joining the data on the source sheet, pulling it to the target sheet, then using a complex set of formulas to parse the data back out. The JOIN function you used to pull it all together is using a forward slash "/" as a delimiter. When you pull the string to the target sheet, instead of having to set up all of the extra formulas and helper columns and rows, you could use the PARSE statement like this...

=PARSE([String Column]$1, 1, "/")

=PARSE([String Column]$1, 2, "/")

so on and so forth.


I am going to be submitting a product enhancement request for this, but anyone else who thinks it could be useful, feel free to submit one of your own or provide feedback/tweaks/suggestions/etc here.

Comments

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions