+ Reply to Thread
Results 1 to 2 of 2

MID without cutting words

  1. #1
    Registered User
    Join Date
    08-01-2014
    Location
    Arizona
    MS-Off Ver
    2010
    Posts
    6

    MID without cutting words

    I need to update a form that I can only have 70 characters per line. The problem is when I use MID it cuts words off. For the sentence: Inspect compressor/inlet area for fod and oil leaks. Check GP section for freedom of rotation with no binding. Rotate compressor rotor and listen for unusual noises.


    It should read.

    Inspect compressor/inlet area for fod and oil leaks. Check GP section
    for freedom of rotation with no binding. Rotate compressor rotor and listen
    for unusual noises.

    What I'm using sort of works:

    =IF(ISNUMBER(SEARCH(" ",A2,60)),LEFT(A2,(FIND(" ",A2,60)-1)),A2)

    =IF(ISNUMBER(SEARCH(" ",A2,60)),MID(A2,SEARCH(" ",A2,60)+1,SEARCH(" ",A2,60)-SEARCH(" ",A2,1))," ")

    =IF(ISNUMBER(SEARCH(" ",A2,120)),MID(A2,SEARCH(" ",A2,120)+1,SEARCH(" ",A2,110)-SEARCH(" ",A2,60))," ")

    What I get cuts the second line off:

    Inspect compressor/inlet area for fod and oil leaks. Check GP
    section for freedom of rotation with no binding. Rota
    rotor and listen for unusual noises.


    My sentences may be longer so that's why I have 2 MIDs, not sure if I can even have 2 MIDMIDs

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: MID without cutting words

    Assuming the text string is in A2

    Enter this formula in A3 and copy it few rows down

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Enter second formula in B2 and copy down

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 06-15-2015, 03:25 PM
  2. Replies: 15
    Last Post: 10-12-2014, 08:53 AM
  3. Replies: 5
    Last Post: 09-02-2014, 03:49 PM
  4. [SOLVED] looking formula for Extract Specific WORDs in existing LONG Words
    By santosh226001 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-07-2013, 08:21 AM
  5. [SOLVED] VBA issue - trying to separate words with CAPITALS from Proper words
    By Eagle29 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-24-2013, 04:22 AM
  6. Replies: 3
    Last Post: 11-28-2012, 04:00 AM
  7. Replies: 1
    Last Post: 04-04-2012, 07:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1