+ Reply to Thread
Results 1 to 5 of 5

Quotation marks being added to formula answer

  1. #1
    Registered User
    Join Date
    02-01-2012
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2010
    Posts
    97

    Quotation marks being added to formula answer

    Hi Everyone,

    Im hoping you can help me with this, its probably really simple to fix but I just cant see the wood for the trees.

    Heres the formula.....

    =IF(L29="dog",(LEFT(K29,FIND(" ",K29)-1)),((LEFT(K29,FIND(" ",K29)-1))*Q29))

    For some reason, the section in bold is returning the value with quotation marks stopping me from onward processing. I don't have this issue on the back end of the formula though.

    Thanks for your help
    Kind regards
    Alex

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Quotation marks being added to formula answer

    LEFT is a Text function and returns, well, text. Assuming you have two numeric values separated by a space, try this:

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


    Note that you have more brackets than necessary:

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



    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Quotation marks being added to formula answer

    Should have said, the second half of the IF formula, the FALSE element, has a multiplication which coerces a numeric value.

  4. #4
    Registered User
    Join Date
    02-01-2012
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: Quotation marks being added to formula answer

    That's brilliant thanks TMS. The value its separating is actually time. The cell reads something like 0.5 hrs. I want to cut the " hrs" off and multiply it by a price. I cut the hrs off in other ways (text to columns for example) but its externally updated so I would rather have a live field.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Quotation marks being added to formula answer

    You're welcome.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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] formula logic for cells containg a quotation marks
    By Brian6751 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-06-2014, 07:24 AM
  2. [SOLVED] Trouble with quotation marks in formula
    By jprlimey in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-02-2014, 03:17 PM
  3. Quotation marks in formula giving wrong output
    By pcfreakshow in forum Excel General
    Replies: 1
    Last Post: 10-11-2012, 03:00 PM
  4. Replies: 1
    Last Post: 03-25-2011, 09:42 AM
  5. inserting a formula with VBA that has quotation marks
    By luv2glyd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-16-2010, 06:11 PM
  6. Replies: 8
    Last Post: 08-08-2005, 09:05 PM
  7. [SOLVED] Use quotation marks in a formula to display a qty in feet and inc.
    By Jose in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-12-2005, 12:06 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