+ Reply to Thread
Results 1 to 21 of 21

TEXT formatting withing single quote

  1. #1
    Registered User
    Join Date
    11-20-2018
    Location
    Pune,India
    MS-Off Ver
    16
    Posts
    13

    TEXT formatting withing single quote

    Screenshot 2018-12-15 14.22.38.png
    Screenshot_9.jpg

    Macro :
    Please Login or Register  to view this content.

    Hi Team,

    I want to format text as in second image. I dont know much about vba. Can you please advise.


    Thanks,
    Gajjo
    Attached Files Attached Files
    Last edited by Gajjo_Boss; 12-15-2018 at 05:33 AM. Reason: add attach

  2. #2
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,779

    Re: TEXT formatting withing single quote

    Welcome to the forum!

    Two things:

    1. You posted in the wrong section - I have moved the thread for you.
    2. You did not use code tags (see our forum rules) - I have added them for you this time.
    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.

  3. #3
    Registered User
    Join Date
    11-20-2018
    Location
    Pune,India
    MS-Off Ver
    16
    Posts
    13

    Re: TEXT formatting withing single quote

    Thank you very much. I wii go throught forum rules.

    am unable to attach file. Can you please advise for above.

  4. #4
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,779

    Re: TEXT formatting withing single quote

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    I cannot help you with the VBA - somebody else will.

  5. #5
    Registered User
    Join Date
    11-20-2018
    Location
    Pune,India
    MS-Off Ver
    16
    Posts
    13

    Re: TEXT formatting withing single quote

    thank you. ihave attach file now.

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

    Re: TEXT formatting withing single quote

    Please check row 5 in your Desired Output image.

    Is the correct result as shown, or should it be

    Tip tinner. used to clean the tip of 'The Soldering Iron'

    If the image is correct then you will need to explain the rules of your logic better as it doesn't appear to match the other rows.

  7. #7
    Registered User
    Join Date
    11-20-2018
    Location
    Pune,India
    MS-Off Ver
    16
    Posts
    13

    Re: TEXT formatting withing single quote

    thats mistake. I want it as 'The Soldering Iron'
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by Gajjo_Boss; 12-15-2018 at 05:54 AM.

  8. #8
    Registered User
    Join Date
    11-20-2018
    Location
    Pune,India
    MS-Off Ver
    16
    Posts
    13

    Re: TEXT formatting withing single quote

    Anyone? I just need text in single quotes in proper case.

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

    Re: TEXT formatting withing single quote

    Do you need it in red as well, or did you just do that to highlight what should be changed?

    I think you're going to struggle to get it to work using single quotes. In most cases it can be made to work, but anything like this will be a problem

    solder wick': the wick soaks up molten solder, it’s useful to clean the excess of solder.

    Will result in

    solder wick': The Wick Soaks Up Molten Solder, It's useful to clean the excess of solder.

  10. #10
    Registered User
    Join Date
    11-20-2018
    Location
    Pune,India
    MS-Off Ver
    16
    Posts
    13

    Re: TEXT formatting withing single quote

    i did just to highlight. i dont want anycolour. just proper case for text witin single quote.

  11. #11
    Registered User
    Join Date
    06-21-2017
    Location
    Missouri, USA
    MS-Off Ver
    2007 through 2019
    Posts
    71

    Re: TEXT formatting withing single quote

    What if instead of going by the apostrophes you look for the colon? Maybe something like this =PROPER(LEFT(A1,FIND(":",A1)))

  12. #12
    Registered User
    Join Date
    11-20-2018
    Location
    Pune,India
    MS-Off Ver
    16
    Posts
    13

    Re: TEXT formatting withing single quote

    Because list i get has text in single quote eg 'Text Sample' and which should be in proper case.

  13. #13
    Registered User
    Join Date
    11-20-2018
    Location
    Pune,India
    MS-Off Ver
    16
    Posts
    13

    Re: TEXT formatting withing single quote

    can you tell me solution u have.

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

    Re: TEXT formatting withing single quote

    As far as I can see, this is giving the correct results with the sample provided.
    Please Login or Register  to view this content.
    Single quotes are not the best thing to use for this, if you check your sample, you will see that every entry in column A has a hidden single quote at the beginning as a text qualifier. To get around this I've had to count the number of single quotes in each cell to determine if there should be one at the start or not. While it works with the sample, it could prove to be unreliable with other data.

  15. #15
    Registered User
    Join Date
    11-20-2018
    Location
    Pune,India
    MS-Off Ver
    16
    Posts
    13

    Re: TEXT formatting withing single quote

    yes, that hidden ' issue. I have created macro which make it to visiable . I select them and run below macro

    Please Login or Register  to view this content.
    Im testing your macro.
    Thank you very much.
    Last edited by Gajjo_Boss; 12-17-2018 at 03:37 PM.

  16. #16
    Registered User
    Join Date
    11-20-2018
    Location
    Pune,India
    MS-Off Ver
    16
    Posts
    13

    Re: TEXT formatting withing single quote

    Thank you very much again. Code work perfectly.

    Thank you for help.

  17. #17
    Registered User
    Join Date
    11-20-2018
    Location
    Pune,India
    MS-Off Ver
    16
    Posts
    13

    Re: TEXT formatting withing single quote

    what if i need to update changes in same cell.

    This code work exactly as i wanted but i need value to be updated in same cell.
    and this code not making first word of sentence capital if it is in small case.
    Last edited by Gajjo_Boss; 12-16-2018 at 02:52 PM.

  18. #18
    Registered User
    Join Date
    11-20-2018
    Location
    Pune,India
    MS-Off Ver
    16
    Posts
    13

    Re: TEXT formatting withing single quote

    is this ok to use below code if i need value to be updated in same cell.

    Please Login or Register  to view this content.
    Last edited by Gajjo_Boss; 12-17-2018 at 03:35 PM.

  19. #19
    Registered User
    Join Date
    11-20-2018
    Location
    Pune,India
    MS-Off Ver
    16
    Posts
    13

    Re: TEXT formatting withing single quote

    Thank You very much again.

  20. #20
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,877

    Re: TEXT formatting withing single quote

    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 6)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

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

    Re: TEXT formatting withing single quote

    Try this (untested)
    Please Login or Register  to view this content.

+ 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. [SOLVED] Single quote vba
    By hanif in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-29-2016, 04:58 AM
  2. [SOLVED] single quote/CID/single quote/comma
    By kl27302 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-09-2014, 10:10 AM
  3. [SOLVED] How to find and replace hidden single quote ? (This sign is single quote: ')
    By HerryMarkowitz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-19-2014, 03:48 PM
  4. Need to remove leading single quote from text cells
    By katcar in forum Excel General
    Replies: 4
    Last Post: 10-09-2009, 04:48 PM
  5. Single Quote
    By Kinjalip in forum Excel General
    Replies: 4
    Last Post: 04-06-2006, 07:30 AM
  6. [SOLVED] Leading single quote
    By AA2e72E in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-13-2005, 07:06 AM
  7. What does SINGLE QUOTE mean before value in a cell?
    By surotkin in forum Excel General
    Replies: 2
    Last Post: 04-13-2005, 08:42 AM

Tags for this Thread

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