Using  conditional IF

I have to make a form that can add or rest according to these numbers<br />example.<br /><br />  a  ;  b  = new value<br />if a<b  make  a + b<br />if a> b  make a - b<br /><br />or something anything to help me do this a dont want to use microsft excel

I designed a template with three fields: FldA, FldB and FldC.
FldA and FldB display the input values. FldC displays the result.
All fields are formatted as numeric.
FldA is formatted as Global.
Following is the JfPreamble I used to produce the correct result in FldC.
^inline on
^comment
^comment FldA is defined as a global field on the template design
^comment
^define group:FldB!Format @(if("@_$_.">"@global:FldA.","@_$_.\groupAddAandB","@_$_.\groupSubtractBfromA")).
^define group:AddAandB \defineresolveglobal:FldC,@(@_$_. + @global:FldA.).
^define group:SubtractBfromA \defineresolveglobal:FldC,@(@global:FldA. - @_$_.).
If the current value of FldB greater than value of FldA then
display the value of FldB and add A and B
else
display the value of FldB and subtract B from A.

Similar Messages

  • How do i use conditional formatting to edit the color of other selected other cells?

    I have been playing around with the conditional formatting feature of Numbers, I have figured out how to change font and background color of the cell i am working with.
    However what i am looking to do is apply a background color formatting to another cell (i.e. F2) if conditions are met in (B2).
    the end game is this,
    I want to make a column of check boxes, and using contional formating i want adject cells to change color (I.e. the example above: if (B2) is a check box, then when unchecked the reffered Cell (F2) does nothing, but when check the color of (F2) changes)
    I can make this happen with Logic equations, the give (i.e. F2) some letter or number value, then using conditional formats i can have the color change. but this leaves that particular cell useless to me (i.e. F2) I am not free to enter or edit text in that cell. (i.e. =IF(B2=TRUE,"Paid","Due") ----> then add a conditional statement that chages color when the value is either "Paid" or "Due")
    How do i have F2 change color, when B2 is checked and still retain the ability to enter information (or potential have another formula) in F2? (The Cell is not used up by "Paid" or  "Due" it is editable just like any other cell)
    is there anyway to change cell characteristics like font, color, and background color inside a formula, because in that way i would be able build it manually
    i tried using the formula editor inside the conditional format pane, but the only infor it will allow me to retain is one partictular cell. i cannot add modifiers like "+" or "=" or anything else. what is that space used for then?
    thanks for anyones help

    MC,
    You can do what you want in Numbers. It requires an auxiliary column and it's a bit tedious to set up because conditional formatting by comparison to another cell isn't relative, so each cell has to be programmed individually with no option to Paste or Fill to other cells in a range.
    For explanation purposes, let's say your checkbox is A2, your cell to be conditionally formatted is B2, and your auxiliary cell is  C2. To have the format of B2 determined by the checkbox status in A2, you will:
    1. In C2 write: =IF(A, B, " ") The " " is any string or value that you don't expect to encounter in B normally, and using the space character means you don't have to worry about having it visible if C is in View.
    2. In B2 use Conditional Format: "Equal To" cell C2 and set your text and fill attributes to be used when the box in A is checked.
    That's it. Do that for every cell in the range.
    Jerry

  • Can you transfer data from one numbers spreadsheet to another using conditional formatting?

    I have a tracker document set up for client payments and when I indicate payment received, it  flags green using conditional formatting. However I would like these to automatically transfer to another sheet - without having to cut and paste the associated data to the other sheet. Can I set up conditional formatting to do this? If not how could I get and automatic transfer?
    thanks forum.

    Hi Kangers,
    There are a number of ways to transfer data from one table to the next. It should not be hard to set up.
    Conditional formatting would not be involved it moving the data but you could set it up to flag the data in the new table.
    Without knowing what your tables and data look like it is hard to propose a solution.
    quinn

  • How to determine the process alias using condition technique in Transportation & Shipment Scheudling?

    Dear All,
    I am trying to use the functionality Transportation and Shipment Scheduling in GATP.
    I would like to know that how the sytem determines the process alias using condition technique in Transportation & Shipment Scheudling?
    As the Transportation & Shipment Scheduling functionality can be extended further by using the configurable process to overcome the complex scenario. But it needs that process alias should not be determined by using the condition technique.
    Moreover, is it possible to use both functionality simultaneously in the system. i.e. Transportation and Shipment Scheduling using condition technique and Transportation and Shipment Scheduling using configurable process?
    Thanks & Regards
    Piyush Ranpura

    Hi Piyush,
    I have added a small overview in the SCN WIKI which shows you the two ways for the process alias determination and also here as attachment:
    http://wiki.sdn.sap.com/wiki/display/SCM/Time+and+Scheduling+Functions
    Yes, depending on your customizing you can use both scheduling methods in parallel. e.g. you activate CPS just for a specific ITEM category or product and/or customer and/or....what ever you want.
    best regards,
    Michael

  • How to use conditional success Screen in SMP2.3 HWC?

    Hi All,
      Do anybody have reference for conditional success screen,
    I gone through this link SUP 2.2 Conditional Navigation Issue
    but i didnt able to do how to use conditional success Screen.
    If anybody have reference please provide me.
    Regards,
    Sravanya

    That works. Follow the below steps.
    1. Create a key on the selection screen: click on the selection screen>properties>keys>Add a key,ex. "value".
    2. MenuItem>In the properties of menu item>Parameter mappings>map the key with the key created in last step.ie. "value" instead of the key of the choice box.
    3. Get the value selected from choicebox:
    function customValidateScreen(screenKey, values) {
      if(screenKey === "Selection")
      var form = document.forms[screenKey + "Form"];
      if(form){
      SelectionValue = form.ChoiceboxKey.value;
    //ChoiceboxKey is the key of choicebox.
    //Declare a global value "SelectionValue "
    3. Map PK from program:
    customBeforeSubmit = function(screenKey, actionName, dataMessageToSend) {
      if(screenKey =="Selection" && actionName=="GoToChart" ){
      var myNewValue2 = new MessageValue();
      myNewValue2.setKey("Value");// Key created in the screen "Selection"
      myNewValue2.setValue(""+SelectionValue );
      myNewValue2.setType("TEXT");
      var mvc = dataMessageToSend.getValues();
      if( mvc ) {
      mvc.add( myNewValue1.getKey(), myNewValue1 );
    // So in the above way the data from choice box is send to online request.
    To do the conditional navigation you have to use the global value created,ex.
    hwc.customConditionalNavigation = function(currentScreenKey, actionKeyName, defaultNextScreen, conditionName, incomingDataMessage) {
      if( conditionName === 'Data'&& SelectionValue == "PieChart") {
             return false;
         }else{
        return true;
    Hope you understand how I did this.
    Midhun VP

  • Transportation time using condition technique!!

    Hi All,
    Can anyone tell how transportation time is calculated using condition technique (APO)?  we have defined following in access sequence for scheduling
    Plant
    Destination country
    Spd trans. zone
    Shipping Conditions
    Weight group
    Factory Calendar ID
    Now if no transportation lane is defined between plant A and ship to party B. Then how system is going to calculate the delivery date? where do we define transportation time between A and B or how it is getting calculated?

    HI,
    You can define a specific transporation duration in the condition technique per chracteristic (e.g. Shipto, plant, etc.).
    Create new condtion records via TA /sapCND/AU11. Create a entry for TRAN and choose a access sequence. There you define a duration e.g. for a ship-to, etc.
    Three options to find a transporation duration:
    1. Directly from the transportation lane  (TA /SAPAPO/SCC_TL1)
    2. Estimated by the system if the transporation lane does not contain any duration (except if the Fix-Duration Indicator was set, note 1464309)
    (The system calculates the transportation time based on the distance between the start and destination location and the average speed of the means of transport used.)
    3. from the contion technique (TA /SAPCND/AU11)
    (A Transportation calendar can be defined just via scheduling userexit 002 for the condition technique.)
    Further details in the SAP Help Docu:
    http://help.sap.com/saphelp_scm50/helpdata/en/3a/92e217b3f54a5eae7a4ac8a99e5e87/content.htm
    Hope it helps.
    regards,
    Michael
    Edited by: Michael Thinschmidt on Aug 31, 2010 3:41 PM

  • How to suppress row when one column has zero  using condition

    Hi Experts,
    How do I suppress row when one column has zero.
    I read it is possible using conditions.
    How ?
    Thankyou.

    Check this
    1. for Query Properties, go to the Display tab and Supress Zeros is "Active"
    2. select the Structure, right-click, select Properties, then click "on" Also Use Zero Suppression for Structure Elements
    http://help.sap.com/saphelp_nw04/helpdata/en/a4/dd3841d132d92be10000000a1550b0/frameset.htm
    Hope it Helps
    Chetan
    @CP..

  • Can I use conditional build tags in CSS files?

    I am using RoboHelp X5.0.2 and building CHM files.
    I use conditional build tags to output different Help files
    for the different products we have that all have similarities.
    In the past I have setup the CSS file to show headers, links
    etc in the color scheme we use to keep the look and feel of our
    branding. One of the new products uses a different branding color
    scheme.
    I was wondering if there is a way I can use conditional build
    tags in the CSS file so that when I build one type of help it uses
    header in one color and when I build another help it uses a
    different header color. Does anyone know how to do this? If it is
    not possible in my current version, is it possible in the latest
    version of Robohelp?

    [WORKAROUND ALERT IN X502]
    For .chm output, you could:
    1. In the Topics pane, select all the topics (click on one
    topic and press Ctrl+A).
    2. Right click in the highlighted area and select Properties.
    3. In the Appearance tab, select the different style sheet.
    4. Click Save.
    5. Generate the .chm file.
    6. (optional) Repeat steps 1-4 to revert to previous style
    sheet setting.
    Good luck,
    Leon

  • Chaining iBots without using Conditional Requests?

    I am using iBots with delivery content and a java script to export this to excel files. Now I want to chain these iBots.
    If I use the first iBot to run the 2nd iBot I need to have a conditional request. But these iBots don't have conditional requests.
    Using conditional requests equal to the delivery content would be requesting the same report twice. The reports are large and time a lot of time.
    So how can I create a chain without requesting all the reports two times?

    Hi,
    May I know how you configured the Conditional Formatting in detail? Especially what conditions you selected.
    As for the question, there is no build-in feature in Outlook to realize your request, the only method I can think of is to use VBA.
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Advanced Search using conditional & logical operators+ sharepoint 2010

    Hi Team,
    We have an requirement something like this. we have to search values from Custom SharePoint List using Conditional & Logical Operators in SharePoint 2010. how can i achieve this ? if some one has worked on something like this, can you please share the
    details to my email id ([email protected]
    Thanks in Advance.
    Cheers, San

    Hi Santhosh,
    If you have only one list, then you can use CAML query to perform search in that list. You can write code to generate dynamic CAML based on selection in the filter.
    If have to perform the search function on multiple list then you can use Search object model and create dynamic query and execute it using Search OM.
    http://msdn.microsoft.com/en-us/library/office/dn423226(v=office.15).aspx
    Best Regards,
    Brij K

  • Highlight text using conditional text

    Hi,
         I need to highlight text using conditional text in InDesign.  I can highlight text using the below code.
    var myDoc = app.activeDocument;
    colorToHighlig = myDoc.conditions.add ({name:"Yellow",indicatorMethod:ConditionIndicatorMethod.USE_HIGHLIGHT, indicatorColor:UIColors.YELLOW});
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.changeGrepPreferences.appliedConditions = [colorToHighlig] ;
    app.findGrepPreferences.findWhat = "chapter";
    myDoc.changeGrep();
    But I need to set Indicator to "Show and Print" coz while generation pdf with indicator mode "show", highlights are missing in PDF.  I can retain those highlights with the indicator mode "Show and Print". Dono how to set it..
    If anyone know, pls help me.
    Thanks in advance,
    Sudha K

    Hi,
    it seems, that this one is not a property of the condition, it is a preference:
    myDoc.conditionalTextPreferences.showConditionIndicators = ConditionIndicatorMode.SHOW_AND_PRINT_INDICATORS;

  • Using conditional formattign in excel

    Hello,
    I am trying to use conditional formatting on a cell (let's call it H1) that already has a formula in it. The cell is an average of 7 other cells (A1-G1). I want to highlight H1 only when 3 of the 7 cells (A1-G1) are filled. Basically I don't want to create an average in H1 if it is creating an average of only 3 cells and I want an easy indication of those cells where there is text in only 3 of the 7 cells!
    Can someone help me out?
    Thanks,
    Megan

    What app are you talking about?  If it is MS Excel, you need to go to
    http://answers.microsoft.com/en-us/mac/forum/macexcel

  • Can I use conditional formatting in OWA?

    Can I use conditional forwarding for emails in OWA. I would like to set up rules in OWA that will allow certain messages to change their display upon receipt.

    Hi,
    Based on my knowledge, I'm afraid that we can't do it via OWA. You need to setup the conditional formatting on Outlook. Here is the steps for your reference.
    On the View tab, in the Current View group, click View Settings, and then click Conditional Formatting. Click Add to create a conditional formatting rule.
    For more information, here is a blog for your reference.
    Conditional Formatting: Highlight your most important mails
    http://blogs.office.com/2012/05/10/conditional-formatting-highlight-your-most-important-mails/
    Hope it helps.
    Best regards,
    Amy
    Amy Wang
    TechNet Community Support

  • Pareto without using Condition in Query Designer

    Hi,
    Is there any way we can achieve the Pareto effect without using condition?
    This is because Condition is not supported by OLAP BAPI via MDX interface.
    Can someone helps?
    Thanks.

    Hi Shweta...
    Plz find the below links this may help ful to solve the issue or can get much info.......
    http://help.sap.com/saphelp_nw70/helpdata/EN/80/3424429e905033e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/0d/af12403dbedd5fe10000000a155106/frameset.htm
    Regards
    Sudheer

  • Help regarding Scheduling date calculation in APO using Condition Technique

    Hi Team,
               The below is the issue I am facing. Could you please help me regarding this?
    For a material MAT1, a stock of 15 is available today i.e. on 15/05/2014 and a Planned Order of 35 is available on 01/08/2014.  I have created a Sales Order of 50 today i.e. 15/05/2014 for this material with a RDD of 20/05/2014. I have maintained the LEAD and the TRAN times as 5 days and 10 days respectively. These are maintained for a particular Route. LOAD, PICK, and UNLD are 0. In the Location master, I haven't defined any Calendar. So, it has to consider all days as working without any holidays.
    For the given RDD of 20/05/2014, system performs the backward scheduling and arrives at a past date of 05/05/2014(20/05/2014-5D-10D) for the MBDAT. Since this date is in the past, the system should set the MBDAT to the current system date i.e. 15/05/2014. Since PICK is 0, the Loading Date also should be 15/05/2014. Since LOAD is 0, the Goods Issue Date also should be 15/05/2014.  Since LEAD and TRAN are 5D and 10D, the Delivery Date should be 15/05/2014+5D+10D=30/05/2014.
    But, in the Sales Order, I am getting a different date. For MBDAT, Loading Date, and Goods Issue date, the dates are 05/07/2014. Transportation Planning Date is 25/06/2014 and Delivery Date is 01.08.2014. During the GATP check, I am getting only a partial confirmation of 15 and the planned order of 35 is not being considered.
    The material is APO relevant and the Scheduling using Condition Technique is being used.
    Kindly help me regarding this and let me know if I am missing anything here.
    Thanks in advance for the help.
    Thanks & Regards,
    Srikanth.

    Hello Srikanth,
    Let us differentiate the problem into two pieces.
    1) Incorrect Scheduling
    2) Future receipts not being considered.
    For the second problem, future reciepts not being considered, which is on 01/08/2014, please check if your system is allowing you to go further and do the confirmation. How long is your Checking Horizon ? Is your checking horizon configured enough to go ahead and pick this reciept element to give the confirmation by creating a second schedule line ?
    For the first problem, LEAD to the best of my knowledge is transportation planning time which means, the MBDAT would be shifted to the extent of the LEAD time to be able to manage the truck though the stock is available today. However, the dates mentioned by you seems to be completely different. Hence, I suggest you to take the ATP check on this line item, go to Delivery proposal screen and click on the graphical representation of the Scheduling results. There you should be able to understand how the calculation is actually happening. Perhaps, there are some calendars that are being used which you'd not be knowing ? May be the condition record has different times maintained in the condition table ? Check the condition table that the system is picking up ? May be you have maintained the route and transportation scheduling in "X" condition table, however system was able to identify a different detailed level table which satisfied the condition and due to which system got the scheduling calculated accordingly ?
    May be it is a good idea to investigate this way. Hope this helps.
    Babu Kilari

  • Sorting by Characteristic Result Rows using Condition Top 100%

    I need to sort characteristic by results and use <<Top 100%>> condition to do it.
    I got three characteristics in my query:
    1. Organization
    2. Date
    3. Planning Level
    And three key figures
    1. Planned amount
    2. Actual amount
    3. Deviation % (Actual/Planned) (calculated by using amounts, Date and Planning Level)
    I need to know best palnning organisations by sorting them on deviation results on Organisation Level.
    Also I need Date  and planning Level characteristics involved in query, because they taken in  Deviation formula.
    Then I use condition (Top 100%) by Organization, the query doesn't sort Organisations by Deviation properly Any ideas why? I tried to add one extra characteristic in query on top of Organisation and use it in condition but it doesn't work either.

    I guess u didn't understand me.
    I got three characteristics in my query:
    1. Organization
    2. Date
    3. Planning Level
    And three key figures
    1. Planned amount
    2. Actual amount
    3. Deviation % (Actual/Planned) (calculated)
    I need to know best planning organizations. So I need sort Organization by
    Also I need Date  and planning Level characteristics involved in query, because they taken in  Deviation formula.
    So, then I use condition (Top 100%) by Organization the query doesn't sort Organisations by Deviation properly

Maybe you are looking for

  • Deleted paid apps not showing up under purchased tab in iPad App Store?

    Over the years I bought some apps from the App Store from a developer called Apalon. Pimp Your Screen - Your Device Never Looked Cooler, v1.6 (4+) Write a Review Report a Problem Apalon App $0.99 Nostalgio, v1.4 (4+) Write a Review Report a Problem A

  • Finder screen corrupted

    I had an application hang during shutdown, and performed a force quit on it. On rebooting, 'finder' is corrupted, the scroll bar is in the wrong place, controls are missing, the files are not displayed (unless one clicks in the file selection window,

  • Problems getting AU-Plugins to work in GB

    Hi all I have now scanned through all topics in the forums and yet not found an answer to my question. I just bought the EastWest package with sounds and want to be able to use them in the Garageband. I have checked HD - Library - Audio - Plug Ins -

  • Quicktime X will not play some Apple Mpeg 4 Movie Files

    Hi, Having a strange issue.  Quicktime X will not play some of my Apple Mpeg 4 Movie files anymore. The files open fine in Quicktime 7, but not Quicktime X.  I receive the error message "The document could not be opened. A required Codec is not avail

  • SP 2010 Install - DNS

    Hello SP Gurus, I am preparing for a SP2010 Enterprise deployment and I am unclear on how a DNS server might tie in. When I installed SP farm in the past I simply named the top level with no consideration for the naming scheme and how it would relate