Notion Answers

Help between Notion users


Register & Ask

It's free & easy

Get answers

Answers, votes & comments

Vote and select answers

Receive points, vote and give the solution

Question

1vote

How to split by a comma?

Hello,

I want to get the first word from a rollup. So I need a formula that slice the string before the comma. Slice string by symbol "," or something.

Thanks,
Notionasker

0vote

polle commented

Please share an example of what you have and how you want it. To understand what slice means for you in that case with a before and after.

1vote

notionasker commented

1 Answer

2votes

ANerdyNotioneer01s Points1740

You will need to replace everything after the first comma with nothing. :)
slice only allows certain number of characters you specify. By using replaceAll, the number of characters before the first comma doesn't matter.

replaceAll(prop("Details"), ",.*", "")

Hope this helps!

1vote

notionasker commented

Thank you so much. Thas's it. Works fine ! Helps a lot.

Please log in or register to answer this question.

...

Welcome to Notion Answers, where you can ask questions and receive answers from other members of the community.

Please share to grow the Notion Community!

Connect