+ Reply to Thread
Results 1 to 3 of 3

Complex Formula Syntax error

  1. #1
    Registered User
    Join Date
    06-29-2012
    Location
    Chester
    MS-Off Ver
    Excel 2010
    Posts
    9

    Complex Formula Syntax error

    Without going into any explanation of what my formula does, I wish to ask for help as the formula is not being accepted but the error is simply telling me there is and error, so I suspect it is simply a syntax problem.

    My formula is
    Please Login or Register  to view this content.
    Could anyone suggest where the problem lies

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Complex Formula Syntax error

    For every opening parethesis you must have a closing one.

    Maybe this is what you need.

    =if(or(and(),and()),"E","")
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Registered User
    Join Date
    06-29-2012
    Location
    Chester
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Complex Formula Syntax error

    Quote Originally Posted by Palmetto View Post
    For every opening parethesis you must have a closing one.

    Maybe this is what you need.

    =if(or(and(),and()),"E","")
    Thank you Palmetto, that was the fix. Had forgotten that the True, False values came at the end. The formula works fine now except that the logic is not how I want.

    I Have some columns as follows:-
    Please Login or Register  to view this content.
    I am trying to get the start and end dates for any consecutive rows (dates) and am setting S when it finds the start of a group of consecutive records. This works fine. My problem is with the formula you help with to get the end of a group. The formula works fine if column D on the next row is blank, but does not work if Column D (next row) containes C. The only difference between the 2 AND statements is to test Column D.

    Formula that works (thanks to you) is
    Please Login or Register  to view this content.
    The is something wrong with my logic I feel.

+ 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