Formula that looks at two different fields

Hi,
I posted this request for help not too long ago but didn't clearly explain what is needed. 
When text is entered into a field (currentgoal1, currentgoal2 - each equaling 1), the formula needs to look at a different field (point1, point 2 - each holds a list box of with points 1, 3, 5, or NA) to see if "NA" was chosen.  If NA was chosen (rather than a point, 1, 3, 5) then the goalcount (total number of populated currentgoal fields) needs to subtract 1 from goalcount.  
currentgoal 1 = 1 point
currentgoal 2 = 1 point
currentgoal 3 = NA
3 goals, 2 points, 1 point field with NA
Since one of the current goals is has a point of NA, the overall count of currentgoals in the goalcount field (total number of populated currentgoal fields) should state 2 with the totalpoints field (all points fields added together) stating 2. 
How can the formula be adjusted to subtract a currentgoal with a chosen point of NA? 
Formula used now for counting current goals:
goalcount = 0
!= null){
= goalcount + 1;
!= null){
= goalcount + 1;
(Table3.Row3.currentgoal3.rawValue!= null){
= goalcount + 1;
if(Table3.Row4.currentgoal4.rawValue!= null){
= goalcount + 1;
if(Table3.Row5.currentgoal5.rawValue!= null){
= goalcount + 1;
if(Table3.Row6.currentgoal6.rawValue!= null){
= goalcount + 1;
if(Table3.Row7.currentgoal7.rawValue!= null){
= goalcount + 1;
if(Table3.Row8.currentgoal8.rawValue!= null){
= goalcount + 1;
if(Table3.Row9.currentgoal9.rawValue!= null){
= goalcount + 1;
if(Table3.Row10.currentgoal10.rawValue!= null){
= goalcount + 1;
if(Table3.Row11.currentgoal11.rawValue!= null){
= goalcount + 1;
if(Table3.Row12.currentgoal12.rawValue!= null){
= goalcount + 1;
if(Table3.Row13.currentgoal13.rawValue!= null){
= goalcount + 1;
if(Table3.Row14.currentgoal14.rawValue!= null){
= goalcount + 1;
if(Table3.Row15.currentgoal15.rawValue!= null){
= goalcount + 1;
= goalcount;
this.rawValuegoalcount
goalcount
goalcount
goalcount
goalcount
goalcount
goalcount
goalcount
goalcount
goalcount
goalcount
goalcount
goalcount
if
goalcount
(Table3.Row2.currentgoal2.rawValue
if
goalcount
(Table3.Row1.currentgoal1.rawValue
if
var

Sorry, I was trying to edit. Is this better?
var 
goalcount = 0
if
(Table3.Row1.currentgoal1.rawValue
!= null){goalcount
= goalcount + 1;}
 if(Table3.Row2.currentgoal2.rawValue!= null){goalcount
= goalcount + 1;}
 if(Table3.Row3.currentgoal3.rawValue!= null){goalcount
= goalcount + 1;}
this.rawValue= goalcount;

Similar Messages

  • Put Together a Formula that Looks at 3 Different Cells

    Hi,
    I’m trying to put together a formula that looks at 3 different cells, and returns the cell that has data in it, and block from putting data in the other selection.
     IF ANY INFORMATION IS COMBINED IN CELL B2,B7,B9. an error will show
    If B18 = 90 PUT 100% IN CELL b1, IF B25 = 40 PUT 100% IN CELL b1, IF B33 = 20 PUT 100% IN CELL b1, 0
    Please see the attachment for more detailed information, please also look at both tabs to help understand
    Thank you for your time and help
    http://files.engineering.com/getfile.aspx?folder=f778a72d-c99c-4e8a-9d48-9e9a13cde35e&file=SCORING.xlsx

    Hi,
    My understanding is that there are three conditions : if B18 = 90, if B25 = 40, if B33 = 20, if one of them is true, B1 will display "100%". If none of them is true, B1 will display "error". Am I right? If yes, please try this
    formula and put it in B1:
    =IF(OR(B18=90,B25=40,B33=20),100%,"error")
    If I misunderstood something, please let me know.
    Regards,
    George Zhao
    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.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Input in one formfield go to two different fields in a MySQL tablerow?

    Hi, I hope you can help me with this.
    How can I have input in one formfield go to two different fields in a MySQL tablerow without having the visitor to type out his input out twice?
    With the second one I would like to use md5.
    Any help is greatly appreciated.

    How can I have input in one formfield go to two different fields in a
    MySQL tablerow without having the visitor to type out his input out
    twice?
    You would need to write your query with the WHERE clause when you update to say "WHERE user=$userid".  That's the most basic way.  The $userid variable would need to come from either a session or a cookie if the user is logged in and you don't want them to enter the information again.  Or if this is from a previous page, the $userid could just be equal to the $_POST variable after sanitization.
    With the second one I would like to use md5.
    That's even simpler.  Before submitting the form, just do $md5_pass = md5($pass);
    http://us.php.net/manual/en/function.md5.php

  • Why not make a phone that can hold two different s...

    Why not make a phone that can hold two different sim cards ?

    11-Jan-2009 10:18 PM
    hermandh wrote:
    Why not make a phone that can hold two different sim cards ?
    I guess time will come...but I don't see the main point of having two sim cards on a phone at the same time?
    Knowing the phone won't let this go on, Can you take up two calls at the same time? Probably not.
    =)

  • Dataload - Evaluate two different fields

    Hi, I need to evaluate two different fields in a dataload rule and apply condition if true. for instance if field 1 is 600 and field 2 is 30 the change field 1 to 650.

    Hi ,
    I don't want to concatenate two fields nor display it in a single field, but I want to diplay two fields 1 below the other...
    ie..If I am using write statement I would prefer,
    loop at itab.
    wirte: /2 itab-abcd,
            /2 itab-1234.
    endloop.
    my output will be:
    abcd
    1234.
    If need to use da same logic in ALV how would I use ?? hope I am little more clear now..
    Please advice
    Karthik.

  • F4 HELP ON TWO DIFFERENT FIELDS OF A SCREEN .

    Hi Experts ,
    I have a screen  in which i have to aply f4 help on two different fields .
    1. Bussiness unit
    2. SAP GL Account .
    I  have applied for  Bussiness unit. by :
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_1013.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_1013.
       PROCESS ON VALUE-REQUEST.
    field B_UNIT MODULE SEARCHHELP_F4.
    But how i can apply on SAP GL Account  ,i have to use one more POV module or i can do it by using the same pov which i used for Bussiness unit.
    Please tell me how i can do with little bit code example.
    Regards,
    Premraj

    Hi,
    use one more FIELD statement and create one more module for GL a/c in same POV event.
    ex
    FIELD <GL a/c fld name> MODULE <Module name>.

  • Same text two different fields on one form

    HI.  I am trying to create button that allows me to copy text from one field to another on the same form.  In other words, at the top of my form i have a field for a "last name".  Under certain conditions i want to copy that "last name" into another field.  the button next to the latter field would ask "is the last name the same?"  if i hit that button then i want the text in the first field to import to the second field.  i think i need to use javascript but i can't write the asp.  help?

    George,
    These are the fields i want to copy.  Does the script look correct?
    // Get the value of the fields
    var v1 = getField("LENDER").valueAsString;
    var v2 = getField("TRUSTEE").valueAsString;
    var v3= getField("BORROWER").valueAsString;
    var v4 = getField("DATED_3").valueAsString;
    var v5 = getField("RECORDED_ 3").valueAsString;
    // Set the values of the other corresponding fields
    getField("LENDER_2").value = v1;
    getField("TRUSTEE_2").value = v2;
    getField("BORROWER_2").value = v3;
    getField("DATED_4").value = v4;
    getField("RECORDED_8").value = v5;

  • How can I conbine saved firefox bookmarks that are on two different computers?

    I have two different computer that have different saved lists of bookmarks. How can they be combined

    As long as you log into the App Store with the same Mac id that was used to purchase FCP X, you are entitled to upgrade to both Macs (we have a Mac Pro and an iMac and FCP 10.01 is on both).
    What happens when you try to upgrade on the second Mac?
    Andy

  • Backing up a system that is on two different volumes

    Here's what I did... I've got an ssd as my startup volume in a mac mini. Through system preferences:Accounts, I right clicked on my user (admin) account, whereby I clicked on the advanced button. Through this, I set up my user folder to be on another drive, connected via Firewire 800.
    Here's my question: How do I back up everything? Usually, I use carbon copy cloner to just back up my main drive. My system is now on two drives and I have to backup my system on the ssd and my user folder on the external. What would you recommend... getting two drives for back up, one for each drive (system and data) or is there something else I'm not thinking of? Would Time Machine address this situation?
    Thanks!

    Fr. Photios Dumont wrote:
    Here's what I did... I've got an ssd as my startup volume in a mac mini. Through system preferences:Accounts, I right clicked on my user (admin) account, whereby I clicked on the advanced button. Through this, I set up my user folder to be on another drive, connected via Firewire 800.
    Here's my question: How do I back up everything? Usually, I use carbon copy cloner to just back up my main drive. My system is now on two drives and I have to backup my system on the ssd and my user folder on the external. What would you recommend... getting two drives for back up, one for each drive (system and data) or is there something else I'm not thinking of? Would Time Machine address this situation?
    Time machine can certainly do it. it can back up all directly attached drives provided they are formatted mac os extended. but CCCloner can do it too. you'll need too different destination drives for this though with CCCloner. back up the internal to one drive and the external to another. they can be two partitions on the same drive, not necesarily two different physical drives.
    Thanks!

  • 'Join' two different field types together into a String - possible in Java?

    Not entirely certain whether this is a straightforward Java or more of a JDBC question:
    I have two fields, one is a String and one an integer. I need to concatenate these fields together to form one String, prior to performing an insert on a table. ie:
    String s = dbRS.getString("partition_name");    //get full string
    String partstr = s.substring(0, 14);      // get first 14 (alpha) characters
    int new_partition_number = max_partition_number + 1;      //create new unique partition number, incremented by 1Now I have
    - a String (partstr - i.e. "TN1234567890_")
    - an integer (i.e. 50)
    (NB. The number has to be an integer because it is subject to calculation elsewhere.)
    I wish to join these together into a String ("TN1234567890_50") and use the field in an inserted row. I've tried using
    String partition_string = new StringBuffer(partstr).append(new_partition_number ).toString();... but this doesn't work.
    I read on a forum that it's impossible to cast an integer to a String in this way in Java, which sounds pretty incredulous from where I am! However my Osborne Java 2 Complete Reference doesn't mention it at all.
    Any assistance will be very gratefully received!
    Thanks.

    wonder why he thinks you can't append an int to a StringBuilder.
    Works fine. Might of course not yield the expected result depending on expectations, but it works just fine.
    But then, the coding conventions reminiscent of C don't bode well.

  • Two files, same pantone color...Onscreen looks like two different colors?

    Recently we have been having this issue at work, We have a line of packaging that uses the same pantone color (375 C). When we go to create a new document and use that same pantone the color onscreen looks more saturated then its predecessor. The only think I can think of is that I've upgrade to the pantone plus system but have since uninstalled and reinstalled the old color books. Both documents are in CMYK color space and both use the same ICC profile. Any thoughts? I know it wont appear this way when printed but we make a lot of PDFs for approvals and the colors come out more saturated in the PDF as well. See sample image below. Thanks for your help!

    Try copying a sample of 375C from  Document A into document B. If the Doc A swatch magically changes color to match the doc B swatch the you have a document with either a modified or old color that uses the same EXACT SAME name. This happens when someone modifies the CMYK values PANTONE 375 C does not change the name of the color. What Illustrator does is the AUTOMATICALLY changes the color mode of Doc A swatch from CMYK to Book color, when you paste an item having the same swatch name. You do not  even get a about to merge color warning. For that reason if I ever tweak a color to get a better laser print, I change the name (eg: PANTONE 375C (Mod)
    Though I feel one of Wade's 2 suggestions may be right, this also can cause color difference.

  • Can a single LOV return values to two different fields?

    Hi,
    I have a scenario where I already have a LOV in the form which is assigned to a Field A. This LOV returns the value to field A. I have another field B which needs the same list of values. I can assign the same LOV to the field B as well, but can the value selected be returned to B?
    I can create another LOV with the same record group, but just wanted to know if its possible to use the same LOV again.
    Thanks

    Hi Karuna,
    You can achieve this by providing a third column in LOV (whose column width can be set to 0 to prevent it from being visible in lov) which can be comma-separated of two fields. This third field can then be assigned to the form field. And a substr() function call can get you both values.
    Hope this helps,
    Anantha
    [http://askanantha.blogspot.com]

  • Can I use one TimeCapsule to backup two Macs that are in two different locations.

    Hello, I have one mac on a recording studio and one macBook pro. Is it possible to use the sametime capsule to backup the Mac in the studio, by bringing the time capsule in the studio, for let say, one week. Then the next week take the time capsule at home to backup my own MacBookPro, and so on... ?
    I know it's a basic question, but I can't find a clear answer...
    Thanks.

    It's possible, but the fact that it is possible does not imply that it would be practical.
    You will have to completely re-configure the Time Capsule each time that you change locations, because you are changing networks.
    It would be much, much easier to simply add a hard drive at home and backup the Mac to that drive.

  • Order By Two Different Fields

    Dear All,
    I have a Table Like this,
    CREATE TABLE test_d (c_id VARCHAR2(10),i_no NUMBER,i_date DATE)
    which contains the data as,
    C_ID     I_NO     I_DATE
    1     2     19-Jan-2007
    1     3     19-Dec-2006
    1     4     19-Nov-2006
    1     5     19-Oct-2006
    1     6     19-Sep-2006
    1     1     19-Feb-2007
    2     6     19-Feb-2007
    2     5     19-Jan-2007
    2     4     19-Dec-2006
    2     3     19-Nov-2006
    2     2     19-Oct-2006
    2     1     19-Sep-2006
    Now, I want to write a Sql to find the records,for which i_no "1" i_date is greater than i_no "2" i_Date and respectively.

    SQL> select * from test_d
      2  /
    C_ID             I_NO I_DATE
    1                   2 19-01-2007 00:00:00
    1                   3 19-12-2006 00:00:00
    1                   4 19-11-2006 00:00:00
    1                   5 19-10-2006 00:00:00
    1                   6 19-09-2006 00:00:00
    1                   1 19-02-2007 00:00:00
    2                   6 19-02-2007 00:00:00
    2                   5 19-01-2007 00:00:00
    2                   4 19-12-2006 00:00:00
    2                   3 19-11-2006 00:00:00
    2                   2 19-10-2006 00:00:00
    2                   1 19-09-2006 00:00:00
    12 rijen zijn geselecteerd.
    SQL> select c_id
      2       , i_no
      3       , i_date
      4    from ( select test_d.*
      5                , max(i_date) over (partition by i_no) max_i_date
      6                , min(i_date) over (partition by i_no) min_i_date
      7             from test_d
      8         )
      9   where max_i_date > min_i_date
    10     and (  (   c_id = 1
    11            and i_date = max_i_date
    12            )
    13         or (   c_id = 2
    14            and i_date = min_i_date
    15            )
    16         )
    17   order by i_no
    18       , c_id
    19  /
    C_ID             I_NO I_DATE
    1                   1 19-02-2007 00:00:00
    2                   1 19-09-2006 00:00:00
    1                   2 19-01-2007 00:00:00
    2                   2 19-10-2006 00:00:00
    1                   3 19-12-2006 00:00:00
    2                   3 19-11-2006 00:00:00
    6 rijen zijn geselecteerd.Regards,
    Rob.

  • Formula that calculate two columns/text

    Good afternoon Everyone,
    I am trying to write a formula (if it exists) that will allow me to look at two different columns of data and calculate 3 pieces of information:
    1. Open items per consultant
    2. Closed items per consultant
    3. Percentage of open items based on total of open and closed items per consultant.
    example: I want it to calculate Stacy has x amount of total open items from the list. Here's part of my spreadsheet. The columns (Open Actions, Closed Actions and % Open Actions) will be a seperate table.
    Item #
    Requested Date
    Main SME
    Target Date
    Status
    Open Actions
    Closed Actions
    % Open Actions
    1
    4/28/2014
    Stacy
    6/27/2014
    Open
    2
    4/28/2014
    Stacy
    6/27/2014
    Open
    3
    4/29/2014
    Stacy
    5/29/2014
    Closed
    4
    4/29/2014
    Stacy
    5/29/2014
    Closed
    5
    4/29/2014
    Stacy
    5/29/2014
    Closed
    6
    4/29/2014
    Stacy
    10/1/2014
    Deferred to Design
    7
    4/29/2014
    Stacy
    5/29/2014
    Closed
    8
    4/29/2014
    Stacy
    5/29/2014
    Closed
    9
    4/29/2014
    Stacy
    5/29/2014
    Closed
    10
    4/29/2014
    Stacy
    5/29/2014
    Closed
    11
    4/29/2014
    Stacy
    5/29/2014
    Closed
    12
    4/29/2014
    Stacy
    6/6/2014
    Closed
    13
    4/29/2014
    Eric
    7/11/2014
    Open
    14
    4/29/2014
    Mukund
    7/11/2014
    Open
    15
    4/29/2014
    Rao
    7/11/2014
    Open
    16
    4/29/2014
    Stacy
    6/27/2014
    Open
    17
    4/29/2014
    Sriram
    5/29/2014
    Closed
    18
    4/29/2014
    Sriram
    5/29/2014
    Closed
    19
    4/29/2014
    Sumit
    6/13/2014
    Open
    Thanks in advance, Cicely

    Open items:
    =COUNTIFS(C:C,"Stacy",E:E,"Open")  
    or use a cell reference with the name "Stacy" - use this if you have a list of names you want to use and want to just copy the formula down to match the list:
    =COUNTIFS(C:C,G2,E:E,"Open") 
    Closed items
    =COUNTIFS(C:C,"Stacy",E:E,"Closed")
    Percentages:
    =Cell1/(Cell1 + Cell2)
    where Cell1 and 2 are the cells with the formulas.

Maybe you are looking for

  • Copy of 601 movement without reference to Delivery

    Hi, I have created new movement type as 901(copy from 601 movement type) in OMJJ. I want to use this 901 movement without refrence to delivery in my project. In Account grouping and update control-Movement indicator L is available. But entry is in fr

  • Help in correcting the query

    Hi, I have below query: select u.v_um_code,v_um_name,count(f.v_fc_code), count(s.n_sl_no), count(distinct s.n_agent_no) from subm_buss_um_master u,subm_buss_fc_master f,submitted_business_raw s where u.v_um_code=f.v_um_code and f.v_fc_code=s.n_agent_

  • Any way to migrates Notes from one iPhone to another

    Is there any way to migrates Notes from one iPhone to another without backup restore?

  • Aperture 3.1.2 untag faces

    Hello everyone. I would like to untag some persons in my Aperture library. Is it possible to remove the "faces" tag from persons? As well as be able to put them in the "skip" list so that they don't appear all the time as unknown faces. People I took

  • How cancel the post in CKMDUVMAT transaction

    Hello all, I need help with an issue about the distribution of inventory differences (CKMDUVMAT transaction). We have executed this transaction, the distribution and post, and we want to delete the post. In this transaction is available just  the dis