Solved

Excel: Return number within text to two decimal places

Posted on 2014-04-13
2
414 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
Comment Utility
See if this works for you:

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

Flyster
0
 
LVL 1

Author Closing Comment

by:dabug80
Comment Utility
Great. This works perfectly
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
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 simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
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.

762 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

10 Experts available now in Live!

Get 1:1 Help Now