Rounded decimels

karkas

Board Regular
Joined
Oct 17, 2007
Messages
170
Office Version
  1. 2013
Platform
  1. Windows
Sorry for an easy one, but I'm having trouble finding/figuring this one out.

I just want the cell to limit the output to no more than 2 decimals

Code:
=IF(BA6, M10/2.54&" inches", M10*2.54&" cm")

Where are examples of outputting text with numbers??

Thanks in advance!
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Hi,

The TEXT() Function would work this way (it involves a little bit of obscure knowledge about format expressions):

=IF(BA6, TEXT(M10/2.54,"#0.00")&" inches", TEXT(M10*2.54,"#0.00")&" cm")


Just be aware (of course) that the result is text, not numeric.

ξ
 
Upvote 0
Hi,

The TEXT() Function would work this way (it involves a little bit of obscure knowledge about format expressions):

=IF(BA6, TEXT(M10/2.54,"#0.00")&" inches", TEXT(M10*2.54,"#0.00")&" cm")


Just be aware (of course) that the result is text, not numeric.

ξ

Oh, thanks a lot! And thanks for letting me know it is not a numeric output =D
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top