data formatting

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Data formatting

Data formatting

resolvedResolved · Low Priority · Version 2003

Terry has attended:
Excel Intermediate course

Data formatting

How do you enter brackets to show a minus figure and make the coulour red when a negative figure is entered

RE: Data formatting

Hi Terry

Thank you for your question

First select the cells to format and then click on format-cells and click on the number tab. Next select the custom option from the category list and type the following into the type text box on the right hand side of the dialog

#,##0;[Red](#,##0)

The element before the semi colon shows the format if the number is positive and after when it is negative. Note the word red in square brackets and the brackets around the number format showing that the negative number is red and in brackets

Regards

Stephen

Mon 30 Mar 2009: Automatically marked as resolved.


 

Excel tip:

Difference between Two Dates

The DATEDIF function computes the difference between two dates. The DATEDIF function is as follows:

=DATEDIF (Date1,Date2,Interval)

Please note that Date1 must be less than (earlier) or equal to Date2

Please note that Interval must be one of the following codes: "d" (in days), "m" (in months), "y" (in years) expressed in quotes


View all Excel hints and tips


Server loaded in 0.09 secs.