XL: Formula Uses Formatting of First Cell in RangeID: Q131332
|
In Microsoft Excel, when you enter a formula that refers to a cell or range of cells, the number format applied to the cell that contains the formula is the same as the formatting applied to the first cell in the range that the formula refers to.
This behavior is by design of Microsoft Excel. The number format used in the first cell in the range that you are referencing is applied to the cell that contains the formula. This behavior also occurs when you use the AutoSum button to sum a range of cells. For example, when you enter the following on your worksheet
A1: $45.00
A2: 3
A3: 2
A4: =SUM(A1:A3)
the value $50.00 appears in cell A4 because of the currency number
formatting applied to cell A1.
A1: 123-45-6789
A2: 1
A3: 2
A4: 3
A5: 4
SUM=123-45-6799
Additional query words: 5.00a 5.00c 7.00a 97 XL97 XL7 XL5 XL4
Keywords : kbualink97 kbdta xlformat xlformula
Version : WINDOWS:4.0,5.0,5.0c,7.0,97; MACINTOSH:4.0,5.0
Platform : MACINTOSH WINDOWS
Issue type : kbprb
Last Reviewed: July 23, 1999