Displaying negative numbers in brackets in Excel output

Hello all.
I have an RTF template...I tired displaying negative numbers in brackets like : (123.80) in Excel output
But, this is working in PDF and not in Excel.
Please let me know the way to dsiplay the numbers in brackets.

varma wrote:
Negative numbers in bracket
add a conditional statement like below.
<?if: NUMBER_TO_CHECK < 0?> <?concat('(',NUMBER_TO_CHECK,')')?><?end if?>
<?if: NUMBER_TO_CHECK > 0?> <?NUMBER_TO_CHECK?><?end if?>
are you using the same template for PDF and EXCEL ?
if so, it has to be handled little differently.
Place this line in the beginning of the rtf
<?param@begin:_xf;''?>
add this condition on number column for Excel output
<?if:$_xf='excel' and NUMBER_TO_CHECK < 0?> <?concat('(',NUMBER_TO_CHECK,')')?><?end if?>
Try the above one it should work.
Have a Nice dayThis didnt work.
Say that I have element named 'market'
I placed this condiion <?param@begin:_xf;''?> at the beginningof RTF
Replaced the number field with this condition: <?if:$_xf='excel' and market< 0?> <?concat('(',market,')')?><?end if?>
This is giving me a blank output in place of the number.
>

Similar Messages

  • Display Negative numbers

    Hi,
    I am using JDeveloper 11.1.1.5
    One of an ADF page is expected to display negative number and also follow the number format pattern as shown below. I am not able to display negative numbers. Can anyone help here please?
    Below is my code snippet.
    VO.xml ::
         <ViewAttribute
         Name="TotalDue"
         IsUpdateable="false"
         IsPersistent="false"
         PrecisionRule="true"
         Precision="15"
         Scale="2"
         Type="java.math.BigDecimal"
         ColumnType="NUMBER"
         AliasName="NET_DUE_INVESTOR"
         Expression="NET_DUE_INVESTOR"
         SQLType="NUMERIC">
         <DesignTime>
         <Attr Name="_DisplaySize" Value="22"/>
         </DesignTime>
         <Properties>
         <SchemaBasedProperties>
              <LABEL
              ResId="NET_DUE_TOFROM_INVESTOR"/>
              <FMT_FORMATTER
              ResId="com.ahmsi.isams.liquidation.model.vo.Liquidation332FormView.TotalDue_FMT_FORMATTER"/>
              <FMT_FORMAT
              ResId="com.ahmsi.isams.liquidation.model.vo.Liquidation332FormView.TotalDue_FMT_FORMAT"/>
         </SchemaBasedProperties>
         </Properties>
         </ViewAttribute>
    ModelBundleProperties ::
         TotalDue_FMT_FORMATTER=oracle.jbo.format.DefaultNumberFormatter
         TotalDue_FMT_FORMAT=\#,\#\#\#,\#\#\#,\#\#\#,\#\#0.00;(\#,\#\#\#,\#\#\#,\#\#\#,\#\#0.00)
    myjsfpage.jsf ::
         <af:outputText value="#{bindings.TotalDue.inputValue}"
              id="ot5141" inlineStyle="font-weight:bold;">
         <af:convertNumber groupingUsed="false"
                   pattern="#{bindings.TotalDue.format}"/>
         </af:outputText>

    Got it correct now. I changed the pattern as below. Also added a nowrap=true on the output text
    ModelBundleProperties ::
    TotalDue_FMT_FORMATTER=oracle.jbo.format.DefaultNumberFormatter
    TotalDue_FMT_FORMAT=\#,\#\#\#,\#\#\#,\#\#\#,\#\#0.00;-\#,\#\#\#,\#\#\#,\#\#\#,\#\#0.00
    Thank you all for your directions.
    Thanks,
    Prashant

  • Wi-Fi Connection Time Displays Negative Numbers

    Using an AEBS with the latest firmware 7.6.2 and OS X 10.7.2.  The Wi-Fi connection time appears to randomly start displaying negative numbers. It then counts down (up?) to zero and then displays positive numbers. Anyone else seen this?
    Regards.

    I have the same problem (Macbook 2008, 10.6.8 airport extreme 7.6). Has there been a fix? How do I report this bug, which seems to be affecting older machines as well? It's somewhat amusing, but is starting to become annoying.
    Melinda

  • Negative numbers in export to excel

    Hi,
    We have two servers, one (X) without SP1 and the other (Y) with SP1.
    When I make export to excel in X, the negative numbers sometimes saved as @ or the actual negative number (e.g. -42), in both cases it is saved as text.
    The positive numbers are saved as numbers.
    We saw that SAP fixed it in SP1, we tried it on Y, we got that the negative numbers always show (e.g. -42), but all the numbers, positive and negative are saved as text.
    We need to see all the actual numbers(without @), and to be saved as numbers (so we can make calculations on them).
    Does anyone have any idea?
    Thanks.

    I am on SP1 and noticed that sometimes they are saved as numbers and some are texts:
    So I am not sure of any logic or what is going on.
    Maybe as a work around you could format everything to numbers so you can do the calculation?

  • Displaying negative numbers under certain conditions

    I have a Crystal Report which I am developing and need to display positive numbers as negative, but only under certain conditions.  I did not see anything on this type of questions so I decided to join and post it up myself.  This is a transfer report so if the location number entered in the parameter list is the SHIPPING location, I need to display retail, cost, and totals as negative.  Here is the formula which I came up with for ext cost, but it is returning all zeros.  I cannot seperate the to and from locations in the parameters because this report needs to display both in and out of that location.
    if totext({?loc}) = totext({Command.SHIP_FROM}) then ({Command.EXT_COST}*-1)
    Any suggestions?  Appreciate the help!

    Hi Jon,
    If it returns zeroes, then it means that this part of the code fails:
    totext({?loc}) = totext({Command.SHIP_FROM})
    Do you have records where the value entered in the 'loc' prompt matches with records in the SHIP_FROM column on the report?
    See if this helps:
    if totext({?loc},0,"") = totext({Command.SHIP_FROM},0,"") then ({Command.EXT_COST}*-1)
    -Abhilash

  • Can anyone tell me how to Format cell values in numbers? I am wanting to make any negative numbers in brackets.

    Anyone able to help?

    You might want to post questions like this over on the Numbers community since it's more likely you'll find expertise there.
    However, this one I can help with.  If not already showing, you need to turn on the Inspector in Numbers.  You do that by clicking on the Inspector icon in the upper right, showing the inspector box highlighted in red below:
    Now select the cell(s) you want to format and click on the fourth tab (the one with the "42" in a box).  If want no currency sign, select number as your format, while if you want a currency symbol select currency as the format.
    Next to the "Decimals" option is the box in which you can select your "negative" format--you have four options for showing negative numbers, two of which will place negative numbers in parenthesis.
    Note that the inspector box controls a number of options and settings in Numbers. 
    If you used to working with Excel you have to understand that Numbers works entirely differently and will have more than a bit of a learning curve. 
    Generally I find Numbers is the weakest of the iWork offerings.  It is a useful program if you need a heaviliy formatted presentation of pure spreadsheet data, though if you want formatted spreadsheets in a mainly text report the Word/Excel combination works better.
    The program also falls short in a number of areas vs. Excel if your spreadsheet needs go beyond the basic.  It certainly isn't the most efficent at dealing with a large spreadsheet (and, in fact, the fact the default templates all have only a few rows is a good hint that this might not be the product for that megasheet :-) ).
    But if you just have basic spreadsheet needs it certainly can do the job.

  • After Yosemite install I can no longer get negative numbers in parenthesis in excel. Any one else having this issue?

    Excel negative numbers not appearing in parenthesis

    I have had similar problems.  I uninstalled Office and with the help of Microsoft reinstalled Office.  Excel still won't let me format negative numbers.  I called Apple and they sent me to this discussion.  I have not seen any answer.

  • My WiFi signal is displaying negative numbers instead of signal strength.

    Recently my Ipod 3rd gen. has been getting real weird with the wifi. first, it would always lose signal whenever i would do anything, like watch videos or open an app that required wifi. if i moved a couple feet it'd start to connect again. Then it started displaying a "-87" where the wifi signal would be. and the number would either increase or decresase, until i tried doing something that requird wifi. at first it would only come on whenever i restarted my ipod and itd quickly lose signal. ive restorede my ipod 3 times today, dumped everything. ive tried jailbreaking it to see if itd refresh files or anything. im not sure what to do anymore. ive looked for hours online and cant seem to find anyone with this problem. Any suggestions or ideas? without me buying a new one. i don't have a warranty..
    Message was edited by: jbiggie1130

    Interesting. The -87 refers to signal strength in db, which I believe are decibels. The lower the number, the stronger the signal.
    However, iPods don't display these numbers unless you have jailbroken the device or are using an app like WiFinder (since removed from the App Store).
    And since you have jailbroken the device we can't, by the terms of service of this site, offer you any advice other than to refer you to help article on WiFi: http://support.apple.com/kb/TS1398

  • Problems with formatting negative numbers in Reports PDF web output.

    Hi,
    I have a problem where all the values in a column are right-aligned. The values are all numbers. If a value is negative, then the value is placed a character to the left, putting it out of alignment with the non-negative values. I can't figure out why this would be.
    The problem doesn't appear in Reports Builder, or when the Report is generated to a PDF: File > Generate to file > PDF.
    The problem only appears when the Report is called through the web application we've created for our client. It is output to a .pdf in a web browser- Internet Explorer 6.
    I am running Oracle 10g.
    Any ideas on solving this?
    Regards,
    James Sharman.

    Just some clarification-
    in Reports Builder, the values look like this:
    100.50
    100.00
    -100.00
    100.00
    but when running from the web application, they go wierd and look like this:
    100.50
    100.00
    -100.00
    100.00
    Regards,
    James Sharman.

  • Results don't display negative numbers

    I have an application that accepts a 24 bit number and does some simple mathematical operations (see attached).  If number 3(a probe) receives a number lower than the constant that is being subtracted from it, which should result in a negative number, number 6(probe) displays a much larger, positive integer.
    I'm sure that I must be missing something simple somewhere.
    I thank you for your help in advance.
    Ron Deavers, CLD
    Attachments:
    NumberError.bmp ‏114 KB

    Thank you very much. I didn't realize the difference between unsigned integer and integer.
    Ron Deavers, CLD

  • Is anyone having trouble using parenthesis to show negative numbers in excel after upgrading to Yosemite?

    Since upgrading to Yosemite, I can no longer reflect negative numbers with parenthesis using excel.  All of my existing spreadsheets also no longer show parenthesis, creating formatting problems.  Is anyone else experiencing this and is there a solution?

    I suggest you post your question to Microsofts own forums for their Mac software as it's their product you're having issues with
    http://answers.microsoft.com/en-us/mac

  • Picture(Logo) not displayed in Excel output

    Hi all, I have to display my company logo(picture) in excel output of a report.
    I pasted the picture in RTF and I was able to view logo in PDF but not in excel..what could be the cause..?

    hi
    refer to this thread
    Re: CONVERT_OTFSPOOLJOB_2_PDF ?
    hope this helps
    regards
    Aakash Banga

  • Red color for negative values with $ symbol in Excel

    Hi All,
    We have a custom XML Publisher Report developed using XML rtf template. There is a number field in that template and the field is number formatted with $. i.e. output will look like this.
    $100
    $200 ...
    the issue which we are facing is when that number field is having negative value, then it is displayed in red color.
    and the client dont want that red color to appear in excel.
    ex:
    -($100) is displayed in red color in the excel output. This should be displayed in black color.
    Can anyone help me on this..
    Thanks
    gtungala

    In excel, under format cells, under category -> Number, look under Negative Numbers to see if the selected option is a number format in red. I think selecting a regular format (in black) should fix the issue..
    Thanks!

  • Parentheses for negative numbers in Excel 2011

    I couldn't find an appropriate section for this question.  Please forgive me if I posted it in the wrong place.
    I've been using Excel for Mac 2011 since it came out. Up until I updated to Yosemite, formatting negative numbers with parentheses appeared in the drop down menu, i.e., right click to get format cells, click "number" tab on top, click "number" on left. There is a dialog as to how you want negative numbers formatted. Parentheses used to be an option but no more. I attached a screen shot. Help!

    Same issue here with Excel 2011, problem started with the Yosemite installation and was not fixed with 10.10.1 nor the latest Microsoft update. 
    It's a big problem for accountants!
    On the Microsoft forum this gentleman replied with a workaround but it's a hassle to have to do this for each new spreadsheet.
    JonathanBuhacoff replied on November 9, 2014
    If you go to the dialog shown in Phillip's post and select "Custom" on the left side, you can enter this to get the parenthesis back:
    $#,##0;[Red](-$#,##0)
    Or this to use square brackets:
    $#,##0;[Red]"["-$#,##0"]"
    The format means  use $#,##0 for positive numbers and use [-$#,##0] in red for negative numbers.
    You could remove the hyphen too and just do this:
    $#,##0;[Red]"["$#,##0"]"
    I hope Apple takes note and pushes a fix for us.

  • How to display Excel output in browser instead of client desktop

    Hi,
    Similar to PDF and Text output, Is it possible to display Excel Output In browser itself.
    Whenever we try to view the report where the output type is excel, the output opens in Excel Desktop version.
    We have a requirement where we need the output to be displayed in browser itself.
    I have tried modyfing the Viewer profiles but was not able to get the desired result. We are currently working on E-Business Suite 11g.
    Regards,
    Sandeep

    for ideas look at
    Export to Excel of a Financial Reporting (FR) Report Opens the Excel File in the Workspace Browser Window (Doc ID 1300573.1)
    and
    How to configure Internet Explorer to open Office documents in the appropriate Office program instead of in Internet Ex…
    so in your case it is vice-versa

Maybe you are looking for

  • Customizing GUI for B2C in E-Commerce 5.0

    I was wondering if anybody knew of any documentation about customizing the GUI of E-Commerce 5.0 B2C.  I found documentation that has that in the title, yet it contains information about the older Internet Sales (ISA) and its Frame Sets and not the c

  • XML Publisher 5.6.3 and Bursting

    Hi All, According to Tim Dexter's blog "E Business Suite Bursting - 4/5/07; 6:33:55 PM", XMLP 5.6.3 will have a Java Concurrent Program that will invoke the Bursting API out of the box. Obviously negating the need for us to create our own. My client

  • Stuck In the Mud with First EJB

    I am using the apress 'Beginning Java EE, from Novice to Professional' book. In its first EJB example it attempts to create am extremely simple stateless session bean. There are two classes and a remote interface as follows; package beans; import jav

  • Nokia C3 messenger bugs

    hello,   i just bought my nokia C3 last saturday and it was nifty coz of the built in chats it offers, like msn and yahoo,but i encountered bugs from it,there are times that i am not receiving any messages from msn even if im connected to the interne

  • Mode connecté avec Nikon D600

    Le mode connecté  ne fonctionne pas avec le Nikon D600. A quand un correctif ?