Can conditional formatting detect formulas?

I have a spreadsheet for home accounts/debts etc, and I like to put forward calculations in columns so I can get an idea of how long it will take to pay off debts. These forward calculations are formulas based on APRs etc, and I manually format them in grey italics. When a bill comes in with the actual amount on it, that formula gets replaced with the bill amount, and I switch the format to black plain text so I can see it's an actual value.
Is there any way, using conditional formatting or otherwise, I can automate this so that when I type in a real value it can detect it's not a formula and reformat the cell?
Thanks!

No.
Conditional format rules depend on comparing the value contained in the cell, and pay no attention to how that value got there.
That said, it might be possible to examine the value and determine whether it was entered directly or formula generated. If the value in the cell is NOT equal to the value in the cell rounded to two decimal places, then chances are the value was generated by a formula. Not perfect, as it will not detect generated values that are exact to zero, one or two decimal places (eg. 12.00000, 12.10000, 12,12000, etc), and won't find any values where the formula itself actually rounds (as opposed to 'displays') its result to two (or fewer) decimal places.
Here's an example:
As indicated in column A. the values in B2 and B3 are entered numbers, those in B4 and B5 are calculated. Column B is formatted to DISPLAY these numbers as Currency, with the usual two decimal places.
Column C uses the formula =B to transfer the  actual values in column B. Formatting is set to automatic.
Column D uses the formula =ROUND(B,2) which rounds the values in column B to two decimal places. Formatting is set to automatic, so what is shown is the actual value.
The conditional formatting rule, shown for cell B5,  compares the actual value in column B with its rounded counterpart in column D. If they are the same, the assumption (wrong, in this case) is that the value was entered, and the rule applies bold style to the text and a light grey fill to the cell. If they are different, no change is made.
Note that there's some tedium involved in setting this up, as the rule for each cell uses a different comparison cell, and these must be set (or reset) individually.
Regards,
Barry

