If..then formula requiring numeric values

Post Author: scd07
CA Forum: Formula
I have the need to create a formula that will analyze one field in order to determine the value of another field.  Below is a formula that follows the correct logic, but as it is a Boolean formula, it returns a  True/False answer, instead of the correct (numeric) data.  I do not know how to rephrase the formula that will return the numeric value.
if {TLORDER.BILL_NUMBER} = previous ({TLORDER.BILL_NUMBER}) then {TLORDER.TOTAL_CHARGES} = 0 else {TLORDER.TOTAL_CHARGES} = {TLORDER.TOTAL_CHARGES}
I appreciate any help!  Thank you!

Post Author: scd07
CA Forum: Formula
Ok, this formula also works well, and I can now go in and create a Running total.  But again, I barely know what I am doing!  Here is what I put in the formula:
Whileprintingrecords;Currencyvar Amount;
if {LEGSUM.LS_TRIP_NUMBER}={LEGSUM.LS_TRIP_NUMBER} then Amount := Amount + {@Total Charges}
This is providing a running total of the Last entry for each group.  It is not totaling All the records within the group.  I certainly appreciate your help with this.  I am actually a network person being impressed into reporting duty, and I am definitely experiencing "Trial by fire".  Thanks!
Sara

Similar Messages

  • How to configure visa to adquire dat from serial port and then converted to numeric value from a home embedded device

    I already stablish communication with my serial port using VISA, selecting COM1 as the resoure name.
    After that, I tried to read the data from the port (as we know the data was in string format )but I need to convert the data to numeric value to hadle it (no arrays).
    Another main thing is that I'm develoing a new based Embedded design and tthe info that will trhow out from the device to the PC is binary.
    How can I solved the problem, and if I want to make bidirectional communication with my system how can I do it? The VISA intructions as *IDN? and so forthetc can be recognize by the external system if the COM1 port is recognized by NI Max as ADSRL1::I
    NSTR1?

    Hello,
    For an example of bidirectional serial communication in LabVIEW, please see the shipping example LabVIEW <-> Serial.vi. This can be found from LabVIEW by going to Help >> Find Examples. From the example finder, select Hardware Input and Output >> Serial >> LabVIEW <-> Serial.vi.
    Once you are able to read the string data in, you can use the VIs in the String/Number Conversion palette to convert the data to numeric format. To access these, right-click on the block diagram >> All Functions >> String >> String/Number Conversion.
    Let me know if this does not help.
    Regards,
    Sean C.
    Applications Engineer
    National Instruments

  • XDOFX if-then-else command testing of space and numeric value

    Hi,
    I have the following xdofx statement in a RTF template to display the value of one variable or another, depending on the value it contains: (the variable can contains both space or null or a numeric value).
    <?xdofx: If Amount_1 = " then 'display amount_2' else If Amount_1 = 0 then 'display amount_2' else 'display Amount_1' end if?>
    Result: When Amount_1 variable contains space or null value, then this If-then-else statement works. But When Amount_1 contains a number such as 0, it gives error "SBL-OMS-00203" (when it's checked against [=" ] in If condition). What's causing this? Is XDOFX being confused to test a variable that supposedly a character string (default by testing against [ =" ]), but find a number in the variable?
    Any work around solution? (So [=" ] and [=0 ] can both be specified against a variable in an if-then-else statement in XDOFX).
    Thanks a lot.
    A.

    try
    <?xdofx:if (Amount_1 =’’) then ‘display amount_2’ else if (Amount_1 =’0’) then ‘display amount_2’ else ‘display Amount_1’ end if?>or
    <?xdofx:if (Amount_1 =’’) then ‘display amount_2’ else if (to_number(Amount_1) =0) then ‘display amount_2’ else ‘display Amount_1’ end if?>

  • How do I copy/paste full numerical-only account strings into the Projects WebADI template when the account segment fields in the template require use of the dropdown because they're formatted as alpha-numeric values?

    How do I copy/paste full numerical-only account strings into the Projects WebADI template when the account segment fields in the template require use of the dropdown because they're formatted as alpha-numeric values? I'm using the Integrator named "Projects - Transaction Import" and a custom Layout created based on the seeded Layout named "Transaction Import - Accounted". Do I need to somehow change my Layout to make the Document accept numerical values instead of requiring alpha-numeric values? I need to be able to populate the Document with a large amount of transactions and cannot feasibly go through every transaction to add the alpha-valued name of the account segment to every segment that requires it. The segments in particular causing the problem are "Expnd Type" and "Organization Name" which are both alpha-numeric and as such contain the segment number and name; I need to be able to only have to enter the Natural Account Number (6-digit number only) and the Organization Number (5-digit number only).

    How do I copy/paste full numerical-only account strings into the Projects WebADI template when the account segment fields in the template require use of the dropdown because they're formatted as alpha-numeric values? I'm using the Integrator named "Projects - Transaction Import" and a custom Layout created based on the seeded Layout named "Transaction Import - Accounted". Do I need to somehow change my Layout to make the Document accept numerical values instead of requiring alpha-numeric values? I need to be able to populate the Document with a large amount of transactions and cannot feasibly go through every transaction to add the alpha-valued name of the account segment to every segment that requires it. The segments in particular causing the problem are "Expnd Type" and "Organization Name" which are both alpha-numeric and as such contain the segment number and name; I need to be able to only have to enter the Natural Account Number (6-digit number only) and the Organization Number (5-digit number only).

  • How do I assign a numerical value to text cells in cartesian products?

    Hi, this is more of a two part question.
    Question 1
    I need to be able to assign numerical values (Table Value £ of set up) to text cells (Set Up).
    1. The table "Combinations" then uses the formula
    IF($A3≤Information::$B$8, MOD(INT((ROW(cell)−3)÷PRODUCT(C$1:$G$1)), B$1), "")
    to take info from the "Information" table and create all possible permutations of "Set Up"
    2."List" is the printed list of "Combinations"
    3."Output of list" concatenates the data from "List".
    Question 2
    4. How do I print out the total numerical value of the concatenated string of "Output of List" into Output (£) of List"?

    >
    When posting code or code snippets. HTML/XML or input/output, please use the code tags. The code tags help retain the indentation and formatting of the sample. To use the code tags, select the sample and click the CODE button.
    Here is how the first code snippet would have appeared in code tags.
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
    float num1, num2, num3, result;
    num1 = Float.valueOf(jRadioButton1.getMnemonic());
    num2 = Float.valueOf(jRadioButton2.getMnemonic());
    num3 = Float.valueOf(jRadioButton3.getMnemonic());
    result = num1+num2+num3;
    jTextField1.setText(String.valueOf(result));And while I'm on the subject of retaining the indentation of the original sample, please use one of the two common conventions for indenting code blocks. E.G.
    Convention 1:
    class TheClass {
        TheClass() {
    }Convention 2:
    class TheClass
        TheClass()
    }

  • How do I apply a numerical value to a word in numbers

    For example - decision maker = .75

    What is the relationship between the 'word' and the numerical value?
    If it's a mathematical relationship, your use a formula.
    If it's arbitrary, then you need a table showing the value associates with each word (or in this case, phrase).
    Formula in column B of Main:
    B2: =VLOOKUP(A,Lookup :: A:B,2)
    Filled down to B10.
    To avoid the error messages in B6 to B10, Enclose the formula in an error trap as below:
    B2: =IFERROR(VLOOKUP(A,Lookup :: A:B,2),"not found")
    This will replace the error triangle with the words 'not found'.
    Regards,
    Barry

  • Bug in sort of numeric values in ( title and album ) string.

    The Bug in the sort-function of the iPod results in mixed up track list.
    An album with more then 9 tracks will be sorted in the wrong way, when only title or filename or album field is just to give a track a number. The play order is 1, 10, 11, 12, 13, 2, 3 , 4 , 5, 6.... instead of the correct order 1,2,3,4,5,6...10,11, 12...
    For example: After playing the track named "The Beatles - Yellow Submarine - 1 - Yellow Submarine" the ipod will play "The Beatles - Yellow Submarine - 10 - Baby, You´re A Rich Man" instead of "The Beatles - Yellow Submarine - 2 - Hey Bulldog."
    The programmer have to search the string for numbers and join all numeric values to a single number.
    Example: Sample data :abc123. is "a" a number? no. is "b" a number no. is "c" a number no. is "1" a number? yes. store. is "2" a number? yes. join to "1". (now we have "12"). is "3" a number? yes. join to "12". (Now we have "123") -> EOL
    Is "123" largen than "99"? yes! is "123" larger than 124. no!
    Thats it. In perl you need 1 line of sourcecode, in c and c++ this can be done in 10 lines. In java (there a objects for this type of sort).
    And every user will be happy and nobody has to do the 01, 02, 03 workaround or reimport their audiobooks.
    Alternativly Apple should thing about storing the original filename in the ID3 tag or itunes database. This would make sorting the files without id3 tags (believe me or not, there are many people using mp3 for 10 years and have no id3 tags in there mp3-library) in itunes possible. (there is a god free tagger for mac os but no for windows.)
    A company like Apple should have the ability to correct the error / bug in the iPod-firmware (have the same issue in classic and iphone) or itunes-softwar.
    This is a wellknown and very common error done by newbie programmers or people who have not read the documentation of the software-libraries.

    I still have an H140 in the cupboard. As I recall that needs leading zeros on filenames to sort properly. Since both WMP & iTunes include leading zeros it was never really an issue. THE Rename should be able to extract the track numbers from part of the filename and is also able to generate counters, along with the usual functions of setting tag fields from part of the file and/or folder name. Unfortuanetly THE Rename is still on the complicated side - I suspect there would be no easy way to lump together the variety of options that it has while keeping it very simple.
    Once you've used an external program to adjust the tags you can make iTunes re-read them just by selecting the group of files in question, using CRTL-I to "Get Info." and then clicking OK +without making any changes+. iTunes will recheck it's database against any values in the tag and update as required. Given the lack of existing tags I would imagine that you don't let iTunes reorganise your music at the moment and would suggest you keep things that way at least until you are sure that all the tags have been correctly applied and you have a suitable backup. I stick to a Artist/Album/## Track structure which I don't let iTunes manage so that I can always recover details from the filesnames if I should ever accidentally edit more tracks than I intend.
    tt2

  • Changing numerical values in any object not working correctly

    I'm trying to create new parts and I want to adjust things like hole diameter, body length, offset height.
    When I go to change the numerical values......I highlight the numbers and start typing my new value and it just adds random numbers to the fields....
    The only way I can change the number is to click and highlight the digit and type the single number I want.
    So if 24.00000 is in the field and I want 1456.342455 I have to click on each digit of the 24.00000 and alter it ONE DIGIT AT A TIME to get my 1456!!!!!!!!!!!!
    This happens for board wizard, component wizard......anything that requires the changing of the numberical value is completely messed up.
    What is going on here......all the basic functionality seems to be completely screwed up........I can't get anything done with all this bug chasing and interference.
    It becoming more than an annoyance.Message Edited by kittmaster on 08-03-2007 10:13 PM
    Signature: Looking for a footprint, component, model? Might be here > http://ni.kittmaster.com

    Chris,
    Yes... in multiple numeric fields (especially the ones that are applying changes in the background while you type) typing the number becomes unefficient... I do know that R&D is working on this.
    Currently (if it helps) you can select all the number, type the digits before the punctuation, then hit the "." mark, and then move the cursor to the precision digits. This is what I currently do.
    Nestor
    National Instruments

  • How to connect input string value to numerical values

    Hello,
    I am trying to figure out how to connect a single user's input string value to numerical values. Basically I want the user to input the name of a gas that I have a list for (I believe i put the list of gasses in an array>). Then I want to match 2 numerical values "a" and "b" depending on which gas name the user has put in. These "a" and "b" values will be automatically matched with the gas name from a list I put. For example the gas hydrogen has a value of 3 for "a" and 4 for "b. so when the user puts the name "hydrogen" in a string constant, automatically  "a" and "b" should be outputted. I will be connecting a and b to a formula
    Thanks for any help
    Solved!
    Go to Solution.

    student11 wrote:  These "a" and "b" values will be automatically matched with the gas name from a list I put. For example the gas hydrogen has a value of 3 for "a" and 4 for "b".
    This sounds a lot like an Enum to me.  Make sure you type def the enum to make sure updates quickly and easily make it to all copies of the enums.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Percentages from Numerical Values Assigned to Text

    I am new to Excel and am having trouble with what I thought would be a simple formula.  I am trying to create a formula that will find the percentage of text in a single column.  Example, I am looking for the percentage of "Yes" to "No"
    values in a column, and am not sure if I should assign a numerical value and then try and create a formula that will calculate the percentage. I have had no luck so far, any help would be much appreciated.

    Assuming the yes/no values are in column A, the following formula with give the percentage of 'yes' entries in that column:
    =COUNTIF(A:A,"yes")/COUNTA(A:A)*100
    If you format the result as %, omit the *100.
    Cheers
    Paul Edstein
    [MS MVP - Word]

  • Numeric value to letter grade equivalent?

    What formula would I enter if I wanted to convert a numeric value (summation or average) into a letter grade? For example, I would like to create a formula that would look at a numeric value, determine its range, and then assign a simple letter grade. Thus, if Cell C3 (with a numeric value) is between 70-79 then input "C", if Cell C3 (again with the numeric value) is between 80-89, "B." Any advice would be much appreciated.

    you should use a lookup table to achieve this.
    Create a small table (called "Grades", the table on the right) where the first row a is a header row and the grades are entered as show:
    To use this table enter some grades (like I did in the column "Average", column B), then enter the formula:
    C2=VLOOKUP(B2, Grades::A:B, 2, 1)
    this is shorthand for select cell C2, then type (or copy and paste from here) the formula:
    =VLOOKUP(B2, Grades::A:B, 2, 1)
    now select cell C2 copy
    select cells C2 thru the end of the column, paste

  • Numeric value variable problem with user exit

    Dear experts,
    I've created a variable (numeric value, user exit) and I want to get the value of variable from an user exit.
    Actually, I want to convert "0calyear" to a number to be albe to calculate (multiplying, dividing etc).
    If there is a possible solution only in FOX, the solution will be the best. However I couldn't find anything.
    So, the next solution I am trying is user-exit. But I am in stuck here.
    The problem is that I have no idea whether the numeric value variable has any sturcture like other variables(char. value) or not. If yes, what structure it has?
    I know, the characterisc value variables have the structure as blow,
        ls_varsel-chanm =
        ls_varsel-seqno =
        ls_varsel-sign  =
        ls_varsel-opt   =
        ls_varsel-low   =
    I've tried several times with the same way like above, but it doesn't work when I call the variable in "BPS0" or "UPSPL".
    How can I solve it? Please let me know.
    I am using SEM_BW 4.00.
    Many Thanks.
    Bruce

    Hi Ravi,
    Sorry, there's a correction. <b>var2 is used for getting the first month of the year selected by the user in var1</b>. If the user doesn't enter a value for var1, then var2 should take first month of current year from var1 which has by default last month of current year (populated in i_step1 from sy-datum). The user can select the value of var1 according to his requirement. Then var 2 should get first month of the year selected. That's why I'm using two exit variables.
    It works fine during the initial run of the query. But when the user clicks on the variable button in the toolbar and executes the query, var1 is not being displayed and an error message <i>No value could be determined for var2</i> is shown. All other variables used in the query are displayed except var1.
    Krzys, Is the option <i>Can be changed in Query Navigation</i>  available for Exit variables. I'll check that and get back to you.
    Boujema, Thanks for the OSS note.
    Thanks
    Hari

  • How to convert text values in a popup menu to numerical values?

    Hi there,
    I am trying to create a table in Numbers where one cell needs to have a numerical value inserted into it based upon the value chosen in a popup menu in another cell, and I'm not sure how to go about it.
    To be more specific, I have a cell containing a popup menu with the items "Bronze", "Silver", "Gold" and "Platinum". Depending on which value is chosen, I need another cell to be populated with a value of 1,1.5,2 or 2.5 respectively, as I will then use this value to perform a multiplication elsewhere in the table. I have tried using the IF function in the 2nd cell but I can only get that to match one value and not an array of values.
    Could anybody advise on the most effective way of accomplishing what I am trying to do?
    Many thanks in advance.

    Michael Quayle wrote:
    (1) Hopefully you're not looking for points for being helpful, because all you're doing here is patronising me from the looks of it.
    "The fact to be a newbie doesn't prevent someone to have a quick look, at least to the list of available functions, to know what may be done with the tool."
    (2) This was *obviously* the first thing I did, followed by a Google search. When those avenues were exhausted I tried here. However, like I said, having "a quick look" is useless if you are not familiar enough with spreadsheets to know what it is you are looking for! MY choice of language to describe what I was trying to achieve was obviously not compatible with any search I performed, which is why I had to resort to asking a person rather than a manual. And frankly, the language used within the documentation is often rather alien to me. Having read the documentation for VLOOKUP I still don't fully understand its application. I'm a musician for heaven's sakes - everybody knows we can't read!
    "The users guides were designed to help users, not to help helpers to help users "
    (3) Are all your posts this condescending? I came here to ask a question, not to be accused of being lazy and not reading documentation. Like I said, my own searches through the manual were fruitless, so I came here for help. Are all the responses on this forum so cold and terse?
    (1) Don't worry, I'm not here to grab points.
    (2) Searching in the existing threads with the available tool seems more logical than searching in Google.
    (3) I write what I want, the way I want.
    In the cell C2 of the main table, the formula is :
    =IF(ISBLANK(B2),"",VLOOKUP(B2,vlook_up :: A:B,2,FALSE))
    Apply fill down to fill other cells.
    Yvan KOENIG (VALLAURIS, France) jeudi 4 août 2011 12:55:03
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Report results displays only (*), no numeric values.

    Dear all,
    The report result only displays asterick (*), no numeric values. But the field in the result thus has numbers which can be seen in display at the top in the excel sheet. why?
    Do i need to make any changes in Query properties or something else??
    Please advise.

    Hi,
    You should be trying to work to different units of measure or different currency. If you do any calculation with two values which has different unit then the result will be so.
    use NODIM() of the keyfigure and do the calculation. create a formula and add NODIM to keyfigure, then you should be able to see values but you will not get the unit along with value.
    Else you should go for conversion of units to single one and then you can get both values and units.
    Hope this helps
    Regards
    Akhan

  • How to build Project Budget report with "IF-then" formula?

    HI
    I have user requirement to create this report:
    Controlling Area Currency CAC
    Object Currency (OC)
    Amount to be returned calculation
    Amount to be used for Budget Return
    Budget (CAC)
    Actual (CAC)
    Remaining Budget (CAC)
    Budget (OC)
    Actual (OC)
    Remaining Budget (OC)
    CAC Remaining
      Budget converted to OC using Budget rate (OC)
    OC Remaining Budget converted to CAC using Budget rate (CAC)
    (1)
    (2)
    (3)
    (4)
    (5)
    (6)
    (7) = (3) * Budget rate
    (8) = (6) / Budget rate
    if (8) => (3) then
      (7), else (6)
    Project 1
    Project 2
    Project 3
    Project 4
    Project 5
    My dilemma is wich tool to use to build the report & how.
    CJE2 & CJE6  Project Hierarchy Reports
    I have managed to create columns 1 - 6 using a copy of forms from SP1 Reporting Group
    but I fail to create "IF - then" formula
    GRR2 Report Painter
    SP1 & SP2 Reports are not available there to copy from, while  SP3 has no Budget data available
    GR32 Report Writer
    I'm just not sure how to manage it & where to start from? Is that realistinc to do without special training?
    Please could you help me to figure out how can get to deliver that user requirement?
    What shall better do?
    Thank you very much in advance,
    Daria

    Hi Daria,
    In addition to what Sunil has mentioned , i think you don't need to get into the AFVC table unless you are using network activities under the WBS. Even then I don't see a need for AFVC as your budgeting is at the WBS level.
    And  your requirement is to capture Budget, Actual Cost and Remaining Budget and Return as per your formula..  here You should be looking at the below tables:
    1. PROJ : For Getting the list of Project.
    2. PRPS : for getting the WBS for the Projects..
    3. COEP or COSP OR RPSCO.
    Though you can get all your values in RPSCO but this is a huge table and you can hit some performance issues.. So you can use COEP or COSP ( if you want to use Line items or totals)..
    Rest you can go with the logic given by Sunil.. Just filter the values by the Value type for each project and you should get your desired result..
    Regards
    Sammar

Maybe you are looking for

  • How do I add text to existing PDF files using Acrobat Pro10.1?

    I upgraded to Acrobat Pro just so that I would be able to complete blank forms send to me as PDF files.  But sometimes I can edit them and sometimes I cannot.  And the "help" does mention anything as ordinary as form filling. FoxLuca

  • Robocopy

    I use robocopy to copy files and documents, but yesterday I get noticed that it doesn't update files which was changed. I use this line to copy desktop documents, I use it as batch file robocopy C:\Users\%username%\Desktop z:\Users\Desktop /s /fft /w

  • Why should I use tiff?

    I started a new video job last fall, and I'm working through old project files of my predecessor, and rather than just saving the AE assets as is, in a project file, he did something that I can't quite figure out and has several elements of an animat

  • Photoshop CS6 extended with Nik Collection

    I have the Photoshop CS6 extended version, I have purchased &  downloaded the Nik Collection to use with my program, but every time I try to use the Nik Collection it shuts down my Photoshop CS6 extended.  I have deleted it and re-downloaded and that

  • RUN REPORT IN MAXIMIZE WINDOW

    I CALL REPORT USING FORM CALLING RUN_PRODUCTS BUT WHEN WINDOW START , IT DOESN'T RUN IN MAXIMIZE WINDOW CAN ANY ONE HLP ME PLS