If Then statement to write text in cell

I need a function to say
IF((B3>B2::THEN Write in B4"Some text")ELSE Write"Another text"))
eg
if 5 (B3) is greater than 3 (B2), write this text in B4 "Some text"
else write "Another text"
Part 2
A second action is required once the above is completed.
If A(then copy cell data from C1 into D10)(ELSE(copy cell data of D1 into D10))
eg.
IF((A is true copy the the "C1 Contents" into D10)(Else copy "D1 Contents" into D10))

Hi nandi,
The formula compares the values in cells B5 and B6. 
There is no criterion for the number in B9 to meet, other than being in cell B9.
There is no criterion for the number in B10 to meet, other than being in cell B10.
IF the value in B5 is greater than the value in B6, THEN whatever value is in B9 is copied to B11.
IF the value in B5 is NOT greater than the value in B6, THEN whatever value is in B10 is copied to B11.
The table below shows the effect of that formula, revised to fit the column it is in, for the three possible cases in rows 5 and 6.
The text colour is NOT set in the formula.
The text colour setting is format not content, and cannot be placed in the formula. It is controlled by a Conditional Format rule, set in the Cell Inspector. The first two rules in the box below the table are for cell B11.
If the value in B11 is equal to that in B9, then the text colur is set to the green shown in the Text: Color Well in the first rule.
If the first rule's condition is NOT met, then the second rule is checked.
If the value in B11 is equal to that in B10, then the text colur is set to the red shown in the Text: Color Well in the second rule.
As those are the only two values possible for B11, no further rules are necessary.
The third (unset) rule is included only to show the icon at the right end of the box where the condition value is entered,
To enter a fixed value, type it into the box.
To reference a cell, click the icon, then click the cell whose vlue is to be compared to the value in B11.
The conditional rules for cells C11 and D11 are the same as for B11, but compare the value in their cells with C9 C10 and D9 D10 respectively.
Regards,
Barry

