+ Reply to Thread
Results 1 to 9 of 9

How to truncate a row of multiple words

  1. #1
    Forum Contributor Potholes's Avatar
    Join Date
    11-25-2011
    Location
    Brisbane
    MS-Off Ver
    Office 2021
    Posts
    774

    How to truncate a row of multiple words

    Hi all

    As an exercise I am trying something out so as to learn more about Excel.

    I have found out that using =LEFT(C1,5), in cell C1 will select the first five letters of the word in that cell.

    In the attached Potholes file, under the header "Truncated Words" I have keyed in manually...

    Speed Radar KA band

    From the opposite cell " Speed Radar (10525 MHz X band; 24150 MHz Ka band) "

    Is there a way say to use " Concatenate " along with something like " =LEFT(C9,4) " to selectively selected parts of words

    Each line has many different words of different sizes.

    Please Login or Register  to view this content.

    Thanks in advance if anyone has a formulae
    Attached Files Attached Files
    Last edited by AliGW; 07-28-2018 at 04:28 AM. Reason: Typo in title amended.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,218

    Re: How to truncated a row of multiple words

    Morning, Peter!

    The same thing applies to this as your abbreviated words thread: you need to be able to explain the logic in the choice of words you are making. Remember that Excel is software that you have to programme, so it needs a set of rules to work by if you want it to do this sort of thing using a formula, or VBA, for that matter. Without a set of rules that you can explain, it's a non-starter. So, what's the logic in the sample?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,218

    Re: How to truncated a row of multiple words

    Perhaps I should come at this from a slightly different angle. Do you have a list of long phrases that will always appear in the same format (same wording) that you always want to convert to a shorter version? If so, then you need to provide Excel with a dictionary of abbreviations (that is, a lookup table) to tell it what to do with each longer piece of text.

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: How to truncated a row of multiple words

    Ali, If you change the format of the sample from the abbreviated words thread, isn't this the same question?

    Please Login or Register  to view this content.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,218

    Re: How to truncated a row of multiple words

    Yes, it is, and the answer remains the same. However, I am feeling particularly generous this morning, so instead of closing this thread, I am closing the earlier one, as it had gone rather off topic in places.

    Peter - a gentle reminder, please, that the forum rules are very clear on thread duplication and the fact that it is not allowed. This has been raised with you before.

  6. #6
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: How to truncated a row of multiple words

    Quote Originally Posted by Potholes View Post
    As an exercise I am trying something out so as to learn more about Excel.
    Not the best way to start trying to learn!

    As Ali has pointed out, you will need a set of rules to work with, each of which must be clearly defined and exact. Excel can not identify similarities in the same way that a person can.
    For example, you can look at (430 - 450 Mhz) and 12-14 Mhz and see both as frequency ranges, excel will only see them as numbers and letters. A common rule to identify both ranges as the same could also identify 10525 MHz X band; 24150 MHz as a match, which based on your sample would be incorrect.

    Every time you add a new phrase you will need to assign rules to that phrase and check that none of the existing rules conflict.

    Teaching a goldfish to play the guitar would be an easier task.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,218

    Re: How to truncated a row of multiple words

    Here's some more information about the LEFT, MID, RIGHT and LEN functions in Excel: https://spreadsheeto.com/text-functions/

  8. #8
    Forum Contributor Potholes's Avatar
    Join Date
    11-25-2011
    Location
    Brisbane
    MS-Off Ver
    Office 2021
    Posts
    774

    Re: How to truncate a row of multiple words

    Hi all

    Thank you all for your replies, the only reason why I started this thread was because the first on on this topic was closed and it was not needed for the project.

    My only reason was to learn something new, but as JasonB75 said maybe "Teaching a goldfish to play the guitar would be an easier task.".

    As Ali pointed out last time I maybe easier to do each line by hand.

    So for now I will close off this topic and mark it as Solved.

    Once again Thank You All for your inputs.

    Peter.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,218

    Re: How to truncate a row of multiple words

    The other thread was not closed, Peter, but as we thought we had reached a resolution, you marked it as solved. You can always remove the solved tag and bump a thread by posting to it again.

+ 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. Formula for Counting Multiple Words in Multiple Ranges
    By billdigo1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-16-2015, 06:11 PM
  2. [SOLVED] i need shortcut for filling multiple words in multiple cell
    By vengatvj in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 11-22-2013, 09:08 PM
  3. truncated mean
    By indyffl in forum Excel General
    Replies: 5
    Last Post: 05-23-2011, 03:28 PM
  4. Alphabetize & Separating multiple words into multiple cells
    By rmiranda1824 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-14-2010, 04:51 AM
  5. [SOLVED] y label truncated
    By Adam. in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 03-30-2006, 05:30 PM
  6. [SOLVED] GIF File Gets Truncated
    By k2sarah in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-02-2005, 01:35 AM
  7. [SOLVED] Printing truncated
    By TUNGANA KURMA RAJU in forum Excel General
    Replies: 1
    Last Post: 11-26-2005, 10:00 AM

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