Syntax Error using Numbers

I keep getting a syntax error when I type this in...
=(B1/50)+(C1/12)-(MIN(D1, [4])+/5)
it is a formula to calculate weight watches points. here it is as seen on a website.
p=(c/50)+(f/12)-(min{r,4}/5)
p=points
c=calories
f=fat grams
r=dietary fiber
I have the cells so that b1 = calories, c1 = fat grams, and d1 = dietary fiber.
Can anyone point me in the right direction? I'm thinking its just a simple mistake that I am making. Thanks.

Have you looked at the replies to your other thread? You have several syntax errors for spreadsheets. What language is being used in the equation?
Regards,

Similar Messages

  • Syntax error in Numbers.

    I try typing in this "=4,67+log(A2/(24,63-A2))" and get a syntax error.

    Update.
    Which LOG function do you mean? From the Function Button in Numbers:
    Choose Show Function Browser.
    The LOG function returns the logarithm of a number using a specified base.
    LOG(pos-num, base)
    pos-num:  A positive number. pos-num is a number value and must be greater than 0.
    base:  An optional value specifying the base of the logarithm. base is a number value and must be greater than 0. If base is 1, a division by zero will result and the function will return an error. If base is omitted, it is assumed to be 10.
    The LOG10 function returns the base-10 logarithm of a number.
    LOG10(pos-num)
    pos-num:  A positive number. pos-num is a number value and must be greater than 0.
    The LN function returns the natural logarithm of a number, the power to which e must be raised to result in the number.
    LN(pos-num)
    pos-num:  A positive number. pos-num is a number value and must be greater than 0.
    From the Help Menu in Numbers, download the Numbers User Guide and the Formulas and Functions User Guide.
    Regards,
    Ian.

  • Syntax error using try statement in WLST

    Hi All,
    I have a WLST script to create some JMS resources.
    I want to implement exception handling in such a way that if the script fails at any point, all the changes done should be reverted back.
    However, whenever I am trying to put a try block, the script is throwing syntax error on the first line after the try statement.
    Please find below the script I am using. Please suggest
    import sys
    from java.lang import System
    *# Putting a try statement here results in a syntax error at the below line*
    print "Starting the script ..."
    connect('weblogic',password,'t3://osbdev:7001')
    edit()
    startEdit()
    servermb=getMBean("Servers/osb_server")
    if servermb is None:
    print 'Value is Null'
    else:
    +# Creating the JMS Server+
    jmsserver1mb = create('WLSTJMSServer','JMSServer')
    jmsserver1mb.addTarget(servermb)
    +# Creating the JMS Module+
    jmsMySystemResource = create("WLSTJmsSystemResource","JMSSystemResource")
    jmsMySystemResource.addTarget(servermb)
    subDep1mb = jmsMySystemResource .createSubDeployment('WLSTJMSSubDeployment')
    subDep1mb.addTarget(jmsserver1mb)
    theJMSResource = jmsMySystemResource.getJMSResource()
    connfact1 = theJMSResource.createConnectionFactory('WLSTConnFact1')
    connfact1.setJNDIName('jms.WLSTConnFact1')
    connfact1.setSubDeploymentName('WLSTJMSSubDeployment')
    print "Creating WLSTQueue1..."
    jmsqueue1 = theJMSResource.createQueue('WLSTJMSQueue1')
    jmsqueue1.setJNDIName('jms.WLSTJMSQueue1')
    jmsqueue1.setSubDeploymentName('WLSTJMSSubDeployment')
    print "Creating WLSTQueue2..."
    jmsqueue2 = theJMSResource.createQueue('WLSTJMSQueue2')
    jmsqueue2.setJNDIName('jms.WLSTJMSQueue2')
    jmsqueue2.setSubDeploymentName('WLSTJMSSubDeployment')
    *# try statement is working at only this point of the program*
    try:
    save()
    activate(block="true")
    print "script returns SUCCESS"
    except:
    save()
    cancelEdit(defaultAnswer="y")
    print "Error while trying to connect to server !!!"
    print "Unexpected error: ", sys.exc_info()[0]
    dumpStack()
    raise
    Edited by: Chintan Parekh on Mar 16, 2011 7:06 AM

    Hi Chintan,
    Try doing copy pasting the below code, you have to hit the tab or space after try or except to create its block and keep an eye on the alinement's of it.
    try:
         save()
         activate(block="true")
         print "script returns SUCCESS"
    except:
         save()
         cancelEdit(defaultAnswer="y")
         print "Error while trying to connect to server !!!"
         print "Unexpected error: ", sys.exc_info()[0]
         dumpStack()Also I made the alinement's properly and the script is running properly with out any error.
    print "Starting the script ..."
    connect('weblogic','weblogic','t3://localhost:7001')
    edit()
    startEdit()
    servermb=getMBean("Servers/AdminServer")
    if servermb is None:
         print 'Value is Null'
    else:
         # Creating the JMS Server
         jmsserver1mb = create('WLSTJMSServer','JMSServer')
         jmsserver1mb.addTarget(servermb)
         # Creating the JMS Module
         jmsMySystemResource = create("WLSTJmsSystemResource","JMSSystemResource")
         jmsMySystemResource.addTarget(servermb)
         subDep1mb = jmsMySystemResource .createSubDeployment('WLSTJMSSubDeployment')
         subDep1mb.addTarget(jmsserver1mb)
         theJMSResource = jmsMySystemResource.getJMSResource()
         connfact1 = theJMSResource.createConnectionFactory('WLSTConnFact1')
         connfact1.setJNDIName('jms.WLSTConnFact1')
         connfact1.setSubDeploymentName('WLSTJMSSubDeployment')
         print "Creating WLSTQueue1..."
         jmsqueue1 = theJMSResource.createQueue('WLSTJMSQueue1')
         jmsqueue1.setJNDIName('jms.WLSTJMSQueue1')
         jmsqueue1.setSubDeploymentName('WLSTJMSSubDeployment')
         print "Creating WLSTQueue2..."
         jmsqueue2 = theJMSResource.createQueue('WLSTJMSQueue2')
         jmsqueue2.setJNDIName('jms.WLSTJMSQueue2')
         jmsqueue2.setSubDeploymentName('WLSTJMSSubDeployment')
    # try statement is working at only this point of the program
    try:
         save()
         activate(block="true")
         print "script returns SUCCESS"
    except:
         save()
         cancelEdit(defaultAnswer="y")
         print "Error while trying to connect to server !!!"
         print "Unexpected error: ", sys.exc_info()[0]
         dumpStack()Below is the output
    java weblogic.WLST test.py
    Initializing WebLogic Scripting Tool (WLST) ...
    Welcome to WebLogic Server Administration Scripting Shell
    Type help() for help on available commands
    Starting the script ...
    Connecting to t3://localhost:7001 with userid weblogic ...
    Successfully connected to Admin Server 'AdminServer' that belongs to domain 'Domain_7001'.
    Warning: An insecure protocol was used to connect to the
    server. To ensure on-the-wire security, the SSL port or
    Admin port should be used instead.
    Location changed to edit tree. This is a writable tree with
    DomainMBean as the root. To make changes you will need to start
    an edit session via startEdit().
    For more help, use help(edit)
    You already have an edit session in progress and hence WLST will
    continue with your edit session.
    Starting an edit session ...
    Started edit session, please be sure to save and activate your
    changes once you are done.
    MBean type JMSServer with name WLSTJMSServer has been created successfully.
    MBean type JMSSystemResource with name WLSTJmsSystemResource has been created successfully.
    Creating WLSTQueue1...
    Creating WLSTQueue2...
    Saving all your changes ...
    Saved all your changes successfully.
    Activating all your changes, this may take a while ...
    The edit lock associated with this edit session is released
    once the activation is completed.
    Activation completed
    script returns SUCCESSRegards,
    Ravish Mody
    http://middlewaremagic.com/weblogic
    Come, Join Us and Experience The Magic…
    Edited by: Ravish Mody-MiddewareMagic on Mar 16, 2011 8:33 PM

  • Syntax errors using sql and java

    Could somebody inform of the correct syntax for using UPDATE and INSERT SQL commands in a java program? Any information I can find demonstrates this with:
    INSERT INTO table_name(column_name, ..., column_name)
    VALUES(value, ..., value)
    However - this isn't working? any suggestions - and I know its very basic, but I'm just learning.
    String query = " INSERT INTO SESSIONS (" +                                   
                        "id,module_name, module_number, level, session " +
                        "term, class_list, location, lecturer" + ")
    VALUES('"+
                        fields.id.getText() + "', '"+
                        fields.module_name.getText() + "', '" + fields.module_number.getText() + "', '" +
                   fields.level.getText() + "', '" fields.session.getText() "', '" +
                   fields.term.getText() + "', '" fields.class_list.getText() "', '" +
                   fields.location.getText() + "', '" fields.lecturer.getText() "')";
              output.append( " \nSending query: " + connection.nativeSQL(query)+ "\n");                                                                                                         
              output.append( "query sent");     
    thanks
              int result = statement.executeUpdate(query);                    

    With all those quotes and apostrophes and string concatenations, I'd be surprised if you got it right by the fourth try. (By the way, you appear to have missed a comma between "session" and "term".) Are you planning to insert more than one record in your program? If so, you should consider using a PreparedStatement. This will likely run faster, and your program will definitely be easier to read. Also, you won't have to come back here later to ask how you deal with data that includes apostrophes (the notorious "O'Brien" problem). Here's how you do that... you define the PreparedStatement only once:
    String query =
      "INSERT INTO SESSIONS (id,module_name, module_number, level, session, term, class_list, location, lecturer) " +
      "VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)";
    PreparedStatement insert = connection.prepareStatement(query);and then every time you want to insert a record you do this:
    insert.setString(1, fields.id.getText());
    insert.setString(2, fields.module_name.getText());
    // and so on...
    insert.executeQuery();

  • Syntax Error - Using "Group By" with "Union All"

    Dear SAP community, I am a newb in need of help.
    Just spent the past 2 days searching for answers on how to build this query.
    Basically, I just want to group the Item Names (U_ItemName) together and have their respective quantities (U_Cart) added together so the same items display as one total quantity, no duplicates.
    I have tried so many combinations of GroupBy and Sum/Count....etc.  Nothing is working.
    The query:
    SELECT T1.[U_ItemName] AS 'Item Name', T1.[U_Cart] AS 'Cartons Available', T0.[Country] AS 'Country', T1.[U_ShlfLife] AS 'Shelf Life' FROM [dbo].[OWHS] T0 inner join [dbo].[@SICAS_EXT_WHS] T1  on T0.WhsCode=T1.U_WhseCode WHERE T0.[Country] = (N'JP' ) and DateDiff(Month, GetDate(),T1.[U_ShlfLife]) <= 6 union all
    SELECT T0.[U_ItemName], Sum(T0.[U_Cart]) as Cartons, T1.[Country], null FROM [dbo].[@SICAS_EXT_WHS]  T0, OWHS T1 WHERE T1.[Country] = (N'JP' ) and DateDiff(Month, GetDate(),T0.[U_ShlfLife]) >= 6
    GROUP BY T0.[U_ItemName], T0.[U_Cart], T1.[Country]
    Can anybody advise how to get this working?
    Thank you,
    Justice Nerenberg

    hi justice,
    I checked your code and it seems correct. but I don't have same table in database so i can't check it correctly.
    but I tried your problem with same situation and I am getting actual result.
    Example :-
    select itemcode,dscription,quantity from inv1
    where docdate>'2011-02-18 00:00:00.000'
    union all
    select itemcode,dscription,Sum(quantity) from inv1
    where docdate<'2011-02-18 00:00:00.000'
    group by itemcode,dscription
    Please do one thing rum both select queries separately whether running properly. Using above example you can check your code
    Thanks
    Annu

  • Using Formula in Pages Table (Syntax error)

    I thought this would be simple, but I get a syntax error:
    My Table
    Date Start Date End Bytes Redo Rate (Mbps)
    20/06/2010 11:00:00 PM 21/06/2010 03:00:00 AM 850,648,576 0
    21/06/2010 11:00:00 PM 22/06/2010 03:00:00 AM 561,487,360 0.4456
    22/06/2010 11:00:00 PM 23/06/2010 03:00:00 AM 486,454,784 0.3860
    23/06/2010 11:00:00 PM 24/06/2010 03:00:00 AM 1,239,929,344 0.9840
    24/06/2010 11:00:00 PM 25/06/2010 03:00:00 AM 1,365,600,256 1.0838
    In the Redo Rate column I want a simple formula: ((C2/0.7)*8)/1000000
    The current value in the last column I hand calculated, but the 0 (zero) is where the formula is supposed to be.
    I enter it using Formula Editor as: =((C2 / 0.7) * 8) / 1000000 -- and there is the syntax error...
    Can someone please help me... this was supposed to be simple...
    Using Page '09
    Thanks in advance for your attention and replies.
    Andries

    Here it behaves flawlessly.
    I inserted the Bytes values without the thousands separators then applied the separators.
    I'm running a French system so I can't test the behaviour of the English format.
    I'm not sure that you are allowed to enter the commas by yourself.
    Check if the cells are deciphered as Numbers.
    I guess that they are treated as text.
    Yvan KOENIG (VALLAURIS, France) mercredi 30 juin 2010 14:06:38

  • Syntax error in  a numbers " if" formula

    Hi All:  I hope that somepne can tell me what is causing the syntax error on the following formula:
    =IF(C16>0, =sum(C15+C19+C23+12), =12)
    I have tried just about everything that i can think of and nothing works.  for your info C16 is a numeric field with no formulas. the formula in the if true section, works just find in the spreadsheet.  The if false section, I have tried =12, +12, =+12, and 12.  I am using numbers 09.
    I look forward to everyone's assistance.
    Thanks,
    G.E.

    omit the "=" inside the if() like:
    =IF(C16>0, sum(C15,C19,C23,12), 12)

  • Numbers, Formel-Editor division creates syntax-error

    Good morning everyone. Am sorry, but I face a problem in Numbers that is beyond my ability to grasp: Using Number ´08 Version 1.0.3 I created a rather vast Datasheet from A1 to BU368 The data in this sheet is derived from aprox fourty different sheets. The data is numeric.
    Now I would like create the simple formula eg.: Q362/P362. Using the Formula-edtior and doing the up to now always working procedure: Open Formula-editor, clicking Q363 then adding a / then clicking P362 creates an "Syntax error"
    If I do the same by manually writing: Q362/P362 into the formula-editor, it works. Until I have the idea to chage the format of the collum from "automatic" to "numbers" then the formula has a syntaxerror as well.
    Now, what is the difference between the two formulas below? I can´t find any.
    and:
    The latter one works.
    Please help me, I should have handed in this sheet by today and there is quite some money involved for me.
    Warm greetings
    William

    William,
    I don't have Numbers '08, so the version I have may behave differently, but I have a few observations that may be useful to you or another helper.
    Your procedure does seem correct and should work.
    The formula editor would be much easier to read if you turned off the preference to  “Use header cell names as references.”
    The example with the syntax error does not highlight anything, so it isn't seeing any cell references (which it should if you entered them by clicking the cells). It is just trying to divide two strings.
    There are single quotes and spaces in both the working and non-working examples that I don't see the reason for. Maybe it's a localization thing.
    Since you are on a deadline, wouldn't it work to copy the working formula and paste it into the cell with the non-working one?
    Jeff

  • Hi, i'm new using numbers, and when I try to open a excel file don't let me do it, instead appears a box whit a error and close app,  any help?

    Hi, i'm new using numbers, and when I try to open a excel file don't let me do it, instead appears a box whit a error and close app,  any help?

    What does the error say?
    A couple of thoughts: the file is corrupted or is password-protected. Corruption is more likely to cause Numbers to crash & Numbers cannot open password-protected Excel files. Try using one of the free Office clones & see what happens.

  • Error when creating a description field. MySQL syntax to use?

    I'm creating a form which has a description field in it. I created this form with many fields. However I then got an error and decided to limit the form to only 2 fields. These 2 fields (user and title) insert with no problem. However when I added the description field into the mix. I gat the same error I had previously gotten.
    Error:
    Internal error.
    Developer Details:
    tNG_fields.getFakeRecordset:
    SQL error: Error creating temporary table:
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc TEXT, job_id TEXT)' at line 1
    SQL:
    CREATE TEMPORARY TABLE KT_fakeRS_20080204 (client_id TEXT, name TEXT, desc TEXT, job_id TEXT) (FIELDS_FAKE_RS_ERROR)
    tNG Execution Trace - VIEW
    * tNG_insert.executeTransaction
    o STARTER.Trigger_Default_Starter
    * tNG_insert.getRecordset
    * tNG_insert.getLocalRecordset
    * tNG_insert.getFakeRecordset*
    I'm using the "Text" syntax for the field "desc" (description)
    What am I doing wrong? Do I need to define the table row in a different way?

    Hi,
    I am working on an image gallery using the tutorials.
    I used the sql
    SELECT *,
    rand() as random_number
    FROM image_img
    ORDER BY random_number DESC LIMIT 1
    on my default.php page but on preview i get the message
    You have an error in your SQL syntax near 'LIMIT 0, 10' at line 1
    I tried the solution above by removing the desc limit.
    I got the same prob.
    I will like to know how best to tackle this.
    Thanks
    Yomi

  • #SYNTAX error while using Merge Dimension in webi report

    Hi All,
    # Syntax error when using merge dimension in webi report
    screen shot has been attached.
    iam using BO 4.0 SP6
    checked the datatypes in BW
    they are same in BW in both the queries
    i followed the given links but no result.
    https://websmp230.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3138343530303526
    https://websmp230.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3136323339323126
    https://websmp230.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3137353438313026
    http://scn.sap.com/thread/3592588#15241008
    Need Help!!!!!
    Regards
    Sushma

    Hi Mark,
    Thanks for the reply,
    I did not use any formula,
    I used merge dimension
    Anyways i tried in other system,it s working fine.
    Regards
    sushma

  • Use Of "#EC CI_EXECSQL in ABAP with EXEC SQL. Statement giving Syntax Error

    Dear Gurus,
    I have encountered an issue while trying to remove warning for using Native SQL statement using pseudo comment "#EC CI_EXECSQL
    The thing is like this -- i have used follwing native sql command in abap.
    EXEC SQL.
        CONNECT TO 'SURROUND_DB'
      ENDEXEC.
    Now when i am checking this code in code inspector it is showing a warning with information below
    CA CL_CI_TEST_CRITICAL_STATEMENTS0006
    Code Inspector
    Critical Statements
    Use of Native SQL
    Authorization checks cannot be appropriately run using EXEC SQL and should be carried out at program level.
    The message can be hidden using the pseudo-comment "#EC CI_EXECSQL
    Use of exceptin handling section for that warning showing me to use :
    The message can be hidden using pseudo
    comment      "#EC CI_EXECSQL
    Now when I am using "#EC CI_EXECSQL in the abap like below :
    EXEC SQL. "#EC CI_EXECSQL
        CONNECT TO 'SURROUND_DB'
      ENDEXEC.
    It is giving syntax error
    The text literal ""#EC CI_EXECSQL        " is longer than 255
    characters.Check whether it ends correctly.
    Please provide the guideline to resolve this issue.
    Thanks & regards
    Saifur Rahaman.

    Hi Saifur,
    You can remove the warning using the following syntax:
    EXEC "#EC CI_EXECSQL
      SQL.
        CONNECT TO 'SURROUND_DB'
      ENDEXEC.
    At least, it worked fine for me when using OPEN CURSOR, SELECT, FETCH and so on statements.
    The way to use the pseudo comment is not very intuitive, but at least for my examples worked fine.
    I hope this may help you.
    Best regards,
    Edgardo G. König

  • I´m trying to open an excel file in numbers not being successful. The error msg is unexpectedly error using plugin SFCompatibility can you help me?

    I´m trying to open an excel file in numbers not being successful. The error msg is unexpectedly error using plugin SFCompatibility can you help me? Already changed the extension of the excel document to xlsx an now gives an unknown import error.

    In Excel have you tried saving directly to xls (not xlsx) and opening the xls in Numbers?
    If you have a complicated workbook in Excel that uses lots of Excel's advanced features, Numbers may not be able to handle the import.  It does pretty well on basic things, though.
    If you're just trying to get data into Numbers, then often copy-paste from Excel is easier than trying to open xls files.
    SG

  • Code syntax error in header using a template?

    Now running CS5 DW in a 32 bit Windows/Vista ultimate environment. The improved error messages have brought to light a problem that I apparently have had for a long time but didn't know it as CS4 simply flagged the line but no message.
    Many of my site pages use a template http://a0540807.uscgaux.info/Templates/A0540807_Skeleton_2010.dwt
    If I build or edit a page using this template in CS5, when in code view I see "There is a syntax error on line 57. Code hinting may not work until you fix this error.  Line 57 is within the header of the page and is simply </script>
    But if I simply detach the template from the page, the error goes away and it says no syntax errors.
    So I am confused, is there an issue with the code or is this a Dreamweaver issue dealing with template usage?
    While the error appears cosmetic, I keep wondering what to do to eliminate. Apparently, I have had this situation a long time as Line 57 is also identified back in CS4 but no error message until CS5. Any pointers are appreciated. Thanks.
    Andy

    I don't actually think there is any problem with your page...run one of your child pages through the W3C validator: http://validator.w3.org/ . I cast a page from your template and it came through with flying colors!
    Beth

  • Syntax error when using jsp:include...

    @ all
    I get a syntax error at the jsp:include line, character "";
    Can anybody help me with that issue?
    Jürgen

    select coalesce(col1,col2) joined_col, col3, sum(col4), col5 from data group by joined_col,col5You cannot use a column alias like this directly inside the group-by clause. You will have to rewrite this to:
    select coalesce(col1,col2) joined_col, col3, sum(col4), col5 from data group by coalesce(col1,col2),col5Furthermore I assume that the 'col5' in the group by should be 'col3', not?
    Or vice-verse the 'col3' inside the select-list should be 'col5'...

