Hi All,
Need your help again, i'm looking for a macro/function to count the number of "numbers listed" in a cell (regardless what is their delimiter: ex: space, comma, semi-colon, ~, -)
Attached is a sample output (manual)
Thanks!
Hi All,
Need your help again, i'm looking for a macro/function to count the number of "numbers listed" in a cell (regardless what is their delimiter: ex: space, comma, semi-colon, ~, -)
Attached is a sample output (manual)
Thanks!
Last edited by aarona; 07-30-2019 at 05:15 AM.
That's not the number of characters - it's the number of words (numbers listed). Is that what you meant?
Try this in B2:
=LEN(A2)-LEN(SUBSTITUTE(A2," ",""))+1
Last edited by AliGW; 07-30-2019 at 05:09 AM.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
Thanks AligW, yes you are correct, however the formula will only work if the delimiter is *space*, looking for a solution that will work whatever delimiter is used. But still thanks, for the suggestion I can still use this.
Well, we can't help unless you tell us what other delimiters you are using. Post more meaningful sample data and you might get a better solution.
Thanks AligW, updated the original post.
UDF
Use in cell like
=CountNumbers(A2)
Please Login or Register to view this content.
Not good enough. We need a COMPLETE list of delimiters used. Don't post-edit your posts, please - it makes the thread hard to follow.
You are welcome and thanks for the rep.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks