+ Reply to Thread
Results 1 to 8 of 8

What do I do to replace "0" with the value of say B11 but the values should appear within

  1. #1
    Forum Contributor
    Join Date
    12-11-2012
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    308

    What do I do to replace "0" with the value of say B11 but the values should appear within

    Quotes i.e"" in the following equation
    =ClosePosition(A11,1,"0",D11)
    Last edited by omega0010; 07-21-2013 at 11:48 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: What do I do to replace "0" with the value of say B11 but the values should appear wit

    Please Login or Register  to view this content.
    will return the value in cell B11, surrounded by single quotes, eg: '50'. IF you must use double quotes, I think you'll need to look up the CHAR number for them, and use that.

    Hope this helps.
    Brendan.


    __________________________________________________________________________________________________
    Things to consider:

    1) You can thank any poster by clicking the * at the left of a helpful post.
    2) You can help to keep the forum tidy by marking your thread as "Solved", if it has been answered to your satisfaction.
    3) Help us to help you, by uploading a sample workbook, showing the type of data you're dealing with, and clearly indicating what the results should be.

  3. #3
    Forum Contributor
    Join Date
    12-11-2012
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    308

    Re: What do I do to replace "0" with the value of say B11 but the values should appear wit

    Thanks for the great help but as I dont know anything about this I wish to tell you that if that value is 50 as you have said then it should show as "50" and NOT '50'
    Further I dont even know what a char number is and any way this number is going to be a random number.
    Last edited by omega0010; 07-21-2013 at 12:10 PM.

  4. #4
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: What do I do to replace "0" with the value of say B11 but the values should appear wit

    Did you try looking up the CHAR number for ", as I suggested? If, as you claim, you "don't know anything about this", you could always try having a look, you know - there's plenty of information on the internet, for example here, or you could of course check Excel's online help.

    The CHAR # for " is 34, so to wrap the VALUE of cell B11 in " and ", the formula would be:

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    12-11-2012
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    308

    Re: What do I do to replace "0" with the value of say B11 but the values should appear wit

    Thanx a ton !
    It is extremely accurate and I will try to use it and see
    Thanks again !

  6. #6
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: What do I do to replace "0" with the value of say B11 but the values should appear wit

    Glad to be able to help, omega, and cheers for the rep.

  7. #7
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: What do I do to replace "0" with the value of say B11 but the values should appear wit

    You can also use triple quotes

    =ClosePosition(A11,1,"""0""",D11)

  8. #8
    Forum Contributor
    Join Date
    12-11-2012
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    308

    Re: What do I do to replace "0" with the value of say B11 but the values should appear wit

    Thanx for the tip but it does not work !

+ 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. replace all defined range names in the sheet that start with "Street" to "Road"
    By matrex in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 11-04-2016, 08:53 AM
  2. "Find and Replace" missing the ability to replace values?
    By dylanemcgregor in forum Excel General
    Replies: 6
    Last Post: 06-05-2013, 01:13 AM
  3. Replies: 0
    Last Post: 01-09-2013, 06:52 PM
  4. Replies: 3
    Last Post: 02-16-2011, 02:55 PM
  5. [SOLVED] Replace "insert function" with "edit formula" button in fourmula b
    By 13brian in forum Excel General
    Replies: 0
    Last Post: 08-24-2005, 04:05 PM

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