<<Convert Excel Spreadsheets to Web Pages | Trading Software That Operates Within Excel | Convert Excel, Access & Other Databases | Merge Excel Files>>
Ozgrid, Experts in Microsoft Excel Spreadsheets

EXCEL'S CUSTOM FORMATS

 Information Helpful? Why Not Donate >>Excel Training-Video Series

FREE EXCEL HELP

Lesson 14 - Working with Custom Formats in Excel

<< PREVIOUS LESSON |NEXT LESSON>> | BACK TO EXCEL LEVEL 1 TRAINING INDEX

CUSTOM FORMATS IN EXCEL

What we shall look at now is the Custom Format option under Categories in the Format Cells dialog box. This is a much better way to grasp the concept of applying formats from the Numbers page tab than using the built-in formats. The reason for this is because you can easily see what affect one of Excel�s built-in formats has on any data in the cell by simply selecting the format and looking in the Sample: box.

Now that we have gone through the fundamentals of dates and times in Excel, we will use a date and time as an example so that you can see how the custom formats can be applied. We will only look at the basics of custom formats as to try to go into it with too much detail would more than likely add confusion, but as with any area of Excel, if you have a question about it, feel free to ask and we will clarify for you.

For this example try this:

  1. Type 12/12/2004 23:59 into any cell.
  2. Make sure you are selected in the cell you have just typed the date and time in, right click and select Format Cells.
  3. Click the Number tab on the Format Cells Dialog Box, then click Custom in the Category box.

By default you should have the format m/d/yyyy h:mm showing in the Type box or something very similar. As mentioned before, this is determined by the Regional settings in the Control Panel of your Windows operating system.

What we will do now is go through the steps of how to apply a custom format.  While we are using a date and time for our example, we can apply a custom format to any type of data in any cell.

  1. Lets click inside the Type: box (first line), so that the mouse insertion point is flashing at the end of the last character. We will use this default format as a Starting point for a custom format.
  2. Hold down your backspace button until the format showing in the type box is completely gone. Note: This will not loose this particular format, it is only a means of adding a new one.  
  3. If you then look in the Sample: box, you will see that Excel will be showing the serial number for the date and the decimal fraction for the time. This is simply because the default format for any cell that has formatting removed is the General format.
  4. To apply a format to our date and time, so that it uses abbreviated text to display the month name, type mmm.
  5. If you look in your Sample: box, you should see the abbreviated month name Dec. To get the full month name, you simply need to type one more m (mmmm).
  6. You should now have the full month December showing in the Sample: box.

From this point, we can choose to, or not to, use the / (forward slash) or (hyphen) as our date separator. It is important to note here, that as we are only changing the format of the cell, and NOT the underlying value, we do not have to enter the format of our date the same way as we must enter the date itself into a cell. We should also note that any valid custom format we apply to a Workbook that is saved, will always be available to us.

1. Let us now push the space bar and use a space as our date separator, or if you like, use two or more spaces.

2. Now type a single d and you should see December 12 in your Sample: box.

3. Push the d again and your date should not have changed. This is because we have a two-digit number for the day of the month. If we had any day before the 10th of the month, typing dd would place a zero (0) in front of the day of the month.

4. Push the d again, so that you have ddd and you should see the abbreviated day Sun.

5. Push the d one more time, and you will see the full weekday Sunday.

6. So from this, we can safely assume that the 12th of December in the year 2004 is a Sunday.

7. Again, push the space bar and then push the y and you should see 04.

8. Type yy so you now have yyy, you now have the full year � 2004.

9. Again push the space bar and type the letter h and you should see the hour 23. From here, again you can choose to, or not to, use a space(s) or a colon as your hour and minute separator.

10. For this example, we won�t use anything, so push the m so that you have hm together.

11. Look in your Sample: box and you will see December 2004 2359. This is a perfectly valid date format. But as we discussed above, we would not be able to type this directly into a cell and have Excel recognize it as a valid date and time.

So, basically, should you have a date and/or date and time that you wish to appear different to the formats that Excel accepts when entered directly in a cell, all you need do is simply change the format of that cell. In fact, we stress to all our students that even if you are using dates as headings, you will probably be better off entering the date as a real date and then formatting the cell(s) accordingly.

Try this:

1. Ensure you are still selected in the cell that contains the date and time and have the Format Cells Dialog box visible and select Custom in the Categorybox.

2. Again, left click in the Type box after the last character, push the backspace so that there is no formatting at all in the type box

3. Now type �any old date and time� including the quotation marks (��).

4. Click OK and you should see what appears to be the text any old date and time in the cell containing the date and time.

You should notice that what appears to be text is aligned to the right as opposed to the left. If you click in the cell, and look in your formula bar, you should see that the underlying value of the cell has not changed at all. We can still reformat this cell to reflect the original date by defining the date/time format.

Of course, the same could apply to any number or text when working with the formats of the cell. No matter what format we apply, the underlying value will never change. However, having said this, there is one instance in which formatting can have an adverse affect on the value of the cell. This is the format Text which is also found under Category: on the Number tab of the Format Cells Dialog Box. I won�t go into any detail at this point as it will be best explained when we look at using formulas in Excel.

As you will have noticed, while we had the Format Cells Dialog Box visible, there were other page tabs that can also be used to manipulate the formatting of a cell. The best way to find out what each feature on these page tabs will do is to simply type some data in a cell or cells and have a play with the settings. This way you will see immediately what affect it has on your data and you cannot do any harm whatsoever in doing so.

The only exception to this is the Protection page tab. We will be discussing this in a later lesson when we look at Protecting Worksheets. Many of the most common options and features available through the Format Cells Dialog Box can be found on the Formatting Toolbar. Remember to wave your mouse over each icon for a short description of what it does.

Go To Free Excel Training Lesson 15 .  Back to Previous Lesson

Go to Excel Basic/Level 1 Training Index

<< PREVIOUS LESSON |NEXT LESSON>> | BACK TO EXCEL LEVEL 1 TRAINING INDEX


Instant Download and Money Back Guarantee on Most Software

Try out:Analyzer XL |Downloader XL |Smart VBA |Trader XL Pro (best value) |ConsoXL | MergeXL | O2OLAP for Excel | MORE>>

Excel Trader PackageTechnical Analysis in Excel With $139.00 of FREE software!

Microsoft � and Microsoft Excel � are registered trademarks of Microsoft Corporation. OzGrid is in no way associated with Microsoft

Some of our more popular products are below...
Convert Excel Spreadsheets To Webpages | Trading In Excel | Construction Estimators | Finance Templates & Add-ins Bundle | Code-VBA | Smart-VBA | Print-VBA | Excel Data Manipulation & Analysis | Convert MS Office Applications To...... | Analyzer Excel | Downloader Excel | MSSQL Migration Toolkit | Monte Carlo Add-in | Excel Costing Templates