Solved

Excel: Return number within text to two decimal places

Posted on 2014-04-13
2
418 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

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…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

777 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