Thanks guys!
@jasonb75
1.
Do you just want to identify the delimiter?
My initial goal was to write a LAMBDA that would easily call the nth element of such array. I wrote a LAMBDA based on one of my older threads:
Hello, I'm wondering if it is possible to store more than one number in an array. I'm hoping I can reduce the size of my large score sheets by storing the scores of each student in one cell where for example the first element would be math score, the second physics score, the third chemistry...
www.mrexcel.com
=LAMBDA(element_number,cell_array,delimeter)
The LAMBDA works well, but I wanted to see if I could simplify it by making it automatically find the delimiter, so that the LAMBDA would look like this:
=LAMBDA(element_number,cell_array)
But I realized that, as Peter mentioned too above, it will be really hard to determine what the delimiter would be. So I guess I'm gonna have to leave the "delimiter" parameter in my LAMBDA, unless you guys can come up with any magic solution(s)
.
2.
or do you need to convert it to an actual array?
Actually my next goal was to write another LAMBDA that would break the cell-based array into a spilled array. So since you already have a function, I'm gonna use that and test it, but the syntax is not right and I couldn't fix it (I tried a number of ways).
3.
Do you mind checking the syntax of your formula and let me know the corrected syntax:
=MID(SUBSTITUTE(text,delimiter,REPT(" ",LEN(text))text,FIND(delimiter,text))*SEQUENCE(LEN(text)-LEN(SUBSTITUTE(text,delimiter,"")),,0),LEN(text))
@Peter_SSs
Totally agree with your point. I have been thinking the same. One idea I came up with was to have a function that would use the most reasonable delimiters such as comma and semicolon and give a message if it didn't find them, but it's probably gonna be very complex even for you guys to code that. So it's probably best to leave the delimiter parameter in the LAMBDA, but please let me know if you have any additional thoughts.