+ Reply to Thread
Results 1 to 9 of 9

Quotation marks on select text in cell

  1. #1
    Registered User
    Join Date
    01-25-2017
    Location
    Vancouver, BC
    MS-Off Ver
    2015
    Posts
    3

    Quotation marks on select text in cell

    Hello,

    First post, so apologies if none of the following makes sense!

    Looking to automatically add quotations marks to certain text in a cell, but have the text that follows not in quotation marks. ( Tried \”@\” in Format but this add them to the entire cell contents)

    Is this possible? If so, how and what's the best way to make all cells do this?

    Each cell needs to look like the following (the parts in bold will be manually added)

    "TEXT" OR at_mentions:TEXT OR hashtags:TEXT

    The above would appear in Column B, and ideally all the text in Column A could be pasted into the " " section and the OR at_mentions:TEXT OR hashtags:TEXT part would automatically follow!

    Thanks for any help!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,964

    Re: Quotation marks on select text in cell

    Hi, welcome to the forum

    Im not really sure I understand what you want here. Are you saying you want to put some text in 1 cell, and in another cell either modify that and add "" or use that with something else and add ""?

    Can you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,533

    Re: Quotation marks on select text in cell

    Try

    ="""" &A1 &""""

    will place A1 in quotes

  4. #4
    Registered User
    Join Date
    01-25-2017
    Location
    Vancouver, BC
    MS-Off Ver
    2015
    Posts
    3

    Re: Quotation marks on select text in cell

    Thanks for the quick response!

    Sorry I couldn't make it clearer. I think the workbook is attached! Should help.

    So in Column A we manually input the topic (in this case sports teams) In Column B, we want the team name in " " followed by at_mentions: OR hashtags:

    The text following at_mentions: and hashtags: will be manually entered, but it would be cool to have the OR at_mentions: OR hashtags: part auto inputted!
    Attached Files Attached Files

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,915

    Re: Quotation marks on select text in cell

    =""""&A1&""""&" OR at_mentions:"&A1&" OR hashtags:"&A1
    is this you are looking for
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,964

    Re: Quotation marks on select text in cell

    Perhaps this?
    =""""&A1&""" OR at_mentions:CanadiensMTL OR hashtags:"&A1

  7. #7
    Registered User
    Join Date
    01-25-2017
    Location
    Vancouver, BC
    MS-Off Ver
    2015
    Posts
    3

    Re: Quotation marks on select text in cell

    Amazing! Thanks so much.

    I have 1000's of entries to do, this saved me hours of work. Thanks to everyone who helped. I'm sure I'll be back to the forum for more solutions, answers and questions!

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,964

    Re: Quotation marks on select text in cell

    Happy to help and thanks for the feedback

    Look forward to helping you again soon

  9. #9
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Quotation marks on select text in cell

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


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as 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. Romove single quotation marks from Text
    By longbow007 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-05-2016, 04:45 AM
  2. VBA code to put Quotation marks around any string of text
    By Ninjas101 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-30-2015, 08:49 AM
  3. Exporting to text file from Excel with quotation marks
    By MikeFranz123 in forum Excel General
    Replies: 0
    Last Post: 11-02-2014, 05:00 AM
  4. [SOLVED] CONCATENATE text that includes quotation marks
    By spoonpilot in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-30-2012, 04:13 PM
  5. How to handle quotation marks within text VBA is working on
    By Langkawi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-29-2009, 06:19 AM
  6. Placing Quotation Marks Around Text With Column
    By jessekanclerz in forum Excel General
    Replies: 2
    Last Post: 03-18-2009, 04:38 PM
  7. [SOLVED] How do I concatenate text that actually contains quotation marks?
    By Excel Distress in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-15-2005, 10:06 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