Is it possible to leave a field alone in an IF THEN formula?

I'm not sure if I'm asking this right, but I will try as hard as I can to explain it concisely.
B2 = $180.00
C2 = B2*.81
D2 = Checkbox
How do I make an IF THEN telling B2=$0.00 when D2=TRUE without it affecting the value in B2 if D2=FALSE?
Basically, I need the checkbox to insert a specific value ($0.00) into B2 without affecting a value I previously entered into B2 if the checkbox is unclicked...
Is that even possible?  I can get it to zero with no problem, I just can't figure out how to make it so that I can enter a value in a cell with a formula already existing and have it not affected by the IF THEN statement if the checkbox is false... this may be a pipe dream....
Thanks in advance.

Hi JayHawk,
Further to Ian's post...
Cells in a spreadsheet can contain entered values or values that have been calculated by a formula in the cell.If you enter a value into a cell containing a formula, the entered value replaced the formula (permanently).
Ian has shown you a way to make the result (in D2) zero when the box in E2 is checked. You can move that calculation into C2 by combining the formulas in D2 and C2:
C2: =IF(E2,0,B2*$C$1)
Where =B2*$C$1 was the original formula in C2.
See Example 1 below.
Or you can enter the starting value in a separate cell (A2 for Example 2 below) and use the IF function in a formula in B2 to set that value to either A2 or zero, depending on the state of the checkbox in E2:
B2: =IF(E2,0,A2)
C2: =B2*0,81
OR
C2: =B2*$C$1
The $C$1 cell reference pulls the percentage from cell C1 and uses that as the multiplier. The $ operators make that an absolute reference. If the formula is filled into other cells, the reference stays fixed on cell C1.
Regards,
Barry