Maybe you are looking for

  • Display specific value from List of Values(LOV)

    Hi All, Is this possible in BOXI R2 that i created a List of Values like below: 1. P1AF 2. P1XA 3. P2AF 4. P2XA 5. P2XD 6. P3AF 7. P3XA 8. P3XD and i would like to show only 1 & 2 values for specific users. Or switch on /off some values without acces

  • Help installing Snow Leopard/Lion on MacBook 2,1

    Hi. I am currently trying to upgrade the OS on my old MacBook to the latest version it can handle. It appears OS X 7 (Lion) is the most I can upgrade it to. Apologies if this gets confusing or long winded... I also have a Mac Mini which is running th

  • PERMISSION DENIED IN FTP SERVER

    Hi all, i have XML to XML scenario. i have put xi_input.xml in my system and made  delete mode in sender communication channel. but its not picking and deleting the data, its giving error in FTP serve as "permission denied" and in runtime work bench

  • MobileMe Galleries showing up in Multiple Libraries

    I publish MobileMe galleries from different computers to my MobileMe account and those computers have multiple Aperture Libraries. I have noticed that some of my Aperture Libraries sync my MobileMe galleries that were created on different computers o

  • When I try to email a photo as an attachment the iphoto file will not load

    When I try to email a photo as an attachment the file will not load?