+ Reply to Thread
Results 1 to 8 of 8

How do i get everything right of a character in cells

  1. #1
    Registered User
    Join Date
    03-20-2012
    Location
    uk
    MS-Off Ver
    Excel 2016
    Posts
    14

    How do i get everything right of a character in cells

    The character in this case is the 1st. space

    Example
    I have... (2 columns)
    9. What kind of food is Penne? 9. Pasta
    10. How many days are there in February during a leap year? 10. 29

    I want...
    What kind of food is Penne? Pasta
    How many days are there in February during a leap year? 29

    I have got part way there (single column) using this (but have not worked out how to get multiple columns at the same time)
    =RIGHT(C1,LEN(C1)-FIND(" ",C1))
    Last edited by emerald_joc; 11-29-2021 at 07:11 PM.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: How do i get everything right of a character in cells

    =right(c1,len(c1)-find(" ",c1)) & " " & right(d1,len(d1)-find(" ",d1))
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    03-20-2012
    Location
    uk
    MS-Off Ver
    Excel 2016
    Posts
    14

    Re: How do i get everything right of a character in cells

    Thanks.

    I should have added...
    I want to retain the 2 columns (questions and answers) after executing the Formula

    questions column C
    answers column D

  4. #4
    Registered User
    Join Date
    03-20-2012
    Location
    uk
    MS-Off Ver
    Excel 2016
    Posts
    14

    Re: How do i get everything right of a character in cells

    Anyone ? ❓

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

    Re: How do i get everything right of a character in cells

    Do you mean that you want the formula to act on the existing columns? If so, you can't do that. A cell can contain either a value or a formula, but not both. What you can do is extract what you need to two new columns, then maybe hide columns C and D. If that's not acceptable, then it's VBA, I'm afraid.

    In column E:

    =TRIM(MID(C1,FIND(" ",C1)+1,999))

    In column F:


    =TRIM(MID(D1,FIND(" ",D1)+1,999))
    Attached Files Attached Files
    Last edited by AliGW; 11-30-2021 at 05:31 AM.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,096

    Re: How do i get everything right of a character in cells

    the formula by mehmetcik simply looks for the space, and returns everything after it, while the & symbol joins them together, so just split them into 2 columns

    in E1:
    Please Login or Register  to view this content.
    in F1:
    Please Login or Register  to view this content.

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

    Re: How do i get everything right of a character in cells

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  8. #8
    Registered User
    Join Date
    03-20-2012
    Location
    uk
    MS-Off Ver
    Excel 2016
    Posts
    14

    Re: How do i get everything right of a character in cells

    Thanks for the help.
    Solved

+ 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. Shifting up cells to a certain character
    By ResearchGirlUK in forum Excel General
    Replies: 7
    Last Post: 02-24-2020, 08:25 PM
  2. Extract character from cells (A???-B???)
    By CAABYYC in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-12-2016, 07:07 PM
  3. Replies: 4
    Last Post: 08-26-2014, 09:20 AM
  4. Need to highlight special character and the cells contains special character
    By dhilipan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-26-2013, 01:36 AM
  5. How to cut cells by character and put them into their own columns
    By Shadefalcon in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-19-2012, 03:21 PM
  6. Replies: 5
    Last Post: 07-05-2012, 07:09 AM
  7. combining many cells in one cells keeping character font and hyperlinks of all cells
    By mankind00 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-27-2012, 09:41 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