How can I replicate a MS Excel 'IF' statement in a form

Hello
I would like to replicate a microsoft Excel 'if' statement in a Livecycle form.
The excel statement is: =IF(AG36=1,"5",IF(AG36>0.97,4,IF(AG36>0.84,"3",IF(AG36>0.3,"2","1"))))
Which is based around %. The 1 in this statement equals 100%, then the 0.97 would be 97% and so on...
AG36 is a cell in Excel, in my form the related field is called: Table1.Row9.Cell5
Would I use straight forward FormCalc or is this a JavaScript solution?
The form is saved as Adobe 7 Dynamic. I use LC8.
Thank you in advance and for reading.

I have solved this issue; The formular required in LiveCycle to replicate a MS Excel formular of: =IF(AG36=1,"5",IF(AG36>0.97,4,IF(AG36>0.84,"3",IF(AG36>0.3,"2","1"))))
was: (Note 'Objectives_subform.Table1.Row9.Cell5' is equivelant to 'AG36' in Excel)
IF(Objectives_subform.Table1.Row9.Cell5 >= 100, "5", IF(Objectives_subform.Table1.Row9.Cell5 >= 97, "4", IF(Objectives_subform.Table1.Row9.Cell5 >= 84, "3", IF(Objectives_subform.Table1.Row9.Cell5 >= 30, "2", IF(Objectives_subform.Table1.Row9.Cell5 <= 29, "1")))))
Chuffed now, might have the rest of today off now!
Jamie

