Leading the way in Microsoft Office Development
 Home|Excel|Word|PowerPoint|Consultancy|Feedback|Contact 
 Microsoft Excel > Functions > Text > DOLLAR

 

DOLLAR(number [,decimals])

 
 Returns the text string of a number with the dollar formatting $0,000.00.

 numberThe number you want formatted.
 decimalsThe number of digits to the right of the decimal place.

 REMARKS
 
  • The "number" can be a number, a reference to a cell containing a number, or a formula that evaluates to a number.
     
  • The resulting number is rounded when necessary.
     
  • If "decimals" < 0, then "number" is rounded to the left of the decimal point.
     
  • If "decimals" is left blank, then 2 is used.
     
  • If "decimal" is empty, i.e. you include the comma separator, then no decimal places are used.
     
  • The major difference between formatting a cell using (Format > Cells) and formatting it with this function is that using this function the result is converted to text. Using (Format > Cells) leaves the number as a number.
     
  • Any numbers formatted with this function can still be used in formulas as numbers entered as text are automatically converted to numbers when performing calculations.

     EXAMPLES
     
     A
    1=DOLLAR(100) = £100.00
    2=DOLLAR(1234.567,2) = £1,234.57
    3=DOLLAR(1234.567,-2) = £1,200.00
    4=DOLLAR(-1234.567,-2) = -£1,200.00
    5=DOLLAR(-0.123,4) = -£0.12
    6=DOLLAR(99.888) = £99.89
    7=DOLLAR(99.888,) = £100.00
    8=DOLLAR("some text") = #VALUE!
     

     Functions - D | Index - D | Text Manipulation | Office Online 

     Copyright © 2004-2007 Better Solutions Limited. All Rights Reserved.Top