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
Related Q & A:
- How to extract text from web page?Best solution by Stack Overflow
- How to extract information from text file in Python?Best solution by Stack Overflow
- How to extract latest reply text from email and cut out previous messages?Best solution by Stack Overflow
- How to extract a specific text from an image?Best solution by Stack Overflow
- What's a good 15-25 watt starter amp that I can buy for home practice that is cheap and has good features?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.