SOLVED
Counting items in a cell
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
aurelie_toussaint
5 - Atom
‎10-14-2014
05:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I have imported an excel table into Alteryx for further use in Tableau. I need to count the number of items (delimited by ; ) in a cell. How can I do this?
Thank you!
Solved! Go to Solution.
Labels:
- Labels:
- Expression
- Preparation
2 REPLIES 2
AdamR_AYX
Alteryx Alumni (Retired)
‎10-14-2014
09:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
If you just need a count then I think this formula will give you that
REGEX_CountMatches([Field1], ";") + 1
If you actually wanted to split the items into individual cells then I'd take look at the "Text To Columns" tool in "Split to Rows" mode.
Cheers
Adam
REGEX_CountMatches([Field1], ";") + 1
If you actually wanted to split the items into individual cells then I'd take look at the "Text To Columns" tool in "Split to Rows" mode.
Cheers
Adam
Adam Riley
https://www.linkedin.com/in/adriley/
https://www.linkedin.com/in/adriley/
‎10-14-2014
12:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks!