Similar Messages

  • Can conditional formatting refer to the value in another cell

    Is there a way for conditional formatting refer to the value of another cell instead of entering the value in the conditional format box?

    wwjd is right. no way of doing that.
    WWJD, two wuestions:
    1) do you have the new office 2008 for mac beta (is it out?), how close is it to the new features in Office 2007 for windows, if you do?
    2) why do our pictures keep getting cut off after a day of posting. I posted a pic yesterday and its already not showing on the page the next day. Do they not load them after the question is marked as solved?
    thanks,
    Jason

  • Conditional Formating in Formula

    I am trying to create something like the followign - but this does not work.
    if {Table.field1} = ' ' then crItalic('none entered')
        else Table.field2}
    I need to be able to do this with in 1 formula, as there will be a number of fields that this needs to work with and the formatting is different on the fields.  I don't want to have to try and manually format each field.
    Thanx,
    barb

    Right-click on the field you want the formatting to affect.
    Choose "Format Field"
    Click on the Font tab.
    Click on the X-2 button to the right of "Style"
    In the X-2 formula editor enter the following:
    IF (ISNULL ({Table.field1})) or ({Table.field1} = ' ') then crItalic
    (of course you can use if/then/else to cover other conditions as well...)
    Do this in the X-2 Formula editor for Style under the font tab.  DO NOT simply use a regular formula.

  • Conditional Formatting in RTF templates

    HI
    I am just going around with designing of rtf templates. I have a question regarding the conditional formatting feature. The question is
    IF i am having different type of customers(corporate,individual,etc..) passed as parameters, Can an particular cell be formatted with different colors for different customers. for example, if the parameter is corporate customer the the color of particular cell should be RED in color, and if parameter is Individual the color of cell Must be GREEN in color.
    Please help me out with this.
    Thanks in advance

    Yes you can conditionally format the individual cells.
    Take a look at the guide (link provided) and search for "Cell Highlighting":
    http://docs.oracle.com/cd/E10415_01/doc/bi.1013/e12187/T421739T481157.htm
    Example code: <?if:debit>1000?><xsl:attribute xdofo:ctx="block" name="background-color">red</xsl:attribute><?end if?> <?debit?>
    Thanks,
    Bipuser

  • Storing a conditional formatting formula in a variable

    I have a conditional formatting formula that exceeds the 393 character limit for Word fields. I've placed the formula directly into the template table, and it works correctly. But now, of course, there are several hundred characters of formatting information in that cell, along with the data field. Not pretty.
    Is there a way to store that long formula into a variable, and then refer to that variable as the conditional format? I'm getting stuck on the right-arrow tags (>). I can't figure out how to include those in the string and store them in the variable.
    Here's a simplified example of what I'm trying to do:
    <?xdoxslt:set_variable($_XDOCTX,'myvar',"<?if:number(Sales) gt 1000000?><?attribute@incontext:color;'red'?><?end if?>")?>
    The inclusion of the right-arrow tags (>) in the string causes a failure when attempting to Preview. If I replace all of the right-arrow tags with something else, like the number 8 ...
    <?xdoxslt:set_variable($_XDOCTX,'myvar',"<?if:number(Sales) gt 1000000?8<?attribute@incontext:color;'red'?8<?end if?8")?>
    ... the string is stored in the variable, and I can refer to it in the template table by using <?xdoxslt:get_variable($_XDOCTX,'myvar')?>. It's useless, of course, but it works correctly. The string is stored in the variable, and the contents of the variable appear in the template.
    So how can I imbed the right-arrow tags in this text string? Use an escape character? Imbed the ASCII code? I'd do either of those in a heartbeat if I could figure out the right syntax.

    Related information is available at:
    Where to put xsl:variable definition

  • Error while processing conditional formatting formula in crosstab

    This conditional formatting formula must return one of the following Color Constants: ' A number, currency amount, boolean, date, time, date-time, or string is expected here. Details: errorKind
    The above error is displayed on the the Business Objects Report Server when running my report.
    The XI server version information is as follows:
    BusinessObjects Enterprise XI Release 2
    Business Objects
    11.5.0.3135
    20060628
    Crystal Reports XI Release 2
    Business Objects
    11.5.0.31327
    20060628
    My IDE is Crystal Reports 2008.
    The error is being generated for the following conditional formatting formula which is in my crosstab:
    evaluateafter ({@concatAppTypeAppMethod});
    if CurrentRowIndex = 1 then
        color(0,153,153)   
    else if CurrentRowIndex = 2 then
        color(168,146,101)
    else if CurrentRowIndex = 3  then
        color(0,51,153)
    else if CurrentRowIndex = 4  then
        color(204,51,51)
    else
        color(153,153,153)
    This formula is applied via the Crosstab "Format Field>Font" tab.  In the report developer (Crystal 2008) the report runs without error.  When deployed to the server it fails with the above error.
    Heres the details of {@concatAppTypeAppMethod}:
    whileprintingrecords;
    "Designs filed " + {Command.APPLICATION_METHOD}
    The crosstab is structured as:
    Row = {@concatAppTypeAppMethod}
    Column = {@getMonth}
    Summary = Count of {@concatAppTypeAppMethod}
    Details for  {@getMonth}:
    right(totext(year({Command.ACN_COMPLETED_DATE}),"#"),2) + totext(month({Command.ACN_COMPLETED_DATE}),"0#")
    The above functions Row i.e. {@concatAppTypeAppMethod} and {@getMonth} use fields from the SQL command. 
    {@getMonth} parses the ACN_COMPLETED_DATE field, obtains the record month and year and concatenates these as a string which can be displayed as follows in the crosstab:
    May-08, Jun-08 etc.
    {@concatAppTypeAppMethod} parses the APPLICATION_METHOD field and obtains the application filing method i.e. Online or Internally and concatenates the pretext "Designs filed " to the filing method (also a string).
    I have tried various combinations of whilereadingrecords, whileprintingrecords and evaluateafter() with no success.  The problem occurs because the conditional formatting formula is being executed before the records being formatted are ready. 
    I believe this is a problem with the crystal reports software and/or XI server. 
    Please prove me wrong.

    Hi Raghavendra,
    Thanks for your prompt answer!  Can you confirm?  Is it because I'm using calculated members in the report and these are not support by the XI server specified in my error report above?
    If so, do you have any suggestions with regard to how I might be able to create a graph with the following attributes:
    Show summary (count) of records per month per application method (i.e. online or internal. this is a database field retruned by the SQL command).  In addition I need to add a series to the graph that shows the totals number of records per month irrespective of the relative application method (i.e. sum of online and internal) and finally I need to show the total number of online applications (i.e. application method = online) as a percentage of the total number of applications for the month.

  • Is there any way to use a formula or reference in conditional formatting

    I would like to use conditional formatting (or something similar) to change either the background color, or text color, of a cell. The conditional formatting in the inspector will allow you to do this using numbers or text as the condition.
    Is there any way to do the same thing using either a formula or cell reference? I have created a budget with two sheets, "Budget" and "Actual". Each sheet has two tables, "Income" and Expenses." In the "Actual :: Expenses" table I would like to be able to change the cell color depending on the difference between the Actual and the Budget corresponding cells.
    I know I can do this by making a new column "Difference" write the formula and enter conditional formatting for that particular cell, but I DON'T WANT TO!!
    Just for fun, is there any way to roll over a cell and have a info box "pop up" that could show me what the difference between the two corresponding cells is. Kind of similar to how when you roll the mouse pointer over a file the box expands to show you the entire name of the file. Not to optimistic about this one.
    Thanks

    PeterVogelpohl wrote:
    Is there any way to do the same thing using either a formula or cell reference?
    Yes, Peter. Purchase iWork 09. Numbers 09 offers conditional format vs. content of another cell.
    Jerry

  • Can we preserve Conditional Formatting in excel even after export ?

    Hi,
    I have requirement where I need to preserve the formulae and conditional formatting when exported in excel format.
    The user is supposed to be changing the values and so the final result values and cell formats should change as well.
    I tried the workaround to preserve the formulae as directed in other threads but would like to know if we also have a workaround to preserve the conditional formatting of the cells.
    I know OfficeWriter can help me to get this requirement done but still I wonder if we have any workaround for this requirement.
    Thanks.

    Hi Rikz,
    According to your description, you want to preserve the formula and conditional formatting when export report to excel format.
    According to my knowledge, In earlier versions of Reporting Services, there was limited support for translating expressions in RDL to Microsoft Excel formulas. Since SSRS 2008, when you export a report to Excel, RDL expressions are not translated to Excel
    formulas, which is documented at
    http://msdn.microsoft.com/en-us/library/ms143380(v=SQL.100).aspx by Microsoft. When we export a report to excel, only the final data is exported. If some user want to preserve specify cells’ conditional formatting, we can use IIF function as a workaround
    as below:
    IIf(Globals!RenderFormat.Name Like "EXCEL*", Excel Formula, RDL Formula)
    For more information about export formulas to Excel, please refer to the following feedback:
    https://connect.microsoft.com/SQLServer/feedback/details/488517/ssrs-2008-export-formulas-to-excel
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu

  • Paste Conditional Format rule wipes out existing formula... & vice versa.

    As far as I can see there is no way to copy an already established conditional formatting rule onto a cell that already has a formula entered without wiping out the formula. And when you set the formatting rule first and then paste in the formula, it wipes out the conditional formatting rule.
    Surely this is not too much to ask -- or am I missing something here?

    Badunit, thank you for the info about Paste and Match Style. That works very nicely. Interestingly, I don't believe the specific use of the command for this purpose is documented in the manual, though it certainly should be.
    Yvan, I have read everything the manual has to say about conditional formatting three or four times over, and yes, I know that the function is available via the Inspector as well as under the Format menu.
    You are mistaken, however regarding copy and paste.
    Conditional formatting is indeed transferrable via copy and paste, as you will find if you try it, and as is mentioned in the manual at the bottom of page 82. And pasting a function into a cell with conditional formatting deletes that formatting. So Badunit's suggestion is the only solution to avoid having to re-enter either the formula (very large) or the formatting rules. In this instance there were 14 rules in force, and re-entering them was tedious.
    A little less rushing to judgement - and a little more courtesy, please.

  • Conditional formating based on excel formula

    Hi experts!
    I have a problem with BPC formatting. Under my EVDRE expansion, I inserted a column to validate some data before sending it. The value of this formula can be TRUE or FALSE and it validates each row of the expansion.
    Now, if the value is false, the row or at least some fields of it must turn red so the user knows were are the mistakes.
    I have defined under the format range an entry for the heading to evaluate in rows and in format I create the next conditional formatting:: =$I38 = FALSE ---> background red.
    When I push the refresh button, the format applies to al heading under the expansion, but the conditional format formula changes to =$I1064034 = FALSE
    If I lock the row number, it won't iterate for each row and the format will be based just on one cell instead of one cell per row.
    ¿Any ideas? ¿Other ways to achieve this? I've also tried to format the cell inside the expand and eliminate the entry on the format range but it doesn't expand to the rest of the cells...
    Thanks in advance

    Hi Nilanjan!
    Thanks for the answer, the individual conditional formatting is working fine!
    The reason why it wasn't working the first time was because it's incompatible to do individual conditional formatting with conditional formatting on format range.
    I gues I'll have to do all the formatting on individual cells...
    Thanks agains!

  • Can you transfer data from one numbers spreadsheet to another using conditional formatting?

    I have a tracker document set up for client payments and when I indicate payment received, it  flags green using conditional formatting. However I would like these to automatically transfer to another sheet - without having to cut and paste the associated data to the other sheet. Can I set up conditional formatting to do this? If not how could I get and automatic transfer?
    thanks forum.

    Hi Kangers,
    There are a number of ways to transfer data from one table to the next. It should not be hard to set up.
    Conditional formatting would not be involved it moving the data but you could set it up to flag the data in the new table.
    Without knowing what your tables and data look like it is hard to propose a solution.
    quinn

  • XStep conditional formatting. Can it be determined at run time ?

    Does anyone know of a way to put conditional formatting into an XStep generated table output. For example, this is what we are trying to do:
    - At some point after an order is generated and released, materials are issued to it.
    - We have created a function module that reports back the list of all materials issued.
    - The FM also checks to see if the material was planned in a reservation.
    - If a material issued was not a planned material we want to list it in RED.
    In the XStep repository, I can simulate a table output using parameter PPPI_FRAGMENT_HTML, and can change font color by giving it a value like
    <div style="color: red">TEST123</div>
    And I get TEST123 displayed in RED.
    I also get TEST123 displayed in red on the generated PI sheet, if I put the put the HTML string above into the XStep as a fixed value.
    But if I program the FM to return this string, then I get the entire string output in the table field and the font color is not changed to RED.
    Edited by: Mike Rupp on Oct 14, 2011 6:31 PM
    Edited by: Mike Rupp on Oct 14, 2011 6:36 PM

    I got a response at the XStep Cafe and thought it might help others if I share it here.
    Arne Manthey:
    I assume that you are also using PPPI_FRAGMENT_HTML for the parameter to which the FM returns your string. If you valuate this parameter manually it is internally handled as a long text. However the function module will most likely return just a string value and these are probably not recognized as a long text. I do not have any idea how to valuate a long text with a FM when the PI Sheet has already been generated. The only thing I did successfully was to generate HTML text during generation (although not with XSteps). But in your case this would not help, yes?
    The general problem with long text elements is that they are really meant for initial valuation only and not for changing back and forth.
    Another way of doing conditional formatting would be to use some Stylesheet magic which evaluates a status parameter you would set by a function module. This would most likely also include some Javascript to make the change happen. Please follow that path only if it is really necessary because Stylesheet stuff is not easy to handle.
    mrupp:
    Thanks Arne.
    We decided to just add an additional table column with an alert message when needed to flag Unplanned Materials and/or Expired Shelf Life. I have played around with Stylesheets & Javascript a bit and agree that it is not worth it in this case.

  • HT4648 So if you import a numbers document from a mac to iPad which has a conditional format rule such as a cell with a score between 1-10 fills with the colour black will still work on the iPad? Not being able to edit it just means you can't change this

    I want to use numbers on my iPad mini for a team I coach. I have a spreadsheet on my mac I want to import onto the iPad mini for players to enter in wellness ratings. On this spreadsheet (on the mac) I have a conditioning formatting rule that when a player enters in their numbers the cells fill with black so others can't see their entries (to maintain privacy). Will this function import across onto iPad numbers? From the discussion I saw on this site it only partly answers my question stating "it cannot be edited" does this mean the conditional formatting rule cannot be changed and therefore will still work or the whole spreadsheet can't be edited and you can only view the spreadsheet and make no new entries to it?

    Yes, I have posted this thread to different forums after I realized that Lenovo "customer care" is not likely to help me out and even wirelessforums.org members couldn't come up with any ideas for days, that's why. I have already written that helper applications like SMAC (or etherchange or macshift) don't work, because they do the same thing in the system as I change it in the driver panel, so they use the same method which simply does not work.
    Locked? Definitely not. If yes, why can I change the MAC of my adapter under Ubuntu Linux using b43 open-source driver if it's really locked? Or you mean it's locked from software, because Lenovo or Broadcom didn't want their users to change their MACs or they just forgot to release a fully-functional driver? Well, then I would like to have a driver in which it's not locked, because this is a basic feature of my adapter of which the hardware is capable.
    I have already contacted Broadcom, see their (automatically-generated) answer in my initial post, but I will try to do that again with more foresight.

  • Can I set a conditional format as default in OBIEE 11g?

    Hi,
    I would like to set all positive number be (green) and negative number be (red) for all tables in Analytics Web (OBIEE 11g). Apart from create conditional format for every tables, is there any way to set once only and apply for all reports?

    Hi User,
    You can set system wide default by clicking on the button in conditional format tab.
    *Make sure user has "Save System-Wide Column Formats" privilege to enable the option.
    Regards,
    Dpka

  • Bypass content-based format detection so I can use a custom iFilter in Sharepoint 2013 Search

    Can I get SharePoint 2013 Search to bypass the content-based format detection and use the file extension to determine the format (and therefore the format handler so that I can use a customer iFilter)?
    We have a proprietary file format which uses xml, and we use a specific filename extension to indicate the type of file.  We have a custom iFilter to parse the file, because we only want some of the content to be indexed.  The iFilter works with
    Windows Search.  I’m now trying to use our custom iFilter to search the same files with SharePoint 2013.  SharePoint 2013 Search appears to determine a file’s format from its content and not from its file extension (I have confirmed this by changing
    the extensions of .docx and .txt files).  SharePoint 2013 search appears to use the built-in XML format handler to index our proprietary files.  Can I get SharePoint 2013 Search to bypass the content-based format detection and use the file extension
    to determine the format (and therefore the format handler)?  I think SharePoint 2010 may allow this, but I can’t find out if/how it is done in SharePoint 2013.
    I understand that built-in format handlers can’t be replaced by custom iFilters, but I don’t want to replace the XML format handler for .xml files.  

    Hi jeh271,
    quite interesting, because as i know iPersistStream should be installed when you need to use ifilter when using windows search.
    just curious, if you also restart the spsearchhostcontroller?
    as i know the search should have the content-based format,we cant bypass it, if we bypass it, then it may broke.
    i saw some thread about this before:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/944e6878-a7f0-4c0e-98b7-a7fb9faeef1b/bcs-connector-and-mimetypefield
    ifilter example:
    http://msdn.microsoft.com/en-us/library/hh694268(v=office.14).aspx
    last time i did this, seems similar issue:
    • The custom iFilter is working in SP 2010 but when we followed the same process of registering the iFilter in SP 2013, it was not working.
    • So, we knew that we were some missing some extra step in registering the filter in SP 2013.
    • Finally, we involved the Product group and we found out that we need to run an extra PowerShell commandlet apart from following the steps to register it in SP 2010 (given in this link:- http://msdn.microsoft.com/en-us/library/hh694268(v=office.14).aspx )
    • We ran the commandlet described here in this article http://technet.microsoft.com/en-us/library/jj219556.aspx.
    • The New-SPEnterpriseSearchFileFormat cmdlet adds a new file format and a corresponding file name extension to the search parsing system. This binds the file format to a filter-based format handler in the search parsing system. Thus, the search parsing system can only parse the new file format if the user has installed a corresponding filter-based format handler, an IFilter, for the new file format. If the installed IFilter registers more than one file name extension, the user must use the New-SPEnterpriseSearchFileFormat cmdlet to add a new file format to the parsing system for each of these file name extensions. The user must also ensure that the file name extension of the new file format is a member of the file-type inclusion list. The file-type inclusion list specifies which files that are crawled, based on their file name extensions. The system will only consider the new file format after a restart of the content processing components
    • The example for our scenario would be something like this:-
    New-SPEnterpriseSearchFileFormat -SearchApplication $ssa -FormatId dwg -FormatName DWGFiles -MimeType application/dwg
    • Then, we restarted the SharePoint Search Host controller service on the machine where you have installed the iFilter and this resolved our issue and we were able to successfully search with .dwg files using the custom iFilter.
    i am not quite sure if search treating your file as an XML file, if it is true, perhaps you can check this xmlmapper:http://msdn.microsoft.com/en-us/library/ff795813(v=office.14).aspx
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

Maybe you are looking for

  • I'd like to set my gutters in em or px, rather than %.

    Hi, I know this is likely to be a big ask, but is it going to be possible to set gutters in em or px at some stage? In my opinion, gutter width should be relative to type size. My type size increases a little as the page (screen) size increases - due

  • Table Maintenance - Add field not in table for display

    I have a Z table which has five fields of which one of them is the GL account field. I need to display the description of the account from SKAT-TXT20 also in SM30 so that In SM30 when the user looks at the table, they should be able to see six fields

  • More than one?

    If I have installed Final Cut Express HD on my Mini, and then buy a Mac Book Pro (which I am planning to do), is there anyway to install it on my Mac Book?

  • GRC PC 2.5 table for task plan and testlog and its link

    Hi, I want to know the list of tables used and the link between the tables related to GRC PC. Mainly I need tables involved while creating task plan, test logs. We need to develop a report using this data. We need to know how the tables are linked. W

  • How do i get UPS to collect my mini?

    sending my ipod off for service (i'm in the uk - package destined for the netherlands) - how do i get UPS to pick up my package? is there a way to do it online as their phone lines are closed now.