+ Reply to Thread
Results 1 to 7 of 7

Missing formula parentheses.

  1. #1
    Registered User
    Join Date
    06-30-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    1

    Missing formula parentheses.

    I've been on several websites and I can't seem to find help with a formula. I'm beginning to think that there's something really wrong with it and can't be fixed. Excel keeps saying that there's a missing parenthesis, but I'm really clueless and desperate for some help. Here's the formula:


    =if(and(k9="0", l2>m2), replace (and(p2, "1", q2, "0"), replace (and(p2, j8, q2, j9))


    I guessed most of it from bits of formula I've found on the internet. I thought it was okay, but what do I know?

    Any help would be appreciated.
    Last edited by Richard Buttrey; 06-30-2012 at 05:08 PM. Reason: title

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Missing formula parentheses.

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.



    Since you are new to the forum I'll change the title on this occasion but please note for the future.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Missing formula parentheses.

    Your formula doesn't contain the right syntax. Please explain in words what you are trying to do with reference to specific cells.

  4. #4
    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,939

    Re: Missing formula parentheses.

    not sure what you are trying to do, and without a sample workbooks to look at, its hard to say what you are trying to achieve, but from the looks of it...

    =if(and(k9="0", l2>m2), replace (and(p2, "1", q2, "0"), replace (and(p2, j8, q2, j9)) need to be...
    =if(and(k9="0", l2>m2), replace (and(p2, "1", q2, "0")), replace (and(p2, j8, q2, j9)))
    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

  5. #5
    Valued Forum Contributor
    Join Date
    04-30-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    547

    Re: Missing formula parentheses.

    AND() returns TRUE or FALSE. How will that work inside a Replace() function? The parameters for Replace() are

    =Replace(old_text, start_num, num_chars, new_text)

    ThursRed, can you try and explain what you want to achieve? Do you need to replace several different things when the condition is true? Can you post a small sample file that illustrates the "before" and "after"?
    Like a post? Click the star below it!

  6. #6
    Registered User
    Join Date
    08-13-2015
    Location
    Indonesia
    MS-Off Ver
    2010
    Posts
    1

    Re: Missing formula parentheses.

    i do have a problem with my formula. =(IF(OR(D4<>0,E4<>0),SUM(D$4:D4)-SUM(E$4:E4),0) i tried it billion times. but i can't click the E4 cell at my worksheet. why? can someone told me whats wrong? i do tried another formula. =(IF(OR(D4<>0;E4<>0);SUM(D$4:D4)-SUM(E$4:E4);0). it worked. at the beginning. when i tried to drag it, it doesnt change at all. the number is still same. can anyone tell me? i really need you advice. thank u

  7. #7
    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,939

    Re: Missing formula parentheses.

    REALTAMI, welcome to the forum

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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