[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 452
  • Last Modified:

Excel: Return number within text to two decimal places

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
dabug80
Asked:
dabug80
1 Solution
 
FlysterCommented:
See if this works for you:

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

Flyster
0
 
dabug80Author Commented:
Great. This works perfectly
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now