Sign in to join the conversation:
how can I count specific open ports that are separated by a comma?
Try something like this...
=LEN([Open Ports]@row) - LEN(SUBSTITUTE([Open Ports]@row, ", ", "")) + 1
Basically you are finding the total number of characters (including spaces) and subtracting from it the number of characters once all of the comma/space's are removed. You then add one to account for the final entry, and there you have it.
Hi Paul,
I tried this and the "@row" was giving me an error, once I removed it, then the formulat worked. thanks.
In my case it works, I just need to figure out now when the cell is blank to return a 0 because it is returning a 1.
thanks again for posting this.
Jm
You may have already figured this out.
You can wrap Paul's formula in an if-isblank handler to get the 0. =IF(ISBLANK([OPEN PORTS]@row), 0, LEN([OPEN PORTS]@row) - LEN(SUBSTITUTE([OPEN PORTS]@row, ",", "")) + 1)
@Paul Newcome is the SmartSheet guru!
Tried to use this for names (first and last, first and last) and it's not working. :(
Hello, I am posting this publicly because my support case has been open since March 11, 2026 without resolution. Case: 09052171 My paid Pro account started failing after the March 2026 Smartsheet login/platform changes. I am currently experiencing: Sheets becoming read-only Newly created sheets disappearing or failing to…
Since a few days ago, the smartsheet started working differently. I used to write in a cell with dropdown menu the number "5" for example, and would show me the option "5 - built" straight away as first option. Now if I do the same, the first option that appears is "0.5 - waiting", this is really annoying because after…
Ever since the 5/7 upgrade when I login it doesn't always recognize me. It lets me login, but tells l me I am on trial and doesn't show any of my sheets or workspaces. If I keep logging back in over and over again, sometimes it will all of a sudden recognize me. Then, in the middle of working it just starts spinning, so I…