Similar Messages

  • DISCOVERER 3.1, IF,THEN STATEMENT

    Dear All,
    I am not an experienced Discoverer user. Please forgive my ignorance.
    I would like to create a column that will "fill in" certain text based on the contents of other columns.
    I have been partially successful by using the DECODE function, but I have only been able to base my result on one column.
    What I need to do is create text statements that will vary based on the contents of 3 different columns. For example IF Fruit=** AND Color=*** AND Date Picked = *** then Statement= MY STATEMENT.
    FRUIT COLOR DATE PICKED STATEMENT
    APPLE RED 30<SYSDATE BAD RED APPLE
    APPLE RED SYSDATE O.K. RED APPLE
    APPLE GREEN SYSDATE BAKING APPLE
    PEACH PINK >SYSDATE GOOD FOR PIES
    Any and all help would be greatly appreciated!
    Thanks
    nancy
    [email protected] or [email protected]

    Dear Andrew,
    Thanks so much for taking the time to reply. I will try this.
    nancy
    Hi Nancy,
    I am not an experienced Discoverer user, but I know SQL. So here is a SQL solution, there might be Discoverer specific ways of doing this I do not know about.
    OK, First try breaking your problem down into parts.
    Outermost: DECODE(fruit,'APPLE', apple_only_section ,
    fruit,'PEACH', peach_only_section ,
    other_fruit_section)
    apple_only_section: DECODE( color , 'RED', apple_red_section ,
    color , 'GREEN', apple_green_section ,
    other_apple_section )
    // Here is where things get 'tricky' to try to determine date ranges.
    apple_red_section: DECODE ( greatest( trunc(sysdate)-30,date_picked) ,
    trunc(sysdate)-30) , 'BAD RED APPLE' ) ,
    'GOOD RED APPLE' )
    The 'greatest' statement above is key to doing date-ranges in a column,
    And you should think about whether the dates should be truncated to remove the time component (as I do for sysdate above).
    And once you have the sections like 'apple_red_section' that you know work, running independently, you start embedding them together to form the higher level statements.
    You end up with hard to understand gobbledegook, but it does work.
    The decode statement is tricky even for a programmer, so work in stages and get each part working before you try to combine them. Better yet get a programmer to write exactly what you want.
    Andrew

  • How to write text over a picture in Pages 5.0?

    In a Pages 5.0 document I want to write a text over a picture. This text will allways stay 'behind' the picture.
    I can change the order of the picture (in front of at the back), but the text will not become visable.
    It did work in Pages '09...
    What am I doing wrong?
    For for helping me...

    Assuming your text is in your document, and you insert a picture. While the picture is selected, you will notice that on the right format panel, the Arrange tab has appeared. Select either Stay on Page, or Move with Text — depending on your image goal — and then look at the Text Wrap feature. By default, once you drop a picture into the document, it is set to Automatic. This means you can place your pointer in the image and just move it around, while text flows around it. The smaller the image the better the flow effect. This is a discussion about Pages v5.2.2, but it will work the same in v5.5.
    Let's say you want the image flush aligned to the left margin, but want text to flow above, to the right, and below the image. Change text wrap automatic to Around, select the right icon for Text Fit, and adjust your spacing up or down for the proximity of the text wrap to the image. It looks like this with Text Fit spacing set to 9 pt.

  • Unable to write text in safari

    Since the last update I've been noticing that many times when I'm typing on a web page (pages that I've visited for years) safari, atomic, and chrome browsers will stop allowing me to edit or create text within boxes made to type out text. I've tried clearing all the browsers caches, etc. I've tried to see if its isolated to only one program and its not. Initially I can type, but if I navigate from the page in another tab, touch outside the text box on accident, or enter a couple paragraphs the ability to write text stops. This is not in text boxes that have a limited number of characters either.  I order to say, edit a profile on a dating site or Facebook I have to open notes, type out my blurb of text, and then paste it into the text box. The only thing it will allow me to do is delete text within the box or paste in text (and i cant even do this sometimes.) the problem is getting progressively worse. It almost feels like a virus would on a windows computer.

    I restored it from backup. I have lots of docs in pages and stuff I can't lose. I don't have the integration that macs have since I have the windows computer. I did everything the people on the AppleCare said to do. They can't figure it out either. I thought I'd see if anyone else is having or have had the same issue.

  • Write Text Data Array to text file

    Greetings all. I hope someone can help me as I am really under the gun. The attached vi shows the basics of what I am trying to do. I have already written a vi that takes the Cal Data Array and prints it out in a nicely formatted report. My problem is that the powers that be also want the data saved to a generic text file that can be copied and printed out anywhere they like. As such, I need to save the data to a generic text file in column format such that it will all fit on one page in landscape mode. There are a total of 12 columns of data. I have been trying to create something that would format each column to a specific length instead of them all being the same. No luck so far. Basically, I need columns 1,2,3,8 and 12 to be length of 5. The rest a length of 9. I have tried to place the formatting part in a for loop with the formatting in a case, but it does not appear to work. I really need this quick so if anyone has any ideas, please help. As always, I really appreciate the assistance.
    Thanks,
    Frank
    Attachments:
    Write Cal Data to Text File.vi ‏21 KB

    pincpanter's is a good solution. Beat me to it while I was away building an example. Similiar approach using two for loops and case statement. Here is my suggestion anyway....
    cheers
    David
    Message Edited by David Crawford on 11-23-2005 09:37 AM
    Attachments:
    Write Text Data Array to text file.vi ‏31 KB

  • CS4, Cannot write text

    I cannot write text on certain jpg images.  Any help is appreciated.
    CS4-64bit, CS4-32bit, and Elements behaves same.  I tried on
    Windows-7(64bit) and Windows-XP, but the symptom is same.
    After opening the captioned jpg image, I click "Text Tool", then draw
    rectangle frame by mouse.  The right side pane tells that layer-1 is
    created.
    At this point, there is no cursor(caret)  in the text box. Hitting keyboard
    does not bring any letters in it. I have set colors and letter size as
    visible.
    After cliking "move tool", the layer1 indicator shows the text I typed.
    But I see no text in the text box on the picture.
    Versions of CS4 is 11.0.1 and Elements is 6.0 of Japanese.
    The jpg file was created by my friend using a scanner. The picture
    is displayed normally on those applications as well as other image
    editing softwares.
    FastStoen (an image editor) and other softwares can write text
    on the picture.  Several pictures he made behaves same, on the
    other hand, pictures I created on my machine have no problems.
    Do I miss any setting?
    Thanks in advance.
    Tak
    (attached is the captioned file, but blurred extreamly respecting copyright.)

    Thanks John,
    The information follow:
    Mode: RGB Color, 8bit/channel
    Resolution: 5782x3946 pix, 36.12x25.06mm, 4000pix/inch
    Format: jpg
    Other information that I found:
      Made by Nikon Coolscan V ED, software is Nikon Scan version 4.0.0 W
    rgds
    Tak

  • How to write text file in Shockwave?

    Does anybody know how to write text file in Shockwave to
    user's disk?
    Thanks in advance.

    Those Xtras can wreak to much havoc when used with the wrong
    intent.
    What you can do is write with setpref and store a list of
    saves and the
    saves itself seperatly. Then you'd have to build your own
    save/open
    dialog to let the user:
    * pick a previously saved file to load or overwrite
    * have the user type the name of a new file to save.
    Only thing that remains is that the user cannot decide where
    the files
    are saved.
    Manno
    SiuLinda wrote:
    > Thanks a lot for your reply.
    > Yes, cookies is good but I have to write a program to
    save the text file in
    > where the user wants, user can open these files later if
    they like, like using
    > Filextra and Fileio, but I found all of these xtras seem
    to be not supported in
    > shockwave.
    >
    Manno Bult
    [email protected]

  • Write text to graph

    Hello, guys, I wrote a code to write text into the graph, however, I don't quite like the way it works (save image, read image into a picture, add text, save again). Do you have any suggestions ?
    Any help will be appreciated!
    Best
    Camu
    Attachments:
    Saving.vi ‏34 KB

    That's not what you initially said. You initially said you wanted to draw inside the graph.
    If you want to draw the text while the graph is displayed on the front panel and have it visible while the code is running you can place a transparent picture control over the graph and simply draw the text on this picture control. Doing this will prevent you from using the graph palette for zooming and using cursors since the picture control will receive the mouse clicks. When you want to export the combined image you just need to get the graph image and merge it with the picture control.
    If, on the other hand, you just want to add the text when you save it, then you can do so by getting the graph image and drawing on it before you save:
    Message Edited by smercurio_fc on 06-25-2008 01:48 PM
    Attachments:
    Example_VI.png ‏13 KB

  • Writing an if-then statement

    I would like to write an if-then statement that would hide an element (image of a pause button) when the main timeline is stopped. I have a play forward button that when pressed will switch to a pause button. The same happens for the play reverse button. This way the buttons are like toggles...press once it plays and press again and it stops. I have this working fine, but there are several stop triggers throughout the timeline, and when the animation is stopped my pause/play button will still be in the pause button mode, thus a user will not be able to restart the animation. There are too many of these stop triggers to make it practical to add a hide command to each to hide the pause button (thus making the play button underneath accessable), so what I would love is if I could write a statement that would hide both pause buttons whenever the timeline is not running.
    I need to know the correct way to write the code and where to put it.
    Thanks in advance,
    Greg

    Hi Joel...
    you can view the test site here http://cyclesofyah.com/slider-test_screen-swap-test/
    and you can download the files here http://cyclesofyah.com/chrono/cycles_test.rar
    you won't see much happen until you click on the gear icon. While the timeline is running you can type any number on your keyboard, and it will take you to a stop trigger.
    Thanks

  • [WPF] DataGrid: apply style to text into cell from codebehin

    Hi,
    in a dataGrid, can I apply a style to text into cell from code behind?
    I know that I can use DataTrigger, but I can't add a new property to model that it is binds with datagrid.
    With 
    DataGridRow tmpRowSelected = dgProperties.ItemContainerGenerator.ContainerFromItem(dgProperties.SelectedItem) as DataGridRow;
    I get my selecte row, I would apply TextDecorations.Strikethrough to text into the cells of this row.
    Thanks.

    You could use a helper method that finds all TextBlock elements within the DataGridRow in the visual tree and set any property (TextDecorations, Style, etc.) of these:
    DataGridRow tmpRowSelected = dgSample.ItemContainerGenerator.ContainerFromItem(dgSample.SelectedItem) as DataGridRow;
    if (tmpRowSelected != null)
    foreach (TextBlock txtBlock in FindVisualChildren<TextBlock>(tmpRowSelected))
    txtBlock.TextDecorations = TextDecorations.Strikethrough;
    private static IEnumerable<T> FindVisualChildren<T>(DependencyObject depObj) where T : DependencyObject
    if (depObj != null)
    for (int i = 0; i < VisualTreeHelper.GetChildrenCount(depObj); i++)
    DependencyObject child = VisualTreeHelper.GetChild(depObj, i);
    if (child != null && child is T)
    yield return (T)child;
    foreach (T childOfChild in FindVisualChildren<T>(child))
    yield return childOfChild;
    Hope that helps.
    Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question.

  • How can I write text in front of attachments?

    I want to send five PDFs by email. When I highlight and click email, the attachments appear in the message body.  I want to write text before these attachments but I can't seem to be able to move the cursor in front of the first picture. Does anyone know how I can do this? Or send the attachments as thumbnails?

    Hello Biojem,
    This can be done by right-clicking the PDFs as they appear in Mail, then choosing "View as Icon."
    To change the way the PDF file is displayed in the current message window, Control-click the icon or visible portion of the PDF and choose "View in Place" or "View as Icon" as appropriate from the shortcut menu. Note that this only affects how you see the PDF in this message's window, it is not a permanent change.
    Mac OS X Mail: About PDF attachments
    http://support.apple.com/kb/TA22343
    Cheers,
    Allen

  • Text stretches cells

    I'm doing my first web site with tables (I used layers for
    the last one). I have a cell which contains text. Adjacent cells
    contain buttons. When i write text in the cell, the word wrap
    causes the bottom of the cell to stretch downward, even when
    there's plenty of room left. When I try to add line spacing with a
    hard return, it does the same thing. This causes adjacent cells to
    stretch as well, which throws off the layout of buttons etc. Is
    there a way to lock a cell so that text can be added without the
    cell automatically resizing? Thanks for the help.

    This is how HTML tables behave. They stretch to fit their
    contents.
    > Is there a way
    > to lock a cell so that text can be added without the
    cell automatically
    > resizing?
    You cannot prevent tables from doing what tables do. I
    believe the problem
    you are having can be simplified if you consider this example
    Put a 2 row by 2 column table on the page. Merge the two
    right hand cells
    into a single column. Put an image into each left cell, and
    you will see
    that they merge vertically seamlessly. Now begin to add
    content to the
    merged cell on the right and you will see that at some point
    you will have
    forced the two left cells to begin to split apart vertically.
    The more
    content you add to the right, the further apart the two left
    cells will get.
    See what I mean?
    To solve the problem, instead of making your page sit in a
    single table,
    have it in several nested tables. You should be able to put a
    two column
    table on the page with a nested table in each column. Put
    your navigation
    in the left nested table, and the
    content in the right nested table. Now, changes to either of
    the inner
    table's
    structure will not affect either of the inner nested tables.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Peter Tulipan" <[email protected]> wrote in
    message
    news:[email protected]...
    > I'm doing my first web site with tables (I used layers
    for the last one).
    > I
    > have a cell which contains text. Adjacent cells contain
    buttons. When i
    > write
    > text in the cell, the word wrap causes the bottom of the
    cell to stretch
    > downward, even when there's plenty of room left. When I
    try to add line
    > spacing with a hard return, it does the same thing. This
    causes adjacent
    > cells
    > to stretch as well, which throws off the layout of
    buttons etc. Is there a
    > way
    > to lock a cell so that text can be added without the
    cell automatically
    > resizing? Thanks for the help.
    >

  • I'm new to Mac and I am trying to write text on a picture

    We scanned a picture and I can't figure out how to write text on it.  Do I need a different program other than iPhoto?  Any advise would be greatly appreciated!

    Simplest way to do it:
    Open the photo using Preview instead of iPhoto.
    Click on the "annotate" button and the in the annotate tool bar click on the icon of a rectangle with letters inside it.
    Then click drag on the area of the photo where you want to type to select that area and type in it.
    Preview is an application found in your application folder.

  • Scanning photo and does scan then states ;Non writable will not save?????

    scanning photo and does scan then states ;Non writable will not save?????

    If you're having trouble making changes to files that are inside your home folder (represented by a house icon in the sidebar of a Finder window), or if you can't get changes to the settings of an application to stick, then please see below.
    Back up all data.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    I've tested these instructions only with the Safari web browser. If you use another browser, they may not work as described.
    Step 1
    If you have more than one user, and the one in question is not an administrator, then go to Step 2.
    Triple-click anywhere in the following line on this page to select it:
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR..; sudo chown -R $UID:staff ~ $_; sudo chmod -R u+rwX ~ $_; chmod -R -N ~ $_; } 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    You'll be prompted for your login password. Nothing will be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command may take a few minutes to run, or perhaps longer if you have literally millions of files in your home folder. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1, if it frightens you, or if it doesn't solve the problem.
    Boot into Recovery. When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password dialog will open. You’re not going to reset a password.
    In the dialog, select the startup volume ("Macintosh HD," unless you gave it a different name) if it's not already selected.
    Select your username from the menu labeled Select the user account if it's not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • If-then statement in formula node

    **Note - The attached file shows the current block diagram.
    I have a formula node inside a for loop. Inside the formula node I am trying to program the if-then statement:
    If T1<2.0E-5 OR T1>5.5E-4 THEN GOTO 3
    U7=U7+V
    I have 4 items I need help with:
    (1) Is 'II' the correct operator for 'OR'?
    (2) Is 'goto' an acceptable operator within LabVIEW?
    (3) 'U7' is building a 1D array. How do I need to define it? Is it simply 'int U7'? Also, I will add an output value named 'U7' on the formula node wall with an indicator wired to it from outside the for loop.
    (4) Is my use of the equal sign appropriate or do I need to use '=='?
    Thanks for the help.
    Philip
    Attachments:
    if-then_in_FN.jpg ‏18 KB

    Thanks for the help. I went ahead and rewrote the program so I could omit the 'goto's. Another problem that I am having is that I want 2 statements for 1 assignment:
    if (T1>=.002004 && T1<=.002584)
    B1=U
    A1=V;
    I want to assign both B1 and A1 values when the above condition is true. I tried a comma between the U and A1 but it doesn't work as well. Should I define A1 and B1 separately? Or would this create problems?
    if (T1>=.002004 && T1<=.002584)
    B1=U;
    if (T1>=.002004 && T1<=.002584)
    A1=V;
    Thanks,
    Philip

Maybe you are looking for