Solved

Excel: Return number within text to two decimal places

Posted on 2014-04-13
2
416 Views
Last Modified: 2014-04-13
Hello,

I have the following formula in an excel cell:

="Test text $"&(C10-D10)&" test text"

I would like the value in the middle to return as two decimal places. Currently it only returns as 1 decimal place.

e.g: Test text $32.4 test text

But I want: Test text $32.40 test text

How do I edit the formula so it returns two decimal places?

Thanks for your help
0
Comment
Question by:dabug80
2 Comments
 
LVL 22

Accepted Solution

by:
Flyster earned 500 total points
ID: 39998126
See if this works for you:

="Test text $"&TEXT(C10-D10,"#.00")&" test text"

Flyster
0
 
LVL 1

Author Closing Comment

by:dabug80
ID: 39998133
Great. This works perfectly
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
macro for closing opened workbook 6 21
Excel callender with date slider 5 28
Excel 2016 formulas 5 32
Excel 17 37
Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now