how to extract characters of a language?

Formula to extract text only up to 25 characters

  • Hello I just asked a question but it seems that I made a mess of it. Below is another attempt. I am looking for a formula in cell B1 which can extract the value from cell A1 but only upto 25 characters comprising of complete words. For example the value in cell A1 is 10 best home based businesses Now the length is 29 characters. The answer that I would want in cell B1 is home based businesses Meaning that the length is 25 or less and only complete words are displayed. Would prefer to count the 25 characters from right. I hope that this makes sense.

  • Answer:

    Neil, put this in cell B1 and enter it with Ctrl+shift+enter rather than just Enter since this is an array formula: =RIGHT(A1,LEN(A1)-SMALL(IF((MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)=" ")*(IF(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)=" ",ROW(INDIRECT("1:"&LEN(A1))))>(LEN(A1)-25)),IF(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)=" ",ROW(INDIRECT("1:"&LEN(A1))))),1)) I tested it with your data and it worked for me when entered as an array formula.

Miningco.com Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.