Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
информатика UMKD_Angl.doc
Скачиваний:
1
Добавлен:
01.07.2025
Размер:
1.98 Mб
Скачать

Laboratory work № 7 Using a spreadsheet as a database. Using the function Date and time

Objective: Consolidate skills names for cell ranges; acquainted with the logic functions and functions category Date and time

Give examples of functions category Date and time are commonly used in data processing:

TODAY()function to determine the current date, no arguments

DAY(date) function to calculate the day of the date of

MONTH(date) function to extract the month from a date

YEAR(date) function to extract the year from date

DAYS360(start date, end date) function for calculating the number of days between two dates

JOB 1.

  1. Create a table on the model below (Table 28), rename Sheet1 "Personnel department" and enter the data in the table.

  2. Enter the following formula:

• In cell C2, enter the formula =TODAY(). Set the date format with the name of the month

• In cell E8, enter the formula: =YEAR(D8), in cell F8 enter: =MONTH(D8) • The column G is calculated as the difference between the current year and year of birth, in the G8: =YEAR($C$2)-E8

• Column H is necessary to calculate the number of days between the date of joining and using the current DAYS360 and the resulting value divided by 365, in H8: =DAYS360(C8,$C$2)/365

• Copy the formula entered into all cells of the table. Data column H set the number format with one decimal

3. Format the data in cells C8:D21 (Format Cells, Number, Date, and select the appropriate date in the table)

4. Cells for each column in the table create names of column names.

5. In cell C4, enter the formula =COUNTR(Name)(счётз()) to determine the number of values in a column Name

6. In F4 and F5, enter the formula to calculate the average age and seniority. As arguments to functions using names corresponding cell ranges.

7. Add a column with the name Sign. Enter in this column the cell formula =IF(G9<=35,1,0), which returns the number 1, if the value is less than or equal to the age of 35 and 0, if greater.

8. In cell C5 enter the formula the sum of the column Sign(Признак). 9. Take the last column of the table invisible by typing Format - Column - Hide. 10. Save the file in your folder.

Table 28 Data on employees of company "First autopark"

Personnel department

Information on:

Number of employees

The average age

Including under the age of 35 years

Average length of service

Name.

Date of joining

Date of Birth

Date of birth

Month of birth

Age, years

Of work experience, years

Abjanova А.

3 Oct 94

10 March 1973

Fkvfnjva G.

2 Aug 03

05 March 1982

Abdrahmanov Т.

4 Dec 87

17 March 1962

Ospanov G.

27 Dec 07

11 December 1986

Sainov А.

01 Sept 90

11 June 1966

Koghahmetova Н.

27 July 04

07 September 1983

Ghanulina А.

29 Apr 93

03 May 1960

Shimko Н.

4 June 02

32 Mай 1981

Valko Т.

27 Sept 98

27 Octorber 1970

Negoda О.

17 Aug 99

13 March 1969

Karabasov А.

20 Nov 02

24 May 1984

Kaliko.

6 March 93

11 August 1971

Kirichenko О.

01 March 99

13 May 1963

Kim С.

19 Aug 92

17 September 1975

JOB 2.

  1. Create a document MS EXCEL.

  2. Create a table corresponding to Table 29.

  3. Make a list of your loved ones and enter their date of birth (day, month and year). Using the Number tab (field type, format Main), specify the format of numeric values for columns С format DD.MM.YYYY“.year” ( ДД.ММ.ГГГГ; D – ГГГГ“ .г”); for columns E format MMMM (ММММ); for columns F format D (Д); for columns G format DDDD (ДДДД).

  4. Copy the date of birth on the 4th column to the left, using an absolute reference to the original cell. In the next column, calculate how much each spent years, months, days use the function roundeddown(ОКРВНИЗ()) and today (СЕГОДНЯ()).

  5. For the 8 column in the table is necessary to calculate the number of days between two dates (date of birth and current) through a DAYS360 and the resulting value divided by 365.

  6. For 9, 10 columns are calculations also use the DAYS360.

Table 29 – Use date and time functions

Name

Date of birth

Year

Month

Number

Day

Lived

Years

Month

Days

4. Copy the original table on another sheet by using the Move/Copy. Remove the column values Year, Month, date, and day. Clean the format of these columns. Fill these columns using date and time functions. Enter the formula:

4.1. In cells of fourth column enter the formula using the allocation function, the date of birth of the year().

4.2. In cells of fifth column of the table input function selection of the month from the date of birth month().

4.3. In cells of sixth column of the table cell, type – function highlight the day of your birth day().

4.4. In cells of seventh column of the table, type – function highlight the day of the week from the date of birth WEEKDAY ().

JOB 3.

Logical function SUMIF()

1. Create ledger accounting records on which will be displayed at the specified account balance since the beginning of this month.

2. Fill in the table «Main Journal» on the model below (Table 30). 3. Table «Balance sheet» in a row, enters Account input 368, 110.102, 105, 222, 221. 4. In line Debit, c calculate sums on the accounts using the SUMIF() function. In the calculation formulas use absolute and relative addressing.

Таблица 30 – Main Journal Таблица 31 – Balance sheet

Main Journal

Balance sheet

Date

Account

Debit

Credit

Today

01 sept

368

10000

150

02 sept

110

200

1000

Account

03 sept

368

250

5000

04 sept

102

425

100

Debit

05 sept

105

650

200

06 sept

222

700

500

Credit

07 sept

368

800

720

08 sept

222

900

2000

Balance

09 sept

368

10

300

10 sept

221

120

20

11 sept

222

300

580

12 sept

368

550

900

13 sept

105

100

670

14 sept

110

100

850

15 sept

102

200

5