Formatting withing formula?

G

Guest

Hello--

In a cell, I have a formula concatenated with text, like this:

="The analysis reveals that " & <formula goes here> & "blah, blah, blah..."

As is, the number resulting from the formula has a ton of decimal places. I
need to control that so that it displays the way I want. In some cases that
will be with one or two decimal places, and in others with none, etc. It
doesn't seem to recognize the Format function that is recognized in VBA code.
Any suggestions?

Thanks.
 
G

Guest

The equivalent function to Format in Excel is Text(Value, "Format")

So something like this...
="The analysis reveals that " & Text(<formula goes here>, "0.00") & "blah,
blah, blah..."
 
G

Guest

Ah! That's it! Thank you!

Jim Thomlinson said:
The equivalent function to Format in Excel is Text(Value, "Format")

So something like this...
="The analysis reveals that " & Text(<formula goes here>, "0.00") & "blah,
blah, blah..."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top