+ Reply to Thread
Results 1 to 3 of 3

Replacing a string in formula that contains quotes

  1. #1
    Registered User
    Join Date
    11-15-2012
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2003
    Posts
    2

    Replacing a string in formula that contains quotes

    Hi,

    I have a worksheet(s) with a lot of formulas. The formulas are similar to the one below.

    =SUMIFS(All_CM[Opening],All_CM[Type],"<>P",All_CM[Old],"N")

    Now I want to remove a criteria (first one) from all the formulas. If I try to search and replace it does not work. Is there a way to search and replace with a comma using VBA? The criteria i want to remove is in the middle of the criteria list.

    Thanks in Advance

    Amal

  2. #2
    Forum Contributor
    Join Date
    12-22-2017
    Location
    INDIA
    MS-Off Ver
    EXCEL 2007
    Posts
    106

    Re: Replacing a string in formula that contains quotes

    use substitute() function

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Replacing a string in formula that contains quotes

    When you used double quote within a string, you need to escape them by adding another double quote.
    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. Adding double quotes for string in formula
    By Vlad717 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-28-2017, 12:42 PM
  2. Formula that inserts quotes before and after comma in a string
    By jaime81 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-11-2014, 05:57 PM
  3. Replacing Quotes in Text - How to use
    By SDruley in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-01-2011, 04:38 AM
  4. Replacing dumb quotes at the beginning and end of cells
    By andertoons in forum Excel General
    Replies: 3
    Last Post: 08-25-2011, 03:15 PM
  5. Creating a formula string inserts unwanted little single quotes
    By shawnh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-07-2010, 09:42 PM
  6. [SOLVED] Replacing quotes in a cell with &quot;
    By mdonahoe in forum Excel General
    Replies: 2
    Last Post: 08-30-2005, 01:05 PM
  7. Formula for Replacing Text in a String?
    By David Godinger in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-16-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