Similar Messages

  • How can I create an csv/excel file using pl/sql and then sending that file

    How can I create an csv/excel file using pl/sql and then sending that file to a clients site using pl/sql?
    I know how to create the csv/excel file but I can't figure out how I would get it to the clients site.

    968776 wrote:
    How can I create an csv/excel file using pl/sql and then sending that file to a clients site using pl/sql?
    I know how to create the csv/excel file but I can't figure out how I would get it to the clients site.You are trying to do it at a wrong place..
    Whay do you want database (pl/sql) code to do these things?
    Anyhow, you may be interested in :
    {message:id=9360007}
    {message:id=9984244}

  • How can I convert an entire excel workbook to pdf?

    How can I convert an entire excel workbook to pdf?  I have the box in the preferences for converting excel files marked to convert the entire workbook.  I am using Abobe Acrobat 11 Statndard.  This previously worked fine when I was using Adboe Acrobat 10 Statndard.  Now in order to convert the entire workbook I have to open the excel file, Highlight all the workbook tabs and then save the file.  Any ideas?

    In Acrobat click Edit | Preferences | Convert to PDF: select Microsoft Office Excel, then click on Edit Settings.  Make sure that 'Convert entire Excel workbook' is checked.

  • How can I do to get excel and words into my IPAD

    How can I do to keep excel an words documents into my IPAD???

    Documents to Go is one...http://appshopper.com/productivity/documents-to-go%C2%AE-microsoft-word-editing- desktop-sync

  • How can I download Microsoft office excel  for my MacBook Pro Mac OSX version for free. Please help me!

    How can I download Microsoft office excel for my MacBook Pro  for free?

    You can't. Excel is a commercial product sold by Microsoft in an Office "package" and not as a stand-alone product.
    If you need to be able to open and save Excel documents on your Mac, however, you could try the free LibreOffice.
    Clinton

  • How can we replicate UOM from ECC to SRM.

    Hi ,
    In ECC I have assign ISO code against the UOM.
    I have replicate ISO code from ECC to SRM. But unable replicate UOM.
    How can we replicate UOM from ECC to SRM?
    Thanks with regards
    Sachin

    Hi Sachin,
    UOM are uploaded in SRM through object DNL_CUST_BASIS3. It's part of master data replication.
    You should refer following link, it will give you idea how to load mentioned object in SRM:
    MASTER DATA REPLICATION: SETTINGS
    I hope it helps.
    Regards,

  • How can i replicate this images drop shadow exactly

    How can i replicate this images drop shadow exactly from scratch
    http://i52.tinypic.com/2u41t7n.jpg
    If this sort of thing is not covered on this forum please direct me to an off site forum that would help me with this graphics question

    Trial and error, putting both the reference image and your new experimental image up side by side, is the only way I know.  I'd probably use the Info panel as well, to see that I'm getting the same or very similar color numbers from the new drop shadow.
    You can probably use the Magic Wand set to a very low tolerance value to select and copy the light colored object, then make a new document with a white background, paste in the copied object, then start experimenting with drop shadow.  Alternatively you could just redraw a portion of it.
    -Noel

  • How can I get the value of "Warehose" column in a form

    How can I get the value of "Warehouse" column in the form below (I mean what table that contain this value):
    Production Supervisor >> Batches >> (Button) Material Details >> (Button) Line Allocations
    Well, for more clearly! My problem is I must have the Unit Cost of Items, so I've got it in the cm_cmpt_dtl (table), but if I want to, I must create a relation that require 2 filed, they're Item_ID and Whse_Code.
    There's no problem with Item_ID, but Whse_Code seem to be the Mission Impossible (hix, I hate that film!!!!)
    I wonder if It was right to post this topic here. But anyway I just post my question here, hope I could get some help.

    wow, many, many, many.... and many thanks!
    Just add a tiny modify to check out the Batch_type
    doc_id = (select batch_id from gme_batch_header where batch_no='&batch_number' and batch_type = 0)
    Because the batch_no can be duplicated as we also create Batch and Filrm Planned Order.
    Many thanks for your support!
    P/S: Sorry for my terrible English :P

  • How can I set two different emails in only one contact form?

    How can I set two different emails in only one contact form?

    To enter multiple email address with the Contact Form Widgets:
    Click the Options icon for the selected widget, then
    In the Email to box, enter multiple emails by delimiting them with a semi-colon. For example: [email protected];[email protected]
    Cari

  • How can i dispaly an Error Message from Server Side To form

    Hi All,
    How can i dispaly an Error Message from Server Side To form side .
    i try several ways nothing succed.
    i put the error in stack and after call the procedure from form i added
    Qms$Trans_Errors.Display_Messages;
    and because it is an error not informantional error the error screen displayed and enter
    in infinite loop acts like flashing .
    can any one help me please i use C/S Headstart6i and Designer 6i
    thanks alot
    radi

    hi,
    thanks alot lauri.
    yr code work only using information message but in error message its still the same .
    the error window still flash and enter in infinite loop of executeing the same triggers.
    thanks again
    radi

  • How can i view all my messages i posted in this form?

    hello,
    how can i view all my messages i posted in this form?
    i can view only the recent message i sent.
    is thier any way to view all my message i posted
    thaks
    daya

    Do a forum Serach for your screen name.

  • How can I edit /update windows registry through Dev. 6i Form?

    I want to manipulate windows registry through dev 6i form, i.e. I want to create a new key and assign value to it or want to retrieve a value from registry key, how can I edit /update windows registry through Dev. 6i Form?
    Sincerely,
    Farhan Mazhar

    I dont remeber the exact name but there is a built in package to do that. have a look at the built in packages node in the navigator tree. (Get_var?).

  • How can I avoid opening the several instances of the same form?

    Hi Friends,
    I have a MDI form with a menu. When open a form by clicking the menu twice, it is opening two instances of the same form. It is eating up all resources of my memory.
    How can I avoid opening the multiple instances of the same form? I want the activate the form which is already open instead of opening the new instance of the same.
    Anybody knows solution please help me.
    Thanks
    Gopinath Kona

    Hi,
    U must be using the built-in OPEN_FORM in your code. Instead of that, check it using the following code....
    IF ID_NULL(FIND_FORM('form_name')) THEN
    OPEN_FORM('form_name with the path');
    ELSE
    GO_FORM('form_name'); --shifts the control into the form which is already open.
    END IF;
    hope it helps...
    null

  • How can i print the serial no: and total in smart form?

    how can i print the serial no: and total in smart form?
    i have two fields Quantity and Price; so i want to display the total for each item and
    atlast the grand total. also the serial no: for each line item.
    how it is possible?

    Hi
    You can do it by two ways
    By making table node or by making simple loop node
    ex
    loop node
          command line node
                  total = total  + itab-quantity.
    text node
    &total&
    Regards
    Aditya

  • How can I add a turning number to a Flash web form?

    How can I add a turning number to a Flash web form?

    what's a "turning number"?

Maybe you are looking for

  • Use of BAdi UC_CTR_XRPROC in Currency Translation

    Hi All, Has anyone experience of the BAdi for determining Exchange Rate in BCS? In BCS you have the option of customising the Procedure for Exchange Rate Determination by using a Badi, my current client has configured a custom one but I can't view th

  • How can I create editable forms on an iPad?

    I would like to be able to have a form on my iPad (do not care what format it is in) that I can fill in fields and then print out or email. I do not need to save the data entered into the data fields on the form.

  • Photostream no longer working on my mid 2001 iMac on iPhoto

    I bought my iMac back in June and have been using iPhoto and photostream without any problems until last week.  My iPhoto for some reason started freezing and crashing so I deleted the app and rebuilt my library from scratch using time capsule. The f

  • Centro fading speaker output level

    I've had my AT&T Centro for about 6 weeks and I'm having a weird problem with the output sound level for all notifications (Ring Tones, Phone Alerts, Calendar, Messaging, and System).  When I got the Centro the output sound level was solid and loud. 

  • How can i find something that i have accidently replaced and saved. Thanks

    i accidently replace a paper i was working on with another on pages, can i still retrieve the old paper if i replaced it and did not save it?