If Text Contains X, Then Display Text Y?

I have minimal coding experience and need help with  some conditional expressions for a school document. I have a series of fields where we are projecting out student classes for high school and college. I would like to add code that would auto fill the next course field. (i.e. If a student is taking MAT 060 Pre-Algebra in one field, the next field will display the next course in the sequence MAT 090 Algebra I)
Is this possible with JS code? If so, can anyone help me with the code?

Hello Lee,
The Numbers User Guide PDF available from the Numbers Help menu as a download is good reading for beginners. As a reference document, the iWork Formulas and Functions User Guide is also valuable.
The function you need is called "IF", and the syntax is: IF "logic-expression" is true, then do this, else do this. As a calculation in a cell, that would have the form: =IF("Cell A" is equal to or greater than 70, then display the content of cell C, else display "something else") You need to provide the "something else", which can be a null string, "", if you wish.
As you will find when you read the guide, the cells all have row and column address components where the column is identified by a letter of the alphabet and the row by a number. So If your data is in A1, your text string in B1 and your expression is in C1, you would write in C1:
=IF(A1>=70, B1, "")
Does this help?
Jerry

Similar Messages

  • If Number = than then display text from another cell

    Hi
    I'd appreciate it if anyone can help me with this please.
    I am putting together a gradebook type spreadsheet. I would like to display the text from another cell if the number entered in another cell is greater than or less than a certain number.
    So - if the number in cell A is equal to or greater than 70 then the text displayed in cell B equals the text contained in cell C
    Hope this makes sense.
    Many thanks in advance.
    regards,

    Hello Lee,
    The Numbers User Guide PDF available from the Numbers Help menu as a download is good reading for beginners. As a reference document, the iWork Formulas and Functions User Guide is also valuable.
    The function you need is called "IF", and the syntax is: IF "logic-expression" is true, then do this, else do this. As a calculation in a cell, that would have the form: =IF("Cell A" is equal to or greater than 70, then display the content of cell C, else display "something else") You need to provide the "something else", which can be a null string, "", if you wish.
    As you will find when you read the guide, the cells all have row and column address components where the column is identified by a letter of the alphabet and the row by a number. So If your data is in A1, your text string in B1 and your expression is in C1, you would write in C1:
    =IF(A1>=70, B1, "")
    Does this help?
    Jerry

  • I would like to add content that changes on a calendar basis, such as 'thought for the day". It can then display a different text or image on a nominated day. Can this be done? Robert.

    I would like to add content that changes on a calendar basis, such as 'thought for the day". It can then display a different text or image on a nominated day. Can this be done? Robert.

    OK Thanks Brad.
    I could use Tockify of course, but wanted to create the same things on an existing site.
    I do not know how to copy the code and get it onto Muse, but that’s OK for now. I will work something else out.
    Robert

  • Form where testing if radiobuttonlist is null and then display message

    I created a test form to try to get this work and can't seem to make it work. In my form I have a ddlist on page 1. on page 2 I have a subform that the selection in the ddl makes visible--that's working.
    There is a radiobuttonlist in the subform. I'd like to check on the submit button if ddl == 2 and radiobuttonlist == null then display a message. Here is my script:
    //Create a variable to hold the document object
    var 
    v3 = form1.page1.division.rawValue;
    var 
    v15 = form1.page2.pcEquip.dirAbove.RadioButtonList.rawValue;  
    if 
    ((v3 == 2) && (v15 == null)) {
    xfa.host.messageBox( "Please indicate whether the associate is a director or above" );
    xfa.host.setFocus("form1.page2.pcEquip.dirAbove.RadioButtonList");
    else 
    Button3.execEvent("click");
    The script is finishing as desired with the email window, but doesn't catch that the radiobuttonlist is null. Any help would be appreciated.
    Thanks,
    MDawn

    Hi,
    Test the radio button exclusion group against an emply string. For example:
    if (v15 == "")
         // your script here.
    Hope that helps,
    Niall

  • My macbook pro freezes and then displays a blue screen with black stripes... do you know what's wrong with it?

    My macbook pro freezes and then displays a blue screen with black stripes... do you know what's wrong with it?
    I have a two and half year mac book pro... I've had some issues with the screen looking scrambled when I quit certain applications, but now it's turned into something worse.  I'll be working on my computer and the thing will freeze.  When I force restart, the first screen, the apple logo, will be a blue tint and won't boot up normally.  Then I try safe mood and it will then boot just fine.  But there are blue stripes on my screen.  The screen alternates from a blue tint to normal and if the computer freezes again the screen will become completely blue with black stripes.  I haven't tried reinstalling my software because I don't have the startup discs that came with my computer.  If I was sure that would fix it I would purchase them, but if it's a hardware issue I'm afraid that I'm screwed.  I've been able to successfully get the blue off my screen by putting it to sleep and then waking it up, but that's not working well anymore either. 
    Does anyone else have experience with this?  Is it the firmware or what?  I have a MacBook Pro from early 2011 and I'm running Mac OS X 10.6.8.
    Please help... Thanks!

    I just experienced this exact same issue with my early 2011 15" macbook pro. Since like a month after purchasing it I had issues with the screen randomly going dark on me. I sent it in for repair inder waranty they replaced the gpu and logic board but I continued to have the same issues with the screen randomly going black sometimes I would need to reboot it in order to get the screen to go back on but it happened so infrequently and I used the computer for school so disnt find the time to resend it in to apple. Just last night the screen started to display the blue screen with black verticle lines on it. I called apple and explained to them  the issues that had been ongoing since I purchased the laptop but they said because I was now outside of warantee that any repairs at thia point wouldn't be covered. Fml so glad I spent 2200 on this future proof macbook pro what a joke my sister purchased a toshiba laptop for 300 4 years ago and it still running like a champ. I loved my macbook but at the price I paid I expect it to last longer than 2 years before leaving me high and dry. *** apple??

  • Please solve  Radio buttons (when selected) will then display on the report

    Each of these new Radio buttons (when selected) will then display on the report in the same locations, which is after the existing columns.
    Check boxes are by default checked.
    When the 1st radio button is selected then a new column will be displayed in the ALV output
    Next to A.
    Like wise when 2nd radio button selected then a new column will be displayed in the ALV output next to B.
    Like wise the ALV output is displayed.
    A   is a checkbox
    B  is a checkbox
    C   is a checkbox
    D   is a checkbox
    1   is a radio button                         
    2   is a radio button      
    3  is a radio button
    4   is a radio button

    while populating fieldcatalog itself u include these condition....
    if Pradiobutton = 'X'.
    *--populate field catalog for field u want in specified position....
    endif.
    similarly u proceed for other fields and other condition

  • HT204088 When trying to update an app, it partially downloads and then displays the message "unable to download item" Please try again later. This happens on any app I try. I have tried deleting the app and reinstalling with same results. What can I do?

    When trying to update an app, it partially downloads and then displays the message "unable to download item" Please try again later. This happens on any app I try. I have tried deleting the app and reinstalling with same results. What can I do?

    I have the same thing happening on my iPod Touch 5th gen. Been happening for at least a month. I have updated to the most recent version of iOS which hasn't solved the issue. Must be a bug that they didn't get around to resolving yet, a year later. Really annoying to have it pop up when you are in the middle of a game though.

  • After deleting i tunes because of an error when updating, i cannot install 10.6 on my win vista laptop. when i select download, it loads for 3 secs then displays... thankyou for downloading but nothing has happened

    after deleting i tunes because of an error when updating, i cannot install 10.6 on my win vista laptop. when i select download, it loads for 3 secs then displays... thankyou for downloading but nothing has happened

    Try downloading it with another browser.
    If that doesn't work, try following along with this Apple article -> iTunes: Downloading iTunes for Windows using Internet Explorer

  • Hiding customer container in first display

    Hello all,
    How to hide custom container during first display of screen. Loop at screen at PBO does not work as screen name field does not capture container name.
    Regards,
    DPM

    Hi,
        It is not possible to hide the custom container in dynpro , if you can brief your requirement will try to help
        you out.
        Instead of hiding you can use an empty subscreen and navigate to it before displaying actual screen with
        the custom container.

  • First half of page is blank then displays page on bottom half

    First half of page is blank then displays page on bottom half. This is only occuring on one page Facebook Mafia Wars

    This could be something wrong with your Flash player. I would advise you to make sure you have the latest updates of your plug-ins.
    Of course it could simply be a problem with the website itself. You could try reporting the problem to Facebook.
    '''If this was the answer you were looking for, please click 'Solved' -- Thanks.'''

  • Crocodoc HTML5 document viewer:Upload and then display document

    Dear all,
    Did anyone try to upload and then display documents using HTML5 technology. Also recently i came across SAP is using Crocodoc,"an HTML5 documents to display their presentations". I welcome all of your thoughts and suggestions.
    Regards
    Prabaharan

    I have the same need as vudean. I don't understand the security issue. If I type a document using Pages or whatever, why can't I upload the document to a web site? I think Apple should make the standard web "file upload control" available to iPad users.
    I understand that there should be some limitations, but it should be possible to upload standard user files. I can upload them to Dropbox, so I don't se the big difference.
    Does Apple read this? If not, where can I propose this feature to them?

  • Can a .jsp contain more then one jsp:forward page

    Can a .jsp contain more then one jsp:forward page if it's conditional.
    ie. if condition true
    forward to pageA
    else
    forward to pageB?
    Thank you.

    gimbal2,
    Thanks for the response. I did try it and I got a
    compile error. I just realized that the error was
    regarding a different issue.
    JJIn that case, it would have been appropriate to post the actual problem.

  • How do i read a text file and then display the content as a string

    I also would like to strip the string from a certain substring and convert the remaining string into an array of floating point numbers. I was thinking of using the read from spreadsheet vi but I'm not exactly sure if that is going to work. Any help would be greatly appreciated.
    Solved!
    Go to Solution.

    Here is what I have so far. What I am trying to do is to display the text file as a string and then strip the "curve" from the text file. I think I did this successfully. Now I want to convert the remaining string into an array of floating point numbers, and display the numbers into an array and on a waveform graph.
    Attachments:
    hw3datafile.txt ‏1 KB
    Q4.vi ‏7 KB

  • I just bought a new samsung 22" monitor and after talking to them found out it needs higher resolution then displayed in my settings,text resolution is bad. do I take back or can this be fixed?

    I just bought a new Samsung 22" monitor. The text resolution is really bad. After talking to Samsung, I found that the needed resolution is higher then what my Mini-Mac shows available. Can this be fixed or do I return the monitor?

    Let's try again...
    my cable goes from the "Thunderball" port on my mini with an adaptor to convert it to the regular cable
    You mean the Thunderbolt port.
    What Mac mini do you have? Apple menu > About This Mac.
    What Samsung monitor do you have?
    What cables are you using?
    Have you tried holding Option and click the Scaled resolutions button in System prefs > Displays?

  • In have added text to my photos on my mac. Is it possible to transfer that text to the same photos on my iPad which I then display on my TV using Apple TV.

    I have added text to my photos on my iMac. Is it possible to transfer this text to my iPad so that I can view the photos with text on my TV using Apple TV.

    How did you add the text to the photo in the first place?
    OT

Maybe you are looking for

  • I get continously "THE URL IS NOT VALID AND CANNOT BE LOADED" whereve I am, my homepage or sites I have been using always

    Since I downloaded the last Firefox version 3.6 15, no matter where I am, I am back in my homepage and I get the message "The URL is not valid and cannot be loaded", usually I can go back to the site I was in and keep doing whatever I was doing, but

  • HP HD 4310 Webcam Sensor

    Hi, I was wondering if anyone could tell me the sensor dimensions for the   HP HD 4310 Webcam they are not quoted in the specifications. If you also know the exact pixel pitch that would be even more helpful. Thanks 

  • Unable to open Reader

    Have Windows XP.  Since March have been unable to open pdf files (following auto update??) Cannot open Adobe Reader  In both cases get error message "Reader has encouontered a problem and has to close". Have tried uninstalling and reinstalling, says

  • Photoshop CS3 speed?

    Hi all, I wonder if anyone can help me? RE: How do I set up my G5 Quad for optimum Photoshop speed? I have an Apple Mac G5 2.5 Quad. One of the very last of the Power PC Tower Macs. I have two internal drives fitted. One 500GB runs the Applications,

  • Data Recovery Expert Needed

    Do you know any experts on data recovery on a MacBook Pro? Two catastrophic things happened: - A user's FileVault encrypted .spareimage completely went away. I believe that there is some kind of major drive failure corruption that occurred. - The use