0% found this document useful (0 votes)
120 views5 pages

Activity 6 PDF

The document provides instructions and information about working with dates in Microsoft Excel. It discusses how dates are stored as numbers representing the number of days since January 1, 1900. It also describes how to format dates in Excel using built-in formats like short date or long date, or using a custom format with date parameters like d, m, and y. The document provides examples of custom date formats and how they display the same date differently.

Uploaded by

Lei
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
120 views5 pages

Activity 6 PDF

The document provides instructions and information about working with dates in Microsoft Excel. It discusses how dates are stored as numbers representing the number of days since January 1, 1900. It also describes how to format dates in Excel using built-in formats like short date or long date, or using a custom format with date parameters like d, m, and y. The document provides examples of custom date formats and how they display the same date differently.

Uploaded by

Lei
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

COMP212 – Computer Fundamentals and Programming

Activity 6 – MICROSOFT EXCEL - PRACTICAL EXERCISE


EXERCISE 7:
In Exercise 7, students create a Microsoft Excel file.
Create an excel file containing the following data:

Save your work as “CE212 _SECTION_ACT6E7_LASTNAME-FIRSTNAME-MI.xlsx”


COMP212 – Computer Fundamentals and Programming

MODULE 6

Date Format in Excel

What is a date in Excel?

In Excel, you can display the same date in many different ways just by changing the date format.

Dates are whole numbers

Usually when you insert a date in a cell it is displayed in the format dd/mm/yyyy.

Now if you change the cell's format to Standard, the cell displays 42370.

Explanation of the numbering

In Excel, a date is the number of days since 01/01/1900 (which is the first date in Excel).

So 42370 is the number of days between the 01/01/1900 and 01/01/2016.

Date format

Dates can be displayed in different ways using the following 2 options (available in the Number Format
dropdown in the main menu):
COMP212 – Computer Fundamentals and Programming

Customize your date format


You can write the same date in different formats like this:
• 01/01/2018
• Jan 2018
• Mon, 1 Jan 2018
• …
Date parameters
A date has 3 parameters
• d for the day
• m for the month
• y for the year
COMP212 – Computer Fundamentals and Programming

How to customize a date?


To customize a date:
• Open the dialog box Custom Number (with the shortcut Ctrl + 1 or by clicking on the menu More
number formats at the bottom of the number format dropdown)
• In this dialog box, you select 'Custom' in the Category list and write the date format code in 'Type'.

To format a date, you just write the parameter d, m or y different number of times. For example, dd/mm/yyyy
will display the 1st of January 2016 as 01 Jan 2016. By entering the codes 1,2,3 or 4 times, the display will be
different.
COMP212 – Computer Fundamentals and Programming

Different examples of custom date


Here, you have different examples of display with the same date.

You might also like