Function/forumla Question if/and functions

I have two colums, both numbers.  The right column is an average (for example 1.50), the left column is a data point in relation to the average (for example 1.25 or 2.3).  I need a third column that says:
If column A is lower than half of column B, then 2 is the entry, if column A is lower than column be but higher than half of column b - then the entry is 1, if column a is higher than column b but less than 1.5 times colum b the entry is 0, and if column a is higher than column b times 1.5 the entry is -1.
I'm really struggling figuring this out.  Any advice is greatly appreciated!
Thanks in advance.

What you need is a set of nested IF statements, each testing one of your conditions.
If column A is lower than half of column B, then 2 is the entry,
=IF(A<B/2,2,"next")
if column A is lower than column be but higher than half of column b - then the entry is 1
IF(A<B,1,"nexxt")
if column a is higher than column b but less than 1.5 times colum b the entry is 0, and if column a is higher than column b times 1.5 the entry is -1.
IF(A<B*1.5,0,1)
Combined intro a single formula:
=IF(A<B/2,2,IF(A<B,1,IF(A<B*1.5,0,1)))
What is to be entered if the entry in A is exactly half of B, exactly equal to B, or exactly 1.5 times B? With the formulas as shown these values are grouped with the "higher than" values. To include them in the "lower than" groups, change each of the "<" operators to "<=".
Regards,
Barry

