Adding text to a string

Hi
I am new to Numbers (I am using 09 on OS X 10.6.8)  - I need to add a couple of characters to the end of a text string in one cell, if the condition in another cell is true.
A1 contains a persons name  A2 can contain the formula I am seeking A3 will contain a date (or not)
So what I would like is,for a formula to detect if A3 contains a date - then if it does, to add the specified text (lets say a 'space' and '§') to the END of the persons name in A1.
This is a work around for the often asked conditional format rule to change text colour if . . .
Hope you can help
C

Hi Colin
Formulas can change only the content of the cell containing the formula. A cell may contain an entered value or a formula, but not both, so unless the names in A2 have been generated by a formula in that cell, you cannot use a formula to append additional text to them.
But you've said this is "a work around for the often asked conditional format rule to change text colour if . . ."
Conditional format rules compare the value in a cell to a fixed value or to the value in another cell. Rather than changing the value in to cell to be formatted, you could change the value in another cell to match the value in the target cell under specific conditions, then use a comparison of that cells value to the value of the target cell's own value to trigger the conditional format.
Here's a sample.
The rule shown is for A4. The other two cells with names in column A use the same rule, but with the column C comparison cell in their own row. Column C, shown with yellow fill, may be hidden.
C2 contains the formula below, which is Filled down to the other cells in column C:
C2: =IF(LEN(B2)>0,A2,"")
Note that this formula will detect any type of data entered into B2, not just a date.
Regards,
Barry

