Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 149
Default Formatting Decimal Places

I have a formula listed below that is displaying 3 decimal places no matter
what I set the cell number formatting to from the menu. Also you can see I'm
including the "$" symbol in the formula just because that's the only way I
can keep my alignment correct on the sheet.

Is there any excel formula functions that could force my below function to
only display 2 decimals? I also have a problem with the formula results when
the decimal displays as 1 decimal place. Basically I'm looking for a way to
force the formula to return 2 decimal places no matter what. It would also
be nice to force the results to display the thousands comma. The cell format
bdialog options don't seem to work on my results because I'm concatenating
the "$" sign.

Any ideas?



FORMULA:
="$ " & (E9/1000)*125


RESULTS:
$ 532358.375

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Formatting Decimal Places

If I understand what you are trying to do, why not change your formula back to this...

=(E9/1000)*125

and just format the cells as Currency and set the number of decimal places to 2 within that option. By the way, why not save Excel from having to do a division and just use this simpler formula instead...

=0.125*E9

--
Rick (MVP - Excel)


"Scott" wrote in message ...
I have a formula listed below that is displaying 3 decimal places no matter
what I set the cell number formatting to from the menu. Also you can see I'm
including the "$" symbol in the formula just because that's the only way I
can keep my alignment correct on the sheet.

Is there any excel formula functions that could force my below function to
only display 2 decimals? I also have a problem with the formula results when
the decimal displays as 1 decimal place. Basically I'm looking for a way to
force the formula to return 2 decimal places no matter what. It would also
be nice to force the results to display the thousands comma. The cell format
bdialog options don't seem to work on my results because I'm concatenating
the "$" sign.

Any ideas?



FORMULA:
="$ " & (E9/1000)*125


RESULTS:
$ 532358.375

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 149
Default Formatting Decimal Places

My reason for trying to use code or a formula to format the currency is that
when I use the excel cell fortmatting options to achieve the goal, my user
has to copy/paste these cells into a outlook email message and for some
reason, the "$" gets put on 1 line and the money value flows to a line below
the "$" symbol.

Making the column width wider doesn't seem to help.


"Rick Rothstein" wrote in message
...
If I understand what you are trying to do, why not change your formula back
to this...

=(E9/1000)*125

and just format the cells as Currency and set the number of decimal places
to 2 within that option. By the way, why not save Excel from having to do a
division and just use this simpler formula instead...

=0.125*E9

--
Rick (MVP - Excel)


"Scott" wrote in message
...
I have a formula listed below that is displaying 3 decimal places no matter
what I set the cell number formatting to from the menu. Also you can see
I'm
including the "$" symbol in the formula just because that's the only way I
can keep my alignment correct on the sheet.

Is there any excel formula functions that could force my below function to
only display 2 decimals? I also have a problem with the formula results
when
the decimal displays as 1 decimal place. Basically I'm looking for a way
to
force the formula to return 2 decimal places no matter what. It would also
be nice to force the results to display the thousands comma. The cell
format
bdialog options don't seem to work on my results because I'm concatenating
the "$" sign.

Any ideas?



FORMULA:
="$ " & (E9/1000)*125


RESULTS:
$ 532358.375


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Formatting Decimal Places

Try this formula then...

="$"&TEXT(0.125*E9,"0.00")

--
Rick (MVP - Excel)


"Scott" wrote in message ...
My reason for trying to use code or a formula to format the currency is that
when I use the excel cell fortmatting options to achieve the goal, my user
has to copy/paste these cells into a outlook email message and for some
reason, the "$" gets put on 1 line and the money value flows to a line below
the "$" symbol.

Making the column width wider doesn't seem to help.


"Rick Rothstein" wrote in message
...
If I understand what you are trying to do, why not change your formula back
to this...

=(E9/1000)*125

and just format the cells as Currency and set the number of decimal places
to 2 within that option. By the way, why not save Excel from having to do a
division and just use this simpler formula instead...

=0.125*E9

--
Rick (MVP - Excel)


"Scott" wrote in message
...
I have a formula listed below that is displaying 3 decimal places no matter
what I set the cell number formatting to from the menu. Also you can see
I'm
including the "$" symbol in the formula just because that's the only way I
can keep my alignment correct on the sheet.

Is there any excel formula functions that could force my below function to
only display 2 decimals? I also have a problem with the formula results
when
the decimal displays as 1 decimal place. Basically I'm looking for a way
to
force the formula to return 2 decimal places no matter what. It would also
be nice to force the results to display the thousands comma. The cell
format
bdialog options don't seem to work on my results because I'm concatenating
the "$" sign.

Any ideas?



FORMULA:
="$ " & (E9/1000)*125


RESULTS:
$ 532358.375


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formatting Numbers with Decimal Places James Excel Programming 6 September 7th 06 04:59 PM
formatting decimal places for complex numbers beav Excel Programming 0 May 20th 06 10:36 AM
conditonally formatting decimal places BigMikeGallagher Excel Discussion (Misc queries) 0 April 6th 06 06:08 PM
formatting decimal places in code cherman Excel Programming 4 March 3rd 06 06:23 PM
Currency Formatting to 3 decimal Places David Dalebroux Excel Programming 1 August 7th 04 09:22 PM


All times are GMT +1. The time now is 09:19 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"