Similar Messages

  • I want to know how to clear the text area by the push off my next question button and ask a new ques

    I want to know how to clear the text area by the push off my next question button and ask a new question - also I want to know how to code in my project to where a user can enter a math question in one border container and the answer enters into the next container
    heres my code so far
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" backgroundColor="#1E5C75">
        <fx:Script>
            <![CDATA[
                protected function button1_clickHandler(event:MouseEvent):void
                    //convert text area into labelid to be identified by actionscript
                    richTextLabel.text = myArea.text;
            ]]>
        </fx:Script>
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <!--container 1-->
        <s:BorderContainer borderWeight="7" x="28" y="10" width="200" height="138">
            <s:layout>
                <s:VerticalLayout paddingTop="10" paddingBottom="10"
                                  paddingLeft="10" paddingRight="10"/>
            </s:layout>
            <!--data Entry control-->
            <s:TextArea id="myArea" width="153" height="68"/>
            <!--end of data entry control-->
            <s:Button width="151" label="ask a question" click="button1_clickHandler(event)"/>
        </s:BorderContainer>
        <!--container2-->
        <s:BorderContainer borderWeight="7" x="509" y="10" width="200" height="138">
            <s:layout>
                <s:VerticalLayout paddingTop="10" paddingBottom="10"
                                  paddingLeft="10" paddingRight="10"/>
            </s:layout>
    <!--data entry control-->
            <!--convert tne data entry control into a label id in actionscript-->
            <s:Label id="richTextLabel" width="153" height="68"/>
            <s:Button width="151" label="next question" click="button1_clickHandler(event)"/>
        </s:BorderContainer>
        </s:Application>

    This is a user to user support forum.  We are all iphone users just like you.
    You are not addressing Apple here at all.
    This is an odd way to ask your fellow iphone users for help. Berating oterh users will not help you.
    "it's too fragile"
    No it is not.  i have never damaged one, nor has anyone I know.
    " U loose data when Ur phone is locked"
    No you don't.  Why do you think this?
    "and there is no customer support!!!  "
    Wrong yet again.  Apple has an 800 number and they have many retail stores and they have support articles that you can access using the search bar. Or you can contact them throgh express lane online
    "but I will go back with Blackberry "
    Please do.
    Good ridance

  • I forgot my Apple ID security question answers and cannot contact iTunes support by phone. The only way I can ask for help is via email. How can I make that happen?             Thanks

    Hi! So I haven't used iTunes in a few months but I just got an iTunes gift card and want to make a purchase. iTunes redeemed it just fine but now that I want to make a purchase I am having problems. I can't remember my security question answers and iTunes is requesting them. I have two other verified emails but the are NOT rescue emails. I can't contact iTunes over the phone because my phone lines are out and are going to be out for a long time. The only way I can contact them is by email. How can I do this? Is there an easy way to just reset all my security questions? Please help a girl out. I just want my music!
    Thanks so much

    Alternatives to Reset Security Questions and Rescue Mail
         1. Apple ID- All about Apple ID security questions.
         2. Rescue email address and how to reset Apple ID security questions
         3. Start here to find your country, and how you can contact Apple:
             Apple ID- Contacting Apple for help with Apple ID account security.
         4. Fill out and submit this form. Select the topic, Account Security.
         5.  Call Apple Support in your country and ask to speak to Account Security.
              Customer Service: Contacting Apple for support.
    How to Manage your Apple ID: Manage My Apple ID

  • If I forgot my security questions/answers and I'm trying to buy on a new device but same Apple ID, what do I do?

    If I forgot my security questions/answers and I'm trying to buy on a new device but same Apple ID, what do I do?

    See my User Tip for some help: Some Solutions for Resetting Forgotten Security Questions: Apple Support Communities.
    Send Apple an email request for help at: Apple - Support - iTunes Store - Contact Us
    Call Apple Support in your country: Customer Service: Contacting Apple for support and service

  • I have two apple ID's but cannot remember the security question answers and the email address is no longer active - how can I access this account

    I have two apple ID's but cannot remember the security question answers and the email address is no longer active - how can I access this account as it seems to be the one my icloud space is attached to.  I haven't backed up my ipad or photos for a while. 

    Security questions:
    https://discussions.apple.com/docs/DOC-4551
    http://support.apple.com/kb/HT5312
    If you don’t know your security questions, phone Apple (using the number listed here:  http://support.apple.com/kb/HE57  ) and ask for the Account Security Team.
    About 2-step verification of your Apple ID:
    http://support.apple.com/kb/ht5570
    This is also useful:
    http://www.macworld.co.uk/ipad-iphone/news/?newsid=3463233&olo=email

  • G4 displays flashing question mark and blue face at start-up

    like the title says, my powerbook refuses to go to the desktop and instead gives me a dark screen and in the center you can just make out a folder icon and on the folder icon flashes a question mark and then that picasso-esque blue smiley face. these two images flash sequentially, one after another.
    this started happening about three days ago. the day it started, i got up, checked my email, and then shut the computer down. but then i saw the soft light flashing on the closed laptop that tells me that it is still on. so i figured that i hadn't completed the shut down process all the way. i opened the laptop and almost knocked it off the perch it was on. i grabbed it in time to prevent it from falling, but in the process i mashed some buttons with my thumb. when i turned on the computer, it briefly flashed the desktop and then went dark and started flashing the icons as i described above.
    i am in japan right now, so getting ahold of apple in the states is somewhat difficult. any amount of help is very much appreciated. i've already tried a full shutdown by taking the battery out and holding down the power button for 5 seconds, as described on the apple website. this didn't work. i'm not sure which version of OS i have, but i'm pretty sure it is at least 10.0. i got the computer last year right as tiger was coming out.

    also, the power icon on the power button is not showing any light, and it wasn't showing any light for a day or so before this event happened.

  • HT5312 I forgot my security question answers and answered wrong too many times so now it won't let me download anything even though I know my password, what do I do?

    I forgot my security question answers and answered wrong too many times so now it won't let me download anything even though I know my password, what do I do?

    You need to contact Apple to get the questions reset. Click here, phone them, and ask for the Account Security team, or fill out and submit this form.
    (95618)

  • I have a problem with iphoto (have a mac book pro): the icon in the dock appears with a question mark, and the application is gone!!! Can someone tell what's going on? Yesterday I had the same problem with itunes

    I have a problem with iphoto (have a mac book pro): the icon in the dock appears with a question mark, and the application is gone!!! Can someone tell what's going on? Yesterday I had the same problem with itunes: I downloaded the last version (it's free), but I cannot do the same with iphoto, and more important: I need to know what is happening!!! Please help me!

    Applications should not disappear all by themselves.
    If they are then that coud indicate serious problems with your hard drive.
    Backup everything up as quickly as possible.
    Using Disk Utility verify your system disk.
    Allan

  • Reading Question id and Answer ID in a survey

    Hi,
        I have the following input with me.
    1. Survey ID
    2. Survey Version
    3. Question Sequence number like 1,2,3,
    4. Answer Sequence number
    Now I have a requirement to read the question id and answer id which is generally in the below format.
    id_<guid> .
    Please let me know how can i retrieve the the question id and answer id with the above inputs.
    Regards,
    Manas.
    Edited by: manas sahoo on Aug 4, 2008 1:53 PM

    Hi
    I have seen your question ,i need the Question Id and Answer Id for survey,how did you achieve this requirement .please suggest me.

  • My question mark and forward slash key have suddenly stopped working.  have I pressed something to make this happen.  Any ideas.

    My question mark and forward slash key have suddenly stopped working.  Have I pressed something I shouldn't have.  Any ideas what to do.

    judith147 wrote:
    My question mark and forward slash key have suddenly stopped working. 
    If they do nothing at all, double check system preferences/speech and make sure they have not somehow gotten set as the trigger for Text to speech or speech recognition, etc.
    Also try an external keyboard.  If it works ok, then your internal keyboard is probably damaged and needs repair or replacement.

  • Forgot my security question answers and when it sends the email I never get it

    Forgot my security questions answers and every time they send the email I never get it

    Try the other methods
    From a Kappy  post
    The Best Alternatives for Security Questions and Rescue Mail
    1.  Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
    2.  Call Apple Support in your country: Customer Service: Contact Apple support.
    3.  Rescue email address and how to reset Apple ID security questions.
    An alternative to using the security questions is to use 2-step verification:
    Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID.

  • I forgot my security question answers and now I cant buy this game I wanted to.

    I forgot my security question answers and now I cant buy this game I wanted to.

    Try here: https://iforgot.apple.com/password/verify/appleid

  • How would i design the relationship between "question", "subquestion", and "answer"

    Hi all. Consider the following scenario:
    Scenario:
    A Question has an Answer, but some Questions have Subquestions. For example:
    1. Define the following terms: (Question)
    a) Object (1 marks) (Subquestion)
    An instance of a class. (Answer)
    b) ...
    2. Differentiate between a constructor and a destructor (2 marks)
    (Question)
    A constructor constructs while a destructor destroys.
    (Answer)
    Question:
    I want to model Questions, Subquestion, and Answer as Entities with relationships/associations, preferably binary relationships as i feel ternary relationships will be problematic while programming. Any suggestion on how i would
    go about this?
    There is never infinite resources.
    For the Question Entity, a question has the attributes "QuestionPhrase <String>", "Diagram<Binary>", and "Marks
    <Decimal>".
    For the SubQuestion Entity, a subquestion has the attributes "SubQuestionPhrase <String>", "Diagram<Binary>", and "Marks <Decimal>".
    For the Answer Entity, an answer has attributes, "AnswerPhrase<String>", "Diagram <Binary>"

    Yes. I am in .Net. I sure do hope i did not ask in the wrong forum. :-|
    Hi KCWamuti,
    If you need to design the relationship between Question table and Answer table in SQL Server, as Uri’s and Visakh’s posts, you can create the foreign key to establish relationship between tables, and use join in query to get your desired result. For more
    information about JOIN in SQL Server, please review this article:
    Different Types of SQL Joins.
    However, if you need to model Questions, Subquestion, and Answer as Entities in .Net, then the issue regards data platform development. I suggest you post the question in the Data Platform Development forums at
    http://social.msdn.microsoft.com/Forums/en-US/home?category=dataplatformdev . It is appropriate and more experts will assist you.
    Thanks,
    Lydia Zhang

  • SQL Question Bank and Answers for Practise

    Dear Readers:
    Does any one have any recommendation on SQL question bank and answers where I could practice my SQL.
    I have developed some basic knowledge of SQL thanks to the MS community, but I am looking for some additional Questions or textbook  recommendations which has questions and answers to queries for practice.
    Best Wishes,
    SQL75

    Hi,
    Refer below post.
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/446b2247-5124-49c1-90c9-b7fea0aa4f83/sql-dba-books?forum=sqlgetstarted
    Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    Praveen Dsa | MCITP - Database Administrator 2008 |
    My Blog | My Page

  • HT5787 i forget the security questions answers and i cant get email of resetting link in my email

    i forget the security questions answers and i cant get email of resetting link to my email

    If the email hasn't arrived after a few hours and isn't in a spam filter, you need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (103829)

