Formula: If Then

I'm trying to figure out a formula to use for the following:
If the value of a cell is 87% or greater then put $2.00 in this cell, if it is between 65-87% then put $1.50 in this cell, if it is between 44-65% then put $1.00 in this cell if it is lower than 44% then put 0 in this cell.
Any help on how to accomplish this?
Thanks!!!

Hi badunit
If the original question must be read as value greater than but not equal to the limits, it would be more efficient to use :
=IF(B>0.85,2,IF(B>0.65,1.5,IF(B>0.44,1,0)))
My original formula was built for the condition value greater or equal to the limits.
Yvan KOENIG (VALLAURIS, France) vendredi 21 janvier 2011 19:34:41

Similar Messages

  • Formula if/then/else

    Hello,
    I am a basic Crystal Report designer and need help with a formula.  I need to check 5 different fields and return a specific test if the field data does not equal zero. So here it goes below. I used "totext" because the value in the fields are a number either 0 or some other number so it does not matter what the # is as long as it does not = 0 I  need the following values.  I will then need to insert a single column in the report.
    When I try what I have below, all that's being returned is "Services" so I'm assuming it's not checking the other fields.  Assistance is appreciated.
    if totext ({BP_Daily_Item_Report.OBJ_B_SRV_THIS_REQ}) <> "0" then "Services" else
    if totext ({BP_Daily_Item_Report.OBJ_B_COM_THIS_REQ}) <> "0" then "Commercial"  else
    if totext ({BP_Daily_Item_Report.OBJ_B_CDC_THIS_REQ}) <> "0" then "CDC" else
    if totext ({BP_Daily_Item_Report.OBJ_C_SYS_THIS_REQ}) <> "0" then "Systems"
    Thanks.

    Thank you both.  Using that formula, I did get an error "the keyword then is missing"
    ({BP_Daily_Item_Report.OBJ_B_SRV_THIS_REQ},"#") "0" then "Services"
    So I modified my original forumla by removing totext and the "0" then is said "must be a number. I then removed the " " from around the 0 to what is below and that worked
    if ({BP_Approved_Requests.OBJ_B_SRV_THIS_REQ}) <> 0 then "Services" else
    if ({BP_Approved_Requests.OBJ_B_COM_THIS_REQ}) <> 0 then "Commercial" else
    Thanks.

  • Formula If/Then/Else question

    Hello all,
      I am using the following formula to read one value (valuation price), and if it = 0, then display the value of another field (moving price), if <> 0, then display that field (valuation price). 
    ( 'Valuation Price' == 0 ) * 'Moving Price' + ( 'Valuation Price' <> 0 ) * 'Valuation Price'
    However, only the first part of the evaluation returns a value, ie only the rows that have a valuation price =0.  If I reverse the order, it does the same thing, almost like it won't evaluate the "else" part of the evaluation.
    If anyone see's something obvious I would appreciate your input.  I have read the help file and done some searching but have found nothing relevant.  
    Thanks for any help
    Bill Coombs

    Bill, change your formula to
    ( NODIM('Valuation Price')== 0 ) * NODIM('Moving Price') + ( NODIM('Valuation Price') <> 0 ) * NODIM('Valuation Price')
    Hope this works.
    -KRREDDY

  • USE of PREVIOUS command to eliminate duplicate records in counter formula

    i'm trying to create a counter formula to count the number of documents paid over 30 days.  to do this i have to subtract the InvDate from the PayDate.   and then create a counter based on this value.  if {days to pay} is greater than 30 then 1 else 0.
    then sum the {days to pay} field to each group.   groups are company, month, and supplier.
    becuase invoices can have multiple payments and payments can have multiple invoices. there is no way around having duplicate records for the field. 
    so my counter is distorted by by the duplicate records and my percentage of payments over 30 days formula will not be accurate do to these duplicates.
    I've tried Distinct Count based on this formula  if {days to pay} is greater than 30 then . and it works except that is counts 0.00 has a distinct records so my total is off 1 for summaries with a record that (days to pay} is less than or equal to 30.
    if i subract 1 from the formula then it will be inaccurate for summaries with no records over 30 days.
    so i'm come to this.
    if Previous() do not equal
    then
      if {day to days} greater than 30
      then 1
      else 0.00
    else 0.00
    but it doesn't work.  i've sorted the detail section by
    does anyone have any knowledge or success using the PREVIOUS command in a report?
    Edited by: Fred Ebbett on Feb 11, 2010 5:41 PM

    So, you have to include all data and not just use the selection criteria 'PayDate-InvDate>30'?
    You will need to create a running total on the RPDOC ID, one for each section you need to show a count for, evaluating for your >30 day formula. 
    I don't understand why you're telling the formula to return 0.00 in your if statement.
    In order to get percentages you'll need to use the distinct count (possibly running totals again but this time no formula). Then in each section you'd need a formula that divides the two running totals.
    I may not have my head around the concept since you stated "invoices can have multiple payments and payments can have multiple invoices".  So, invoice A can have payments 1, 2 and 3.  And Payment 4 can be associated with invoice B and C?  Ugh.  Still though, you're evaluating every row of data.  If you're focus is the invoices that took longer than 30 days to be paid...I'd group on the invoice number, put the "if 'PayDate-InvDate>30' then 1 else 0" formula in the detail, do a sum on it in the group footer and base my running total on the sum being >0 to do a distinct count of invoices.
    Hope this points you in the right direction.
    Eric

  • Issue with Zoom- Formula option in Excel add in

    Hi All,
    In spreadsheet add in when I enable the option, Essbase->Options->Zoom->Formulas and then do a retrieve operation for a level 0 member having a formula in the outline, it returns the members that are included in the formula. The above works fine for a BSO application.
    But when I do the same operation on a level 0 member of an ASO application that has a formula associated to it does not retrieve the members of the formula.
    Can anyone help me on the above.
    Thanks,
    Raja

    I'm guessing that the zoom in on formula does not understand MDX. IT works for the BSO cube on simple calculations because it can understand calc script language and figure out the member names. When it gets to complex formulas in BSO it can't do it any more. MDX is a different animal for Essbase and I'll bet they never thought about modifying the add-in for ASO. As far as I know there were no special modifications to the add-in for ASO

  • Creating a Formula on an Exception aggregation Total Column

    Hi SDN Community,
    I have the following scenario
    Column A    Column B     Column C
    value1                1                value1 divided by total of column B
    value2                1                value2 divided by total of column B
    value3                1                value3  divided by total of column B 
    Totals
    Value123       3
    I have created a CKF with only th value 1 in it and put in the column B, and placed after Aggregation on the properties of the CKF to derive the total result for column B successfully
    I now want to create in Column C a formula which divides the value by the result of the column B.
    I have tried using the formula
    Column A / SUMCT Column B
    where the SUMCT Column B value should be = 3
    Does anyone have any ideas for the above.
    Thank you.
    Simon

    Attached is the communication from SAP whom have assisted in resolving this particular part of the overall issue.  I hope it is useful to the community
    15.10.2007 - 10:29:27 CET    SAP    Reply 
    Dear customer,
    Thanks for your message.
    I logoned on your OBA system and checked this query.
    You set property "Calculate result as" to "Counting all values" for
    key figure "counter", so that you got 6 in result row of "counter".
    So I think this "Counting all values" setting is working.
    It seems that you want to get the average value by 3,628 / 6 for the
    formula that you described, I would rather suggest you to choose
    "Calculate result as" to "Average of all values" for this formula.
    Then you can get the desirable result. Or the result row will add
    all single values together by default.
    Hope above information helps you on this issue.
    Best Regards,
    Patricia Yang
    Support Consultant - Netweaver Business Intelligence
    SAP China
    16.10.2007 - 06:49:24 CET    SAP    Reply 
    Dear customer,
    Thanks for your update.
    As for the 3 decimal place issue, it is described in attached note
    959467. Would you please have a look at it? (especially point 3 and 4)
    As of BW 3.5 SP18(yours is SP19), the behavior is changed.
    And you will have at least 3 decimal places in your situation.
    Best Regards,
    Patricia Yang
    Support Consultant - Netweaver Business Intelligence
    SAP China
    Info to SAP 
    16.10.2007 - 12:28:46 CET    BW Basis Support    Info for SAP 
    Hi Patricia,
    Thank you for your reply,
    is my understanding correct, that SP20 or the implementation of the
    correction notes in OSS Note 995517 will remove the decimal places in
    the Results rows of the query i have developed which has set "average
    of all values" on the calculated key figure column.
    I have also raised the following OSS Message, to which i mistakenly
    left at Medium Priority but which should be set to High.
    Can you please pick up the following message for your continued
    diagnosis:
    Suppress Hierarchy nodes for the display hierarchy ( 0000866034/2007 )
    Thank you.
    Simon Haddad
    16.10.2007 - 07:46:40 CET    SAP    Reply 
    Dear customer,
    For the situation 4 of note 959467, we have note 995517 which can
    reverse this behavior back as desribed in note 959467 itself.
    However for situation 3, we cannot change this behavior at this moment.
    I am sorry that I didn't see your latter inquirement about the
    hiding hierarchy row issue before I replied to you last time.
    By your description, I am not sure why it doesn't work as you expect,
    however since we should only have one issue in one message as stated
    in note 50048, could you please create another message about this?
    Thanks for your cooperation.
    Best Regards,
    Patricia Yang
    Support Consultant - Netweaver Business Intelligence
    SAP China

  • Chart Expert - Why are some formula fields not available?

    I have a report where I had to do Running Totals with formulas.  Following what I learned long ago from the documentation, I laid in my formulas, and then setup some "Display" formulas to print out the results at the end of my report.
    Now I am adding a chart to show a sort of 'summarized' version of the report - its a simple Pie chart...
    But when I go into the Chart Expert and want to select those Display formula fields (there are 4 of them) - they do not appear in the list?
    FYI - These four Display formulas are in the Report Footer of the report, and my chart is in the Report Header. 
    Why do some of my formula fields appear in the Chart Expert "select field" list - while others do not?
    I checked the documentation on this, but it is very "lite" and does not indicate why this might be...
    Any help is most appreciated!

    Read again -  "Problem has been circumvented" NOT "worked around".  In other words, when you pay a fortune for a poorly documented piece of software and you are dependent on answers from a Forum, where at times no one answers your question(s) and your boss is shouting at you as to how you selected such a lousy piece of software with such "lite" documentation and is hardly going to pay any more money for a support call to answer a simple question that should have been covered (and then some) in the documentation, (let alone support of the problem) - you CIRCUMVENT, i.e. give up and find some other way to do what you were trying to do.
    Hence, problem circumvented, NOT worked around.
    Thanks for asking - here's 10 points for your efforts.

  • "Eval Parsed Formula Node VI" does not return outputs in predefined order

    I make a data analysis program, where the data consists of some million events and each event has e.g. 4 channels and 1-5 hits on each channel. 
    I would like the user to select different expressions of these channels to give coordinates to plot in a 2D histogram (increment a bin in Intensity Graph), e.g. for some experiment you want to show x=ch1-ch2; y=ch1+ch2+ch3+ch4; while in another experiment you want x=ch1-123; y=123-ch2;
    There are other VIs that use static LabView-code for the normal things, but now after a few years of adding to this program I find that it would be quite good with a general plotter and let the user specify simple expressions like this. Also with the "normal" static plots, there is a need to filter out bad data and then it would be much simpler both to program and use if you could write text expressions with boolean logic to combine multiple filters. Making a LabView code and GUI that allows AND/OR/parenthesis combinations of expressions will be quite an effort and not very reusable.
    So, with the above motivation, I hope you see that it would make sense to have a useable string formula evaluator in LabView. I find some info about MathScript's user-defineable functions, but haven't managed to get MathScript working in LV2010 yet (maybe some licensing or installation issues, I think I had it in 8.6). But I think it would be possible to do most of what I want for the display-part (not the filtering) with the simpler Eval/Parse Formula Node VIs and suitable use of the limited variable name space. So I started testing, and found a quite annoying issue with how the evaulator works.
    To the parser, you are expected to send an array of output variable names. But then it ignores this array, and returns one output per assignment/semicolon in the formula, in the order of the formula text. Since the static parts of my program need to know what the output values mean (which of them is x and which is y), I would have to rely on the user not using any intermediate variable and defining x before y. The attached screenshot demonstrates the problem, and also that it has been solved by NI statff in the "Eval Formula Node VI" which does the appropriate array-searching to extract only the pre-defined outputs, in their expected order. But using that VI is about 100 times as slow, I need to pre-compile the formula and then only use the evaulator in the loop that runs over a million events.
    I don't know if I'll take the time to make my own tweks to the parsing stage (e.g. preparation of array-mapping to not have to repeat the search or maybe hacking the output list generated by the parser) or if I'll have to make it in a static Formula Node in the block-diagram (which supports more functions), so that the user has to run with development environment and stop the program to change the plotting function. But I wanted to share this trouble with you, in hope of improvments in future LabView versions or ideas from other people on how I could accomplish my aim. I have MATLAB-formula node possibility too, but is far as I have seen the only place the user could update the formula would then be in a separate .m file, which is re-read only when typing "clear functions" in the Matlab console window. (Having this window is also an annoyance, and perhaps the performance of calling Matlab in every iteration is not great.) 
    Besides this issue, it also seems very strange there is virtually no support for conditional expressions or operators in Formula Node evaulated formulas (called Mathematics VIs in the documentation). Maybe using (1+sign(a-b))/2 you can build something that is 0 when a<b and 1 when a>b, but it is not user friendly! Would it really be diffcult to add a function like iif(condition, return_value_if_true, return_value_if_false) to replace the unsupported "condition ? if_true : if_false" operator? Would it really be difficult to add support for the < <= >= > == || && operators? Although compiled to an assemply language, this can't exactly be difficult for a CPU.
    Attachments:
    LV script test.png ‏62 KB
    LV script test.vi ‏18 KB

    (1) You can put any kind of code inside an event structure with the limitation that it should be able to complete quickly and without user interaction.  For example a while loop for a newton-raphson method is fine, but an interactive while loop where the stop condition depends on user iteraction is not recommended. By default, event structures lock the front panel until the event completes, so you would not even be able to stop it.
    (2) Yes, you can do all that. LabVIEW has no limitation as a programming language. Use shift registers to hold data and state information, the manipulate the contents as needed.
    (3) I would recommend to use plain LabVIEW primitives instead of formula nodes. Show us your code so we can better see what it's all about. Obviously you have a mismatch betweeen scalars and arrays. It is impossible from the given information where the problem is.
    (4) Yes, look inside the nonlinear curve fit VI (you can open it an inspect the code!). One of the subVIs does exactly that. Just supply your model VI.
    LabVIEW Champion . Do more with less code and in less time .

  • How do I create a Parameter Field From a Formula?

    I am new to Crystal Reports 2008.  IN version 8.5, I used to easiuly create a formula, and then a dynamic parameter field based upon that forumla.
    In version 2008, thus far, I create a formula field, then I try to create the parameter field, but it won;t give me the optioin of choosing the formula I have created.
    Is this a bug or is this a featuer they removed from version 2008?  I am using Crystal Reports 2008 12.3.0.601.
    Thanks in Advance!
    Travis

    Sure.
    I want to use a Full Name as a Dynamic Parameter.  The DB stores the name in FirstName in one columns, LastName in another.
    Formula:
    FirstName" "LastName
    Then I usually make this the dynamic parameter field, as I am doing with older version of 8.5.
    What am I missing?

  • Formulas containing stringVar assignments will not display with CrystalReportViewer.jsp

    <p>I have removed the last post because I have done extensive testing today and have narrowed down my problem. The following formula will display in Crystal Reports XI just fine:</p><p>stringVar x := {Command.STREET} + " : " + {Command.VALID};</p><p>x;</p><p>Yet when deployed onto our weblogic server, this formula field comes up blank. If I change the formula to:</p><p> {Command.STREET} + " : " + {Command.VALID};</p><p> </p><p>the formula is displayed fine both in Crystal and on our website. </p><p>Our formula is for appending a massive address field together that has possible null values and inserts a special character if a null value is present so the end user knows "Hey, this guy didn&#39;t supply us with his zip code" or whatever the case may be. We NEED some sort of variable declaration in our formulas and then have them displayed over WebLogic. If there is any hack around or any update or something that we need to implement, please let me know. </p><p>-Sam M</p><p>HBF Group, Inc </p><p> </p>

    <p>fixed this by changing the formula to: </p><p>Local StringVar x := {Command.STREET} + " : " + {Command.VALID};</p> <p>x;</p><p>Talk about sensitive code.</p><p>-Sam </p><p> </p>

  • How do I create this formula in FR?

    [http://img832.imageshack.us/i/spentformula.jpg/]
    I'm working with Oracle Hyperion Financial Reports version 11.1.1.3. I've provided a link to a screenshot from Excel of a formula column that I'm trying to replicate in FR, but I can't make it work properly. Does anyone know how this can be accomplished or if there is a workaround solution? Basically, I need a column that either calculates a variance percent (if possible) and if that's not possible then display a text value ("FAV" or "UNV"). Any help would be greatly appreciated!

    Hint: In Hyperion FR STudio there is a drop down for built in formulas if then combined with variance....

  • Creating Flag formulas for multiple critical paths

    I'm hoping someone can help me.  I'm wanting to use flags to create my top 10 critical paths in MSP2010.  What forumla do I need to set into each flag in order for it to show me the first critical path, then second and so on?
    Thanks
    Sarah

    Sarah,
    I agree with Guillaume in that you need to define what you mean by first, second, etc. critical paths. However given some assumptions, this might work for you. Let's assume that total slack values less than 1 day are the first critical path, values between
    1 day and less than 5 days are the second critical path, and total slack 5 days or greater is the third critical path. The following formulas could then go into the Flag1, Flag2, and Flag3 fields.
    Flag1=IIf([Total Slack]/[Minutes Per Day]<1,True,False)
    Flag2=IIIf([Total Slack]/[Minutes Per Day]>=1 And [Total Slack]/[Minutes Per Day]<5,True,False)
    Flag3=IIf([Total Slack]/[Minutes Per Day]>=5,True,False)
    You can extend this process to additional flag fields and set up Gantt Bar styles to correspond to the flags.
    Hope this helps.
    John

  • Creating formulas in Numbers - quick key to reference cells

    Former Excel person, moving over to Numbers -- very simple question on how I can use keystrokes to reference cells when creating a formula, rather than typing in the cell or using the mouse. In Excel would just type "=", then could use the arrows keys to move around and go into the first cell for the formula, type "+", then arrow around to the second cell and hit Enter.

    As Yvan has pointed out, Numbers offers an alternative to large spreadsheets, that being multiple tables & sheets. As you point out, moving around a large spreadsheet is not fast, even when using cursor keys (which I am assuming are the same thing as arrow keys, there being just the one set on my keyboard).
    Assuming you can break your large spreadsheets down into smaller ones, you may find that navigation is remarkably quick because you can click on any table in any sheet to immediately jump to another one (even when creating cell or range references) rather than having to transverse large areas of a single spreadsheet one cell at a time.
    If you are interested in exploring this approach, you may find my comments in the thread Generating values for grades useful as a description of how this can be applied when creating cell references in Numbers.
    It may not be the right approach for your needs, but unless you know about it, you can't compare it to other approaches, right?

  • Unable to attach formula with Element

    Hi All,
    I have written a formula with type Oracle Payroll that is 10% based on Basic pay and return a value in a variable,after writing I am unable to associate it with element , If I take the type element input validation it appears in the input value screen in the element window but when I take type Oracle payroll it does not appear ,kindly share your experiences
    Regards,

    Hi,
    A Oracle Payroll type Fast Formula can be attached to an Element using "Formula Results" window.
    Navigation : Total Compensation > Basic > Formula Results
    1. Select the Element to which you want to attach this Formula and click Find.
    2. In Processing Rules block, Select Name as "Standard" and then attach your formula in the "Formula" field.
    3. In Formula Results block, Select Name as the Return Variable you are returing in the Formula and then select "direct result" as Type.
    4. Select the input value of your element to which you want to pass this value.
    5. If you want to pass this value to another element. Then select "Indirect result" as Type, select that element and then select the input value of that element to
    which this variable value needs to be passed.
    6. To pass a value using Indirect result, the destination element should be non-recurring and with lesses priority (higher number).
    Hope this helps you.
    - Sri.
    Edited by: Sri81 on Nov 26, 2008 1:15 AM

  • How can I copy tables from Numbers to Pages without formula?

    hi everyone
    i need help
    How can I copy tables from Numbers to Pages without formula in the cells?

    Ok... I see your problem... when pasting into Pages, the formulas from Numbers are included. Perhaps this is really more of a Pages question (in which case I'm far from expert). A couple of ideas:
    • In Pages, try "Edit"/"Paste and Match Style", which may insert tab delimited cell values (no formulas). Then, if you want the table format back, select these newly pasted tabbed values and use Page's "Format"/"Table"/"Convert Text to Table"/
    • In Numbers, before copying, make a temporary table of the plain values first, then copy and paste that into Pages. To do this, select the range of cells you desire in the Numbers and "Edit"/"Copy". Then "Edit"/"Deselect All" and "Edit"/"Paste Values" and "Edit"/"Cut". Now just a table of values is on the clipboard and you can head over to Pages to paste.

Maybe you are looking for

  • Install new hard drive, restore from Time Machine, File Vault Problems

    Hello all, I spent way too much time on this seemingly simple task, so I thought I would share my experience with others so they can avoid some pitfalls when upgrading a hard drive in a system that uses File Vault 2 encryption. The basic goal here is

  • Lens Corrections unavailable in Adobe Camera Raw 8.3

    hello, since i switched to photoshop CC (mac version), i am having constant problems with lens corrections in ACR 8.3. i am a professional photographer and i use various canon pro lenses that all exist as unique lens profiles already in photoshop and

  • Illustrator CC loads but does not launch.  Uninstalled/reinstalled.  Still will not launch. Any insight?

    On one computer we downloaded the software but Illustrator will not start up. She even uninstalled it and reinstalled but Illustrator still will not boot.

  • Dynamic Page Parameter Limitations

    Parameters (bind variables) do not seem to be equivalent to string literals when passed to other procedures. Try this: 1)create dynamic page 2)make the contents call a known function [oracle]begin htp.print(portal30.wwsec_api.id('portal30')); end;[or

  • Zen Micro Issues

    The headphone jack on my Zen Micro (5gb..) mp3 Player is loose. I think it's from being in my pocket when I was snowboarding, but I'm not sure. Heh, not a very smart thing to do...was it's :smileyindifferent: Anyway, I wanted to know if I'd be able t