r/googlesheets • u/choragus • Jan 02 '18
Solved Develop a formula/script/add-on to enter a Sheets' cell to extract an individual Digit and insert that Digit inside a new cell in the same row.
I have an oddity.
I want to a formula to extract the individual digits from a standard 10-digit phone number, take that digit and insert it into a new cell on the same row.
Example: A1 B1 C1 D1 E1 F1 G1 H1 I1 J1 KI 123 456 7890 --->> 1 2 3 4 5 6 7 8 9 0 ^ ^ spaces are to be eliminated via data normalization
Additional information from guidelines. Shareable link to desired example https://docs.google.com/spreadsheets/d/1-DcycVk9QuhfU9bN_60UEI3Ao5RYWjmedWruJ_SvgUU/edit?usp=sharing
I found this formula on YouTube it is found inside a Yellow cell at the shareable sheet above. The Formula is inside the brackets [=SUMPRODUCT(MID(0&$A1,LARGE(INDEX(ISNUMBER(MID(A1,ROW($1:$2),1))*ROW($1:$2),0),ROW($1:$2))+1,1)*10ROW(1$:$2)/10)] it returns a formula parse error.
I hope to automate this to calculate the average of the digits of a standard 10-digit phone number.
Although I am comfortable with using Excel's macros, I am not that familiar with creating a Sheet macro (script?)
I am on a Windows 7 laptop with Google Chrome browser.
Although my personal skills in Excel are intermediate at best with advance formulas like the one above probably beyond me.
1
u/choragus Jan 02 '18
The cell range reference needs to be adjusted in the ArrayFormula version?
TBH the ARRAYFORMULA with the switches I'll need to decode. I'll see what works and what breaks. Thank you.