Similar Messages

  • How can i get the correct text from a string like it show in the original source with the quotation marks in the right place ?

    The text is in hebrew so the problem is that sometimes the quotation marks not in the right place.
    For example i have this text: תווית
    על בגד: ''תן לאישה לכבס. זה תפקידה''
    This is the source original text you can see the quotations marks and they are not in the right place and all i did is copy paste.
    And this is a screenshot of how this text looks like in the website in the original:
    You can see now where the quotations marks should be.
    Now this is how i'm using the text in my program:
    First of all i'm using a webclient to download the page from the website and i'm also encoding it to windows-1255 since it's in hebrew.
    using (var webClient = new WebClient())
    webClient.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)");
    byte[] myDataBuffer = webClient.DownloadData("http://rotter.net/scoopscache.html");
    page = Encoding.GetEncoding("windows-1255").GetString(myDataBuffer);
    Then i'm extracting the places i need by reading the html file lines and parsing the right text and it's link.
    string loc;
    List<string> metas = new List<string>();
    List<string> metas1 = new List<string>();
    List<string> lockedLinks1 = new List<string>();
    string text = "";
    string mys = "";
    public List<string> LockedThreads(string filename)
    lockedThreads = new List<string>();
    lockedLinks = new List<string>();
    Regex textRegex = new Regex("ToolTip.*?(?=','<)");
    string[] fall = File.ReadAllLines(filename);
    for (int i = 0; i < fall.Length; i++)
    if (fall[i].Contains("http://rotter.net") && fall[i].Contains("locked")||
    fall[i].Contains("locked_icon_general") ||
    fall[i].Contains("locked_icon_anchor") ||
    fall[i].Contains("icon_anchor") ||
    fall[i].Contains("locked_icon_fire") ||
    fall[i].Contains("locked_icon_sport") ||
    fall[i].Contains("locked_icon_camera") ||
    fall[i].Contains("locked_icon_movie"))
    Regex linkParser = new Regex(@"\b(?:https?://|www\.)\S+\b", RegexOptions.Compiled | RegexOptions.IgnoreCase);
    foreach (Match m in linkParser.Matches(fall[i + 2]))
    if (m.Value.Contains("><b"))
    loc = m.Value.Replace("\"><b", string.Empty);
    lockedLinks.Add(loc);
    string txt = fall[i - 1];
    string text = textRegex.Match(txt).Value.Replace("ToolTip','", String.Empty);
    if (text.Contains("&rsquo;"))
    text = text.Replace("&rsquo;", string.Empty);
    lockedThreads.Add(text);
    Already here on the List lockedThreads you can see the quotation marks not in the right place as in the original:
    After i'm parsing the text and links and adding them to the Lists in another class i'm doing a comparison using this Lists:
    foreach (List<string> l_branch in ListsExtractions.responsers)
    TreeNode l_node = treeView1.Nodes.Add(l_branch[l_branch.Count - 1]);
    if (ListsExtractions.lockedThreads.Contains(l_node.Text))
    l_node.ImageIndex = 0;
    l_node.SelectedImageIndex = 0;
    for (int l_count = 0; l_count < l_branch.Count - 1; l_count++)
    TreeNode l_subnode = l_node.Nodes.Add(l_branch[l_count]);
    if (ListsExtractions.lockedThreads.Contains(l_subnode.Text))
    l_subnode.ImageIndex = 0;
    l_subnode.SelectedImageIndex = 0;
    The problem is in the line:
    if (ListsExtractions.lockedThreads.Contains(l_node.Text))
    When it's getting to the line with the quotation marks it's never equal.
    Now there are more quotation marks.
    In general the problem when comparing both text if it's having quotation marks it's not the same.
    So i have two options:
    1. To fix it somehow so the quotation marks will be the same in both variables when comparing and also the same like in the original as they show in the html page.
    2. To remove the quotation marks from both variables.
    What should i do ? And how ? I was prefer to use the original quotation marks like in the original since they have a meaning in the place they should be. The question is how can i do it ?
    This is example of the block from the html file where the text with the quotation marks is:
    <TD ALIGN="RIGHT" VALIGN="TOP">&nbsp;<font size=-1 color=#ff9933><b>9418</b></font>&nbsp;</TD></TR><TR BGCOLOR="#eeeeee">
    <TD ALIGN="RIGHT" VALIGN="TOP">
    <body onmousemove="overhere()">
    <a onmouseover="EnterContent('ToolTip','תווית על בגד: &rsquo;&rsquo;תן לאישה לכבס. זה תפקידה&rsquo;&rsquo;','<u><span style=color:#000099;>כתב: Spook בתאריך: 08.03.15 שעה: 22:11</span></u><br>מחאת טוויטר קמה בעקבות תוויות שוביניסטיות שהדפיסה חברת אופנה באינדונזיה לפיהן תפקיד הכביסה מוטל על האישה. החברה התנצלה אך כנראה רק עשתה רק יותר נזק לע...'); Activate();" onmouseout="deActivate()" href="javascript:void(0)">
    <img src="http://rotter.net/forum/Images/new_locked_icon_general.gif" border="0"></a></TD><TD ALIGN="right" VALIGN="TOP" WIDTH="55%">
    <FONT CLASS='text15bn'><FONT FACE="Arial">
    <a href="http://rotter.net/cgi-bin/forum/dcboard.cgi?az=read_count&om=189696&forum=scoops1"><b>
    <font color="898A8E">תווית על בגד: ''תן לאישה לכבס. זה תפקידה''</b>
    </a></font></TD>

    Ok, it is unclear on what is happening here.
    Are you saying that when the webclient gets the data that it is not honoring the quote characters? Or the processing of the data buffer is causing issues?
    This is what I see the of your example text which is trying to be parse out:
    <a onmouseover="EnterContent('ToolTip','תווית על בגד: &rsquo;&rsquo;תן לאישה לכבס. זה תפקידה&rsquo;&rsquo;','<u><span style=color:#000099;>כתב: Spook בתאריך: 08.03.15 שעה: 22:11</span></u><br>מחאת טוויטר קמה בעקבות תוויות שוביניסטיות שהדפיסה חברת אופנה באינדונזיה לפיהן תפקיד הכביסה מוטל על האישה. החברה התנצלה אך כנראה רק עשתה רק יותר נזק לע...'); Activate();">";
    It appears to me that the  escapes `&rsquo;` does not have matching `&ldquo;` anywhere within the tooltip. So it appears that the page properly places left quotes in when processing the page, but the raw html has broken text.
    Hence a garbage in, garbage out situation.
    William Wegerson (www.OmegaCoder.Com)

  • Adding text to indesign pages with specific font ,size,and color using javascript

    Hello,
    Using javascript i am able to add some text to each page of an indesign file.
    myNewText = "SOME TEXT"
    myTextFrame = myPage.textFrames.item(0);
    tempframe = myTextFrame.contents;
    myTextFrame.contents =  myNewText + tempframe ;
    But i want to specify the font used,size and color for that text.
    When i try the code mentioned in indesign javascript scripting guide
    myNewText .appliedFont = app.fonts.item("Times New Roman");
    myNewText .fontStyle = "Bold";
    nothing gets changed and font family already used stays the same.
    How can i do that only for the added text and not for the whole content?I dont want to add the text to a new text frame I want to append it to the existing text frame.
    And is there a way to specify font size too?
    thank you

    There's a mixup going on here. Let's see if we can sort out some of it
    at least.
    If you just want to add new text to an already existing text frame,
    that's easy:
    myTextFrame.contents += "Hello";
    But if you want the new text to have unique formatting, it's a little
    more complicated.
    There are two simple ways to do it, I think:
    1. Create a temporary text frame, as you have done, and add the text,
    and format everything in there. Then move() that formatted text to the
    end of myTextFrame and delete the temporary frame:
    tempFrame = app.activeDocument.textFrames.add();
    tempFrame.contents = "New Text";
    tempFrame.paragraphs[0].appliedFont = app.fonts.itemByName("Times New
    Roman"); // etc...
    tempFrame.paragraphs[0].move(myTextFrame.insertionPoints[-1],
    LocationOptions.AFTER);
    tempFrame.remove();
    2. The other option, is to add the text directly to your textFrame. But
    if you want to format only that text, you have to store where the text
    started:
    myTextFrame = app.selection[0];
    firstInsertionPoint = myTextFrame.insertionPoints[-1].index;
    myTextFrame.contents += "New Text";
    myAddedText =
    myTextFrame.characters.itemByRange(myTextFrame.insertionPoints[firstInsertionPoint],
    myTextFrame.insertionPoints[-1]);
    myAddedText.appliedFont = app.fonts.itemByName("Trajan Pro"); // etc.
    What you've done in your sample script, however, is to try to apply a
    font to a simple JavaScript string. It won't work, but the way you did
    it, it won't throw an error either, because in fact you've created a new
    property of your string. (myString = "Hello"; myString.appliedFont =
    "Times"; // myString now has a Javascript property called appliedFont --
    but that's nothing to do with InDesign!)
    HTH,
    Ariel

  • Photoshop CC : Workspace Flashing Black When Inserting Guides & Completely Black When Adding Text

    I recently bought Photoshop CC (2 Days Ago) and shortly after installing I jumped onto Photoshop CC and started to set up the prefferences for my personal use and started to just do some basic stuff and see whats new in CC. when inserting Guides & adding Text the workspace started to flash/stay BLACK. I don't know whats going on but my specs are better than the minimum requirements? Any idea whats going on? Operating System : Windows 8.1

    Have a look through this step by step guide.
    http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html
    It's coming up 1am here, so I am calling it a night.

  • I saved a PDF doc in adobe and then added text to the form. But every time I try an email it it only

    I saved a PDF doc in adobe and then added text to the form. But every time I try an email it it only sends the original form without text. Once I've changed a doc in Adobe, how can I save it so that I'm able to use it with added text and notes? Also, I'm using a new iPad.

    If you are using those apps or websites, they are likely viewing the PDF using iOS' built in PDF previewing, which will not show annotations and markup to the PDF. We have informed Apple of this issue, but do not have any insight into whether or when they will fix it.
    Regarding the qustion about importing pictures, Adobe Reader does not provide any capabilities to import pictures into a PDF. To do this, you'll need to use Acrobat, available on your desktop computer.

  • How can I remove the underline from added text for tracing edits

    We have a lot of content that includes underscores and when we use the track text edit feature added text is green and underlined. How can I change the properties of the added text to not be underlined?

    Starting with FM11, you could specify a custom colour to be used for track changes, but the styles (underline, strikethrough) are still hardwired.
    Even if you try to make the changes to the rack text edit conditions in a MIF file, they will get overwritten as the MIF is interpreted when opened by FM.
    Please use the new Bugs & Features form to submit an enhancement request: https://bugbase.adobe.com/index.cfm

  • How to display a text in a string as a link??

    Hi All,
    I am displaying a string in one of the column in my datagrid. I have to search for a specific text in the string and if it is there i have to display it as a link/linkbutton/button or anything which user can click.
    E.g
    String displayed in the datagrid column is "My Name is Pratik" and if text "Pratik" is found, i have to display "Pratik" as a link which user can click.
    How can i achieve this??
    Thanks

    If you want your text to be read-only, you can use the RichText component instead of TextArea. Search for Text Layout Framework for more info on how to mark up your text.

  • Adding Text to a photo...Need help

    I'm new to Adobe Photoshop Elements 7. I'm following the instructions for adding text to a photo, but I can't see what I'm typing. I can see the cursur, but nothing else. I can see the text in the Layer, but not on the photo. Please help.

    Check the font size in the options bar. If it's really small you won't see it.
    Look in your layer's palette and insure your text is in a layer located above the photo in the stack.
    You might also check your image's resolution in the Image Size dialog. I've seen a couple of posts where someone changes the resolution to 1 with resample turned off...then can't see the text because it's too small even when they have large numbers inserted in the font size box.

  • Acrobat crashes whenever adding text

    This occurs whether there is a text box to be filled in or using the add text function. There may be other things also crashing it but this is the biggest issue for me on my Mac host system. If I open the same documents in a Windows VM using Reader, I can enter text without difficulty.
    Mac 10.8.4
    Acrobat XI Version 11.0.03
    Here's some of the error message displayed:
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Exception Type:  EXC_CRASH (SIGABRT)
    Exception Codes: 0x0000000000000000, 0x0000000000000000
    Application Specific Information:
    abort() called
    terminate called throwing an exception
    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0   libsystem_kernel.dylib                  0x929d3a6a __pthread_kill + 10
    1   libsystem_c.dylib                       0x96905b2f pthread_kill + 101
    2   libsystem_c.dylib                       0x9693c4ec abort + 168
    3   libc++abi.dylib                         0x94e1a7e0 abort_message + 151
    4   libc++abi.dylib                         0x94e18249 default_terminate() + 34
    5   libc++abi.dylib                         0x94e18289 safe_handler_caller(void (*)()) + 13
    6   libc++abi.dylib                         0x94e182f1 std::terminate() + 23
    7   libc++abi.dylib                         0x94e193e6 __cxa_throw + 110
    8   com.adobe.linguistic.LinguisticManager          0x14054a46 0x1404e000 + 27206
    9   com.adobe.linguistic.LinguisticManager          0x1405dabb devtech::LM_FileSpec::LM_FileSpec(FSRef const&) + 43
    10  com.adobe.AcrobatPlugin.Spelling          0x1340b733 0x133d0000 + 243507
    11  com.adobe.AcrobatPlugin.Spelling          0x1340b05e 0x133d0000 + 241758
    12  com.adobe.AcrobatPlugin.Spelling          0x1340affb 0x133d0000 + 241659
    13  com.adobe.AcrobatPlugin.Spelling          0x13400acb 0x133d0000 + 199371
    14  com.adobe.Acrobat.framework             0x00286b29 0xda000 + 1755945
    15  com.adobe.Acrobat.framework             0x0028666a 0xda000 + 1754730
    16  com.apple.CoreFoundation                0x9743c406 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 22
    17  com.apple.CoreFoundation                0x9743bda5 __CFRunLoopDoTimer + 709
    18  com.apple.CoreFoundation                0x97420bb2 __CFRunLoopRun + 1842
    19  com.apple.CoreFoundation                0x9742001a CFRunLoopRunSpecific + 378
    20  com.apple.CoreFoundation                0x9741fe8b CFRunLoopRunInMode + 123
    21  com.apple.HIToolbox                     0x9017ff5a RunCurrentEventLoopInMode + 242
    22  com.apple.HIToolbox                     0x9017fbf5 ReceiveNextEventCommon + 162
    23  com.apple.HIToolbox                     0x9017fb44 BlockUntilNextEventMatchingListInMode + 88
    24  com.apple.AppKit                        0x9070f93a _DPSNextEvent + 724
    25  com.apple.AppKit                        0x9070f16c -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 119
    26  com.apple.AppKit                        0x907055cc -[NSApplication run] + 855
    27  com.adobe.Acrobat.framework             0x000e38b0 0xda000 + 39088
    28  com.adobe.Acrobat.framework             0x000e1ff3 RunAcrobat + 307
    29  com.adobe.Acrobat.Pro                   0x000d3ed5 main + 91
    30  com.adobe.Acrobat.Pro                   0x000d3e71 start + 53

    I'm having a similar issue. Every third or fourth time I save after adding text Acrobat crashes with no meaningful reason (at least none in the crash message)...even though the added text is saved. I'm working through trying different text settings to see if there is a problem there. I'll post what I find.

  • Unable to print added text only in Acrobat Pro XI

    User is trying to print added text that's been added to an existing PDF page.  In Acrobat X she chose "Form fields only" under Comments & Forms from the Print menu.  In XI it produces a blank page.  The added text only shows up if she chooses Document or Document and Markups, but then she gets the entire document.  She only wants the added text to print.

    Thanks to all who commented here.  I found that adding text using Tools>Content Editing>Add Text will not allow the user to print solely the added text.  As everyone responded here, that's as designed.  However, using Comment>Annotations>Add Text does allow the user to print solely the added text as she was used to doing in Acrobat X.  I thought it was the same tool under two different headings, but obviously they interact differently in the print menu.  Choosing Form fields only from the Print Menu's Comments & Forms panel will produce solely the text added under the Comment panel's Add Text tool without printing the rest of the document page.  And the user doesn't have to turn the document into a form to do so.

  • Why does Preview automatically resize the text box to cut off the last character of added text? How do I fix it?

    Why does Preview automatically resize the text box to cut off the last character of added text? How do I fix it?
    I use the Tools > Annotate > Add Text feature, and when I click away after adding text, it automatically changes the text box size such that the last letter -- or last word -- gets bumped off into an invisible line below it, forcing me to manually adjust every single text box. It is highly annoying when trying to complete PDF forms (e.g. job applications).
    It appears to be a glitch, quite honestly, an error resulting from Apple's product design. Has it been fixed in the new operating system (for which they want $30)?
    I would very much appreciate any help you can provide! Thank you for your time.

    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • Why does added text disappear when I move the cursor

    After adding text to an unprotected .pdf file the text disappears when I move the cursor and want to add a second box of text. The text in the first box reappears when I double click on the space where the box was. How do I set the text so that it remains visible and printable?

    Hi,
    I think the data in the PDF file was filled-in using MAC preview.
    One option is to ask the user to fill the file again using Adobe Reader or Acrobat.
    Or else refer to following link:
    http://acrobatusers.com/actions-exchange/pdf2fdf_auto-save
    Regards,
    Anoop

  • How to convert a "text variable" to String with plugin

    Hello,
    I am currently developing a InDesign (CS5) plugin, where I need to manipulate text variable.
    From the plugin I want to convert the "text variable" to string (in principle I should use the method "VariableToString (..)" of "ITextVariable")"
    My problem is, how to find the text varial from its name (I think I should use the method "FindLocationsUsed(..)" of "ITextVariableSuite") and then convert it to String
    I don't know how to use interfaces ITextVariable and ITextVariableSuite
    Plugin implemented in C++ language
    thank you

         InputStreamReader in=new InputStreamReader(fis);
          StringWriter out=new StringWriter();
          char[] buffer=new char[8192];
          int sizeRead;
          while ( ( sizeRead=in.read(buffer, 0, 8192) ) != -1 )
            out.write(buffer, 0, sizeRead);
         String content=out.toString();

  • Adding text to a photograph

    Hi,
    My question is in 2 parts really:
    1) Once the photos are uploaded into iphoto, is there anyway of adding text to the photo?  Say a title, or details of something about the picture that I wouldn't want to forget?  If so, how can I do this?
    2)My camera has the ability to add text to pictures.  If I did this, when I came to uploading them into iphoto, would the text come with the pictures, and if so, where would it be displayed?
    3)When exporting the photographs, to share with others or print, would I be able to disable the text, so it doesn't show on the photograph?
    Thanks very much.

    in iPhoto there are several ways to add information about a photo - a title - a decscription - keywords - putting it in an album = these are all metadata and local to your computer - you can choose to include or not include them when you export a photo
    if you want to actually put text on a photo then you must use a thir party program (Preview can do this - Annotate) or external editor - one you add text to a photo it is there and the old information behind the text is gone
    as to what you camera does - read the camera manual - if it puts text in the EXIF ro IPTC fields and if iPhoto reads thos fields then that information will be part of the iPhoto database - it it puts text directly on a photo then it is part of the photo
    LN

  • Adding text to a photo in iphoto

    How do you add text to a smart album photo?  Also, when syncing to my iphone, I want the text to appear.  I am building a tropical plant field guide.

    iPhoto has no capability of adding text onto an image.  For that you'll need a 3rd party image editor setup as the  external editor in iPhoto.
    Some Image Editors that support  layers:
    Photoshop Elements 11 for Mac - $79
    Rainbow Painter - $30
    Imagerie - $38
    Acorn - $50
    Pixelmator - $60 
    Seashore - Free
    Portraits and Prints - Free
    GIMP for Mac - Free
    OT

Maybe you are looking for