+ Reply to Thread
Results 1 to 2 of 2

Formatting Negative Number within Concatenation not Working

  1. #1
    Registered User
    Join Date
    03-20-2012
    Location
    Philadelphia, Pennsylvania
    MS-Off Ver
    Excel 2010
    Posts
    1

    Formatting Negative Number within Concatenation not Working

    I have a Microsoft Excel 2010 Worksheet with an ESTIMATED COST and an ACTUAL cost column.

    I would like to have a third column that shows the numeric difference between actual and estimated, and I would like this number to appear as currency with two decimal places. If this currency amount is negative, I would like it to appear in red within parentheses. Then, with a blank space after this currency value, I would like to see the decimal percentage difference of ACTUAL over the ESTIMATED.

    Using the following syntax, I am able to see the two values I want within the same cell, but the currency value is not displaying as RED when it is negative.

    =TEXT(B4-D4,"$#,##0.00_);[Red]($#,##0.00)") & " " & TEXT((D4-B4)/B4,"0.00")

    Does anyone know why the negative value is not displaying in red for me? I am using Excel 2010 on a Windows 7 machine.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Formatting Negative Number within Concatenation not Working

    If I understand you correctly the formula you are trying to use won't work.
    You can't format part of a cell by using a formula, nor can you apply formatting using formulae.

    Try this in say cell H2
    Please Login or Register  to view this content.
    Highlight Column H, then with Conditional Formatting
    Formula is:=
    Please Login or Register  to view this content.
    Format > Font = Red.

    See the attached, Columns E:F are only to show other alternatives, they are not required for your problem.
    Is this what you are trying to do?
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1