you need to enter this formula as an array formula. On a PC we do this by entering with ctrl+shift+enter, I have no idea how to do same on Mac, though this post says you use CTRL+SHIFT+RETURN
I don’t think so, but looking at what else you’ve had to say (namely the “are you trying to enter a formula error?”) I think /u/excelevator mighe be right with the argument separators you’re using. In short: replace , with;.
i don't know how to check that in a mac. in windows it is in control panel. basically in excel it matters to determine whether arguments in your formulas are to be separated by a comma or a semicolon or something else. try changing the commas in the formula with a semicolon. if it doesn't work, share a file.
i didn't know it was different. if he mentioned his was a mac on the post i wouldn't have attempted this one. the posting guideline on the excel reddit, imho, should make it necessary to mention the os and the version of excel.
Use a small function. Add the following code and use as follows to insert your chosen character at your chosen interval
Function addchars(rng As Range, char As String, interval As Integer)
'use =addchars( cell , character, interval )
Dim tmpstr As String, i As Double
For i = 1 To Len(rng)
tmpstr = tmpstr & Mid(rng, i, 1) & IIf(i Mod interval = 0 And i <> Len(rng), char, "")
Next
addchars = tmpstr
End Function
String
Result
abcdefghijklmno
=addchars(A2," ",3)
abcdefghijklmno
abc def ghi jkl mno
edit for last delimiter not to show after last character
1
u/finickyone 1770 Dec 31 '18
Looks like that would work to me: http://imgur.com/DmKPrN1
1
u/speaksincliche 129 Dec 31 '18
TEXTJOIN with ctrl+shift+enter, if you have access to it:
=TEXTJOIN(" ",TRUE,MID(A1,(ROW(INDIRECT("A1:A"&ROUNDUP(LEN(A1)/3,0)))-1)*3+1,3))1
u/excelevator 3071 Dec 31 '18 edited Jan 05 '19
Use a small function. Add the following code and use as follows to insert your chosen character at your chosen interval
edit for last delimiter not to show after last character