+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : Formatting Cells as Curency with "&" formula appending text

  1. #1
    Registered User
    Join Date
    10-19-2011
    Location
    Boston, USA
    MS-Off Ver
    Excel 2007
    Posts
    42

    Formatting Cells as Curency with "&" formula appending text

    I am having trouble trying to figure out how to format cells that are suppose to contain currency values that also have text appended to the value. I have a situation where if the value of "123" were to be entered into cell H1 then a sum value appears in cell U4. U4 represents a sum of “Hardware Values” so I have used the formula =IF(H1=123,U4&" Hardware Values", ""). This works fine with the one exception that the end result loses its currency format.

    Example: the expected result of the cell displaying $1,000.00 Total Hardware end s up looking like 1000 Total Hardware. Is there a way to correct this?

    Likewise, I have a similar formatting situation where rather than currency not displaying as such, number values extend beyond what I have valued for decimals. Example 12.05 Units displays as 12.055555555 Units. I would like to limit the value to the following format: “0.00 Units”

    Can anyone help me out?

  2. #2
    Valued Forum Contributor
    Join Date
    06-10-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    341

    Re: Formatting Cells as Curency with "&" formula appending text

    I don't think the former is possible.

    For the latter, attach a spreadsheet where you have that issue. Ensure though that you mean the cell actually displays 12.055555555 and its not just when you double click or view in the formula bar that it displays as 12.055555555 because that is normal.

  3. #3
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Formatting Cells as Curency with "&" formula appending text

    PHP Code: 
    =If (H1=123,TEXT(U4;"$ 0") & " Hardware Values",""
    replace $ by the currency character you need.
    Last edited by snb; 12-14-2011 at 10:39 AM.



  4. #4
    Forum Contributor
    Join Date
    02-22-2011
    Location
    Rhône Alpes, France
    MS-Off Ver
    Excel 2007
    Posts
    201

    Re: Formatting Cells as Curency with "&" formula appending text

    Hi,
    Try this :
    PHP Code: 
    =If (H1=123,U4,""
    and this personalized format :
    PHP Code: 
    "$ "## ##0,00" Hardware Values" 
    The advantage compared to the solution of SNB is that the cell can be reused for a new calculation
    Best regards

  5. #5
    Forum Contributor
    Join Date
    02-22-2011
    Location
    Rhône Alpes, France
    MS-Off Ver
    Excel 2007
    Posts
    201

    Re: Formatting Cells as Curency with "&" formula appending text

    Hi,
    Sorry the personalized format for US citizen is not the comma but the point:
    PHP Code: 
    "$ "## ##0.00" Hardware Values" 

  6. #6
    Registered User
    Join Date
    10-19-2011
    Location
    Boston, USA
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Formatting Cells as Curency with "&" formula appending text

    I apologize, I'm not familiar with the "personalized format" piece of this... Where would I enter that information?

  7. #7
    Registered User
    Join Date
    10-19-2011
    Location
    Boston, USA
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Formatting Cells as Curency with "&" formula appending text

    Hey, thanks for the help. It realized what you refering to and did a quick fix. thanks again for your help

+ 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