Similar Messages

  • Is it possible to store a field name in a variable, then assign it a value?

    Good day, everyone!
    I am working on a program in which there are many different amount fields in which an amount may be assigned.  For reusability purposes, I was wondering if it would be possible to write a routine that identifies the target amount field, stores it in a variable that is passed back to the calling program, and then assigns a value to it.  There may be different structures having the same field name; what I'm trying to do is avoid having to code a huge IF or CASE statement for each structure.  For example:
    Structures S1, S2, and S3 have some fields identically named.  Call one of them F1.
    What I'd like to do is call a routine that identifies "F1" as my target field to populate.  Then, upon return, I can assign it to the desired structure.  Kinda like this:
    S1-fieldname = 24.17.  (but fieldname isn't a true field in the structure -- it would hold the value of the true field, "F1").
    I realize this might not even be possible, but given how talented the folks are on this forum, I thought I should at least pose the question.
    As always, points given for all helpful answers, and thank you!!
    Dave

    Ok.  I gave that a shot, but what happens is that my ASSIGN COMPONENT statement doesn't work.  It gets a sy-subrc of 4, and <column> remains unassigned.  The program then abends on the line to assign <a1>-trbtr's value to the field because of <column> being unassigned.
      DATA:
        w_setname         TYPE setleaf-setname,
        w_column_name(20) TYPE c.
        ASSIGN COMPONENT w_column_name OF STRUCTURE wa_expense_ng_report
                      TO <column>.
        <column> = <a1>-trbtr.
    Any thoughts on what I might be doing wrong?

  • Best possible approach to add fields in an FPM WDA application

    Hi guys,
    Our SRM 7 has FPM based WDA views. Extending the customer include by appending fields alone will not work for us as some fields are dropdowns that will perform actions and display/hide other custom fields.
    I can think of the enhancement framework to enhance the views. Since i am knew to WDA and FPM I am thinking there is another easier way to do this.
    What is the best possible approach to fulfil this requirement?
    Regards
    Ali

    Thanks to responses from Chaitanya and Thomas.
    I managed to create additional fields(with action assigned) in the standard shopping cart screens.
    I extended the SRM header structure, added the custom fields of this structure in the header node of the context, and by binding the property of these fileds to the attributes, I don't have to code for the fields enable/disable when the transation is called in edit/create/display mode.
    However, I am still struggling with the dropdown(with action). They remain enabled, even when the data has been saved or the transaction is in display mode. Hints?
    Regards, Ali

  • Is it possible to work with Field Exits in R/3 Enterp. Basis 6.20???

    How could I work with them?

    Yes you can.
    SE 38 --> Prog RSMODPRF
    http://www.sapdevelopment.co.uk/enhance/fexits.htm
    But Have a look at OSS note 29377 as well:
    Symptom
    Problems and questions concerning field exits
    Other terms
    FAQ, Q+A, SMOD/CMOD, field exits
    Reason and Prerequisites
    Note
    Field exits are frozen on the 4.6C maintenance level and are not further developed. This means that the existing functionality is kept with all restrictions (see also the last item below). Existing exits can be further used and are called at runtime as usual.
    Existing exits can be maintained using program RSMODPRF (run the
    program using transaction SE38). Activation of the field exits and
    assignment of the dynpros can also be carried out using program
    RSMODPRF. For this purpose, the program must be started without
    parameters (input fields remain blank).
    If required, new field exits can be created using program
    RSMODPRF (see the program documentation).
    Solution
    1. Field exit was created with CMOD, but is not processed when calling the screen.
    Since the field exit is not processed until PAI, an action must be triggered on the screen (Return, Save, ...).
    Set profile parameter abap/fieldexit to YES and restart the system.
    After activating the function module FIELD_EXIT... and the field exit, leave the transaction on whose screen the field exit is to be executed. The screen is not generated until the transaction is started.
    Do not work on different application servers since there may be some delay before the field exit is activated.
    The profile parameter must be set on all or none of the application servers.
    If the field exit is to only be active on specific screens, check whether you chose the correct program and the correct screen number (take care with subscreens).
    Generate the screen on which the exit should be active using SE51. It is possible that it was not correctly generated. If you want to be sure that all screens that use the data element are regenerated, you can transfer Report rsmodfdg from the correction instructions and start it with SE38. The Report uses the affected data element as the input parameter and regenerates all screens that use the data element.
    Using SE51 -> Field list, check that the screen field does have a reference to a data element. In the name of the field exit, use the name of the data element and not the field name.
    After transport, field exits are marked as active but will not be processed. Tip: First try deactivating the field exit once more and then activate it again.
    2. How is performance affected by setting abap/fieldexit?
    If a screen is generated and the profile parameter is set, a check is run on 2 tables (TDDIR, TDDIRS) to see whether a field exit must be generated for the respective field. In practice, the screen load is not generated until the screen is selected after an update. The user should not notice any difference because screen generation is very fast.
    3. Can you read the contents of other screen fields in the field exit?
    In principle, every field exit can store its value in the global variables of the function group (TOP) and hence make them available to other field exits. Note here that field exits are always called, not only if an entry is made in the field or if the field is empty. In addition, it is not possible to make any assumptions about the order in which the field exits will be called in the future.
    4. How does the field exit behave on step loop fields ?
    After the user has entered data, the field exit is called in PAI as often as there are visible fields in the step loop. The system variable SY-STEPL is incremented each time. If a new value is assigned to the field, it is displayed in the module between LOOP and ENDLOOP. This module is also called once for each visible step loop line.
    5. Can field exits be debugged ?
    No. Field exits must be tested separately in the ABAP/4 Development Workbench. For errors which only occur in the screen environment, it is helpful to write interesting variables to the file system using TRANSFER... . These can then be analysed there.
    6. What can you do if the field contents are no longer transported to ABAP/4?
    Check whether a value is assigned to the field OUTPUT.
    7. When is the field exit called if a conversion exit is attached to the data element?
    The field exit is called after the conversion exit. This means that the INPUT field receives the data in the same format as the ABAP/4 program receives it.
    8. Although a global field exit is inactive, a function module is called which does not exist (for example FIELD_EXIT_PROGRAMM_@). This can lead to an ABAP dump error when function module FIELD_EXIT_<data element name> is called.
    This is an error in the kernel which no longer occurs as of Release 3.0C. As a temporary measure, it is useful to assign a program and a screen which do not exist to the field exit and then activate the field exit.
    Due to performance reasons, the active/inactive indicator is stored in the screenload. This can cause inconsistencies between Source and Load. Generate the affected screen with se51. If you want to be sure that all screens that use the data element are regenerated, you can transfer Report rsmodfdg from the correction instructions and start it with se38. The Report uses the affected data element as the input parameter and regenerates all screens that use the data element.
    9. Field exit is not visible in CMOD, although created.
    If you want to create a field exit for a data element, a function module is proposed with the name FIELD_EXIT_<data_element>. This function module must exist for the field exit to work. If you do not create this function module, but do create one with a suffix, the data element is not displayed in CMOD.
    10. Field exit is not executed although it is active.
    Fields which do not have the 'Input field' attribute usually do not trigger a field exit. The field exit is designed to allow an extended input check. It is therefore only called for input fields - even if they are not ready for input at runtime of the application by LOOP AT SCREEN.
    This rule does not apply, however, if the field is located within a steploop. Here the field will be always activated, even if it is invisible.
    Field exits can only be executed for fields that are directly related to the dictionary. If the relation is indirect, i.e. via an ABAP declaration (<fieldname> LIKE <dictionary element>), no field exit can be executed.
    11. Field exits do not work on selection screens.
    Results from the previous item since ABAP-internal fields and never the original Dictionary fields are used on selection screens.
    12. Field exists do not work on check buttons.
    Field exits are only intended for input fields. As check buttons count as graphical elements, you cannot install field exits on them.
    13. How can all screens that use a data element be generated?
    If you want to be sure that all screens that use a specific data element are regenerated, you can transfer Report rsmodfdg from the correction instructions into a customer report (e.g. zsmodfdg). The Report regenerates all screens. In this way, you can ensure that active field exits refer to screens and that inactive exits cannot be called on any screen. The Report uses the affected data element as the input parameter. The affected data element is in the name of the exit: FIELD_EXIT_<data element name>.
    14. Restriction of usage
    Field exit technology was developed for input fields on dynpros and cannot be used for other/new dynpro elements. This means that this technology does not offer support for the new ScreenPainter elements such as graphical elements (e.g. checkbuttons, radiobuttons, dropdown listboxes), controls (except for table controls which are supported like a step loop), or selection screens.
    Erwan

  • Is there a possibility to run tRFC entries alone in Separate application server

    Please let me know if there is a possibility to run tRFC entries alone in separate application server.
    If yes , kindly let me know how it can be tracked and separated to server as we have immediate idocs also which will run via tRFC.
    Thank you !!

    Hi,
    Thank you for your interesst.
    This internet button key is one of buttons located above the keyboard near the power button. What I have achieved to this moment was to stop it functionality in the system by clearing the entries in the fields Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\17\ShellExecute and entry
    Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\7\Association that was http
    After these changes in registry the behavior of the button was suppressed, the Firefox stopped to start unexpectedly all the time – so in system it works. But the problem is still when I have opened Firefox. Every time when you want to surf in internet – the homepage is activated also unexpectedly. I wrote this post with intention to ask if there is a possibility to switch off the functionality of this quick launch button in Firefox. Because I assume Firefox overrides the system setup – this I have made in registry. I tried with some option changes in about:config but without success. And I know that for older versions of firefox was some option in about:config do disable_quick launch button. But in 10.0.2 I couldn't locate it.
    Thank you
    Regards
    Lukasz

  • Is it possible to add PERNR field to MIGO or MB1A transaction screens?

    Hi,
    Ours is a service industry with @ 10000 employees and we have implemented SAP with MM & HR module. We issue uniforms to all the employees when they join (new Joinee) and again once in January every year as reissuance. We intend to keep size information in employee masters in HR along with station code, designation, department and cost centers.
    At present we are using two fields goods recipient and unloading point to mention employee code and type of issue (new joinee or reissuance). This is because employee code (PERNR) field is not there in MIGO_GI screen or MB1A screen.
    Is it possible to add PERNR field to any of these transaction screens?
    If added then we can fetch the relevant information about issuance of information along with station code, designation, department in Z report.
    If possible, then how it can be done?
    Thanks in advance,
    Satish

    Hi ,
    as i understand we can add new fields in a transaction through user exit /field exit. so please discuss with your ABAP consultant & try to find out all the exit available for MIGO/ MB1A. then you have to decide which one will suit you. here you have to consider some factors like whether you need to enter values in the field or the field needs to fatch any value from any other table & should populate here.
    the ABAPer can then write the code & add your required logic here.
    i am not very good in this subject. just tried to share what ever i knew.
    regards,
    anubhab

  • Is it possible to add a field to OKEK in configuration SCREEN?

    Hello SAPPERS,
    I would appreciate if someone could provide some input on the following issue.
    Is it possible to add a field to Define Account Determination for Internal Goods Movements (OKEK)?
    This table determines the GL accounts assigned when inventory is moved between plants.  Is it possible to add another column to the left hand side?  I would add the receiving plantu2019s VGCd, if possible.  Even better would be a profit center group (1100 for all 11xx profit centers for example).
    I know there are two ways to add field to the DB Table. They are INCLUDE and APPEND structure.
    Is it possible to append a field to table V_T8A00, and display it in config screen OKEK?
    Thanks for any advice

    Hello,
    On a transfer, the accounting treatment is different when the move is within the same division VS when it goes to another division. 
    When plant 1101 ships to plant 1102, we donu2019t want to post to account 360100.  When plant 1101 ships to plant 1301, we do want to post to 360100.  Having the receiving profit center group in the mix will enable this distinction.
    Thanks in advance

  • Is it possible to add text field in condition type in PO?

    Dear Guru,
    Please kindly advice. Is it possible to add text field in condition type?
    I mean I have seen condition type "FRB1" Freight value in the condition detail we can input vendor code.
    So I would like to know is it possible to add text field in condition detail and how to set it up.
    Thank you very much.

    We would like to maintain some text in condition because of we would like to get that text to PO print out and we don't want to do enhancement.
    Ex: Condition Type: ZZZZ  Insurance  
    PO Print out show
    Item No.          Desc                                                  Qty  Unit Price  Amount
    10                 Item description                                  10000   10         100000
    20                 Item description                                  10000   10         100000
    30                 Item description                                  10000   10         100000
                         Insurance <<Description about insurance>>                  9,999
    Edited by: Saiyaman on Oct 1, 2009 1:35 PM
    Edited by: Saiyaman on Oct 1, 2009 1:36 PM

  • Is it possible to pass a field symbol as parameter from any method of view?

    Hi
    Is it possible to pass a field symbol as an importing parameter to teh globally declared attribute??

    While it is true that you can pass field symbols, they must be fully typed at the time you pass them  and they will be passed by value, not by reference. If you want to pass generically typed variables use a data reference (TYPE REF TO) instead.

  • Is it possible to install admin tool alone in windows 7 64 bit software

    hi,
    is it possible to install admin tool alone in windows 7 64 bit software. if so please let me knw where to get the software.thanks in advance

    Aswin,
    Yes, it is possible.
    You may download the Oracle bi 11g client tools here,
    http://www.oracle.com/technetwork/middleware/bi-enterprise-edition/downloads/bus-intelligence-11g-165436.html
    ...you'll simply need the Oracle Business Intelligence Developer Client Tools Installer (11.1.1.5.0)
    Please award points if this was helpful or the correct answer to your question.

  • Is It possible to access checksum field of LIN frame?

    Hi All,
               I am using LabVIEW 8.2 and PCI 3072 LIN card (GÖPEL electronic GmbH) .
    Is it possible to access checksum field of LIN frame? I have to test one LIN driver - LIN conformance test. So I need to access timing of each byte, value of checksum, sync field etc. Anybody please reply
    Regards
    Preejesh M R

    Hi,
    You should have found some examples along with the Drivers provided in the CD which comes along with the card. If not, you can contact Goepel and they can provide them. Which driver APIs are you using for this device? Is there a function for checksum in the API, if not you can create a logic to read the string and convert it to a number and add all the bits together. My first suggestion,  however is to contact Goepel.
    Thanks, 
    National Instruments
    Applications Engineer

  • Possibility of adding new fields to migo transaction

    Is there a possiblity of adding new fields in migo transaction so that we can enter the base price of items in po.
    Also Can we send mail to relevant authorization if there is difference in price entered in the po and the value entered in GR

    Hi, You can use BADI 'MB_MIGO_BADI' for adding custom fields at item as well as header level .
    or Check SAP Note 339448 - MIGO: settings of table control
    2-You can not do any thing related to price in MIGO, since you cannot enter any manual values in MIGO, it will always pull from PO or MIRO (in case of Imports).

  • Anyone know how to update page artwork leaving Form Fields where they were?

    I set up my form fields just the right way and line them up right over where they are supposed to be, but the client makes a change to the artwork that the forms sit on.
    Is there any way to just update the page leaving form fields exactly where they were?
    As far as cutting and pasting to th enew pdf, thats too time consuming and there is no paste in place either. So I have to keep tapping them to back to where I put them the first time, but can’t do that every time not to mention it isn’t lockdown accurate and I have to make sure I have all the forms selected. Perhaps there is at least a Paste in Place for Acrobat plug-in somewhere, that would work.

    Wow, really? I keep using these links to find the answer to my question and the forum keeps bouncing me back to the forum starting page. Anyone have the current link, or is this just the Adobe server freaking out?

  • I have an old mac book pro built in 2006. I just use it in the kitchen to go on the internet--which it does fairly well. It's running OS 10.6.8. Would it be risky to upgrade to the OS 10.7.4 Lion. Or should I leave well enough alone?

    I have an old mac book pro built in 2006. I just use it in the kitchen to go on the internet--which it does fairly well. It's running OS 10.6.8. Would it be risky to upgrade to the OS 10.7.4 Lion. Or should I leave well enough alone? I was hoping that the upgrade would allow me to use an old version of Kindle for Mac. I need to get the machine into 2012 functionality. If I can't do it, no worries.

    The very early 2006 MBPs are limited to Snow Leopard (10.6.8).  If your MBP is a model Identifier 2.1 or 2.2, then you can install Lion (10.7.5).  Note that the transition to Lion might mean that some applications will not be compatible so updates or substitutions would be needed.
    I have a 2006 MBP, Model Identifier 1.2, and it is running Snow Leopard very efficiently.  It is just a bit slower than newer ones, especially in the graphics area.  Otherwise is is a very good machine.
    Ciao.

  • Error in VA01 - Kindly leave the field sales office blank

    Hi all,
    We have a program which creates sales orders. But on and off we are getting an error message saying "Kindly leave the field sales office blank" and sales order is not getting created. As we could not replicate the same in quality to test. Can anybody suggest why this error message occurs.
    Warm Regards,
    Sri

    Hi Sri
    First of all check in XD02 wheather you have maintained any sales office feild or not. If you have maintained then check in the enterprise structure wheather you have done any assignments in  the step sales office to sales area or not
    Regards
    Srinath

Maybe you are looking for