Maybe you are looking for

  • Add 1 single element in Java Mapping

    I have quite a simple requirement for my Java Mapping, however as I have done just message mappings and XSLT mappings maybe you could help how to achieve the following: I have an input message with attachment, what I want to do now is to read a strin

  • Flash ActiveX in C++ app - how to communicate?

    Hello everybody! I think that most of the people here on this forum will not be familiar with C++, but familiarity with Flash ActiveX controls is actually more than enough to help me! Here is my situation. I'm doing some desktop application (C++), an

  • Spaces in file names

    Hi all, I was wondering if any of you have run into this problem before. I am using java on an as400 system and there is a space in the file name. When I got to read/write from this file it comes up with a java.io error and says the file doesn't exis

  • Mac mini keeps restarting itself....

    Hi, I've just bought a refurb mac mini. The problem is it keeps restarting itself every so often. I've read a post from about a month or so ago saying that it could be something to do with RAM. Can anyone confirm that? I was just wondering if there w

  • Forms10g+jre1.6,  How to work on IE7 or Firefox

    Here is my html code, it works fine on ie6 but doesnt work with ie7 and firefox. (formsweb.cfg jipi parameters has been set.) html code: <object classid="clsid:CAFEEFAC-0016-0000-0004-ABCDEFFEDCBA"      align="baseline" border="0" width="250" height=