Ids Assignment - 1

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 20

SCHOOL OF COMPUTER SCIENCE AND ENGINEERING

ASSIGNMENT - 01

NAME: SAI KUMAR


COURSE: ARTIFICIAL INTELLIGENCE & DATA SCIENCE (AI-DS)
SECTION: C
SUBJECT: INTRODUCTION TO DATA SCIENCE
SUBJECT CODE: B21CS0101
SRN No.: R21EH157
SEMESTER: 01
SUBMITTED TO: Mr. BHASKAR REDDY
1. HOW TO INSERT A TABLE IN MICROSOFT EXCEL SPREADSHEET?
EXPLAIN WITH AN EXAMPLE.

SOLUTION:

STEP 1: Open MS Excel on your computer system either by directly searching on the search
tab or using the MS Excel icon, if present on the desktop. A snippet is shown below:

STEP 2: Prepare some data, and it should be in such a way that it is forming a tabular
structure (for example, taking a monthly report or sales report). Prepare an example data and
organize it in the tabular form.
STEP 3: Next to the 'Home' tab, you will see the 'Insert' tab; click on it, and you will see the
below shown 'Insert' tab options:

STEP 4: Click on 'Tables' or press 'Ctrl + T' in order to insert a table for your prepared data.
When you click on 'Tables', a dialog box will appear asking, "Where is the data for your
table?" and for it, you need to provide the cell reference from where you need to keep your
data in the tabular structure. You can also notice that it, by default, also take the cell
references as per the entered data.

STEP 5: Finally, the entered data will get converted into the tabular form, and our table will
be created successfully for the specified data.
2. WHAT IS A FORMULA V/S FUNCTION IN EXCEL?

SOLUTION:

A Formula is an equation designed by a user in Excel, while a Function is a predefined


calculation in the spreadsheet application. Excel enables users to perform simple
calculations such as finding totals for a row or column of numbers. Formulas and Functions
can be useful in more complex situations, including calculating mortgage payments, solving
engineering or math problems, and creating financial models.

EXAMPLES OF A FORMULA:

When a user types an equal sign in a cell, they are starting to create a formula.

Examples of a formula include:

=4+3

=A3+C9
=B7+B8-(4*2) +1

EXAMPLES OF A FUNCTION:

When a user types an equal sign followed by a predefined set of letters (or clicks on the Fx
button in the formula bar), a function begins to be implemented.

=SUM (A3: A27)

=AVERAGE (F4: F8)

=NPV (0.12, A5: G5)

EXAMPLES OF A FORMULA AND FUNCTION:

It doesn’t just need to be a case of formula vs. function. Users can combine the two to create
an even more powerful analysis.

Examples of the two combined are:

=SUM (A5: A8)/5

=AVERAGE (B3: B19) +25 + SUM (1,2,3,5)

=NPV (0.12, A5: G5) *0.8

FORMULA vs. FUNCTION IN PRACTISE:

In common business practice, Excel users use the terms formula and function almost
interchangeably. From a communication and comprehension perspective, there’s not a big
difference. Just technically, a function is a piece of code that executes a predefined
calculation, while a formula is something you create yourself.
3. BRIEFLY EXPLAIN THE DATA VALIDATION IN EXCEL ALONG
WITH ANY THREE EXAMPLES.

SOLUTION:

Excel Data Validation is a feature that restricts (validates) user input to a worksheet.
Technically, you create a validation rule that controls what kind of data can be entered into
a certain cell. We can create a customized message which will appear when a user inserts
any incorrect value or an incorrect format. We can even create dropdowns as well, which
saves unnecessary space and shows the values in a single cell.

Few examples of what Excel’s Data Validation can do:

Allow only numeric or text values in a cell.

Allow only numbers within a specified range.

Allow data entries of a specific length.

Restrict dates and times outside a given range.

Restrict entries to a selection from a drop-down list.

Validate an entry based on another cell.

Show an input message when the user selects a cell.

Show a warning message when incorrect data has been entered.

Find incorrect entries in validated cells.

EXAMPLES:

1.} WHOLE NUMBERS AND DECIMALS:

To restrict data entry to a whole number or decimal, select the corresponding item in the
Allow box. And then, choose one of the following criteria in the Data box:

 Equal to or not equal to for the specified number.

 Greater than or less than for the specified number.

 Between the two numbers or not between to exclude that range of numbers.
2.} DATE AND TIME VALIDATION IN EXCEL:

To validate dates, select Date in the Allow box, and then pick an appropriate criterion in


the Data box. There are quite a lot of predefined options to choose from: allow only dates
between two dates, equal to, greater than or less than a specific date, and more. Similarly, to
validate times, select Time in the Allow box, and then define the required criteria.

3.} TEXT LENGTH:

To allow data entry of a specific length, select Text length in the Allow box, and choose the
validation criteria in accordance with your business logic.

4. BRIEFLY EXPLAIN THE WORKING OF MULTIPLE


WORKSHEETS IN EXCEL.

SOLUTION:

Every workbook contains at least one worksheet by default. When working with a large
amount of data, you can create multiple worksheets to help and organize your workbook
and make it easier to find content. You can also group worksheets to quickly add
information to multiple worksheets at the same time.

1.} TO INSERT A NEW WORKSHEET:

Locate and select the NEW SHEET button near the bottom-right corner of the Excel
window.

A new blank worksheet will appear.


By default, any new workbook you create in excel will contain one worksheet, called
Sheet1. To change the default number of worksheets, navigate to Backstage view, click
Options, then choose the desired number of worksheets to include in each new workbook.

2.} TO COPY A WORKSHEET:

If you need to duplicate the content of one worksheet to another, Excel allows you to copy an
existing worksheet.

a) Right-click the worksheet you want to copy, then select Move or Copy from the
worksheet menu.

b) The Move or Copy dialog box will appear. Choose where the sheet will
appear in the Before sheet: field. In our example, we'll choose (move to
end) to place the worksheet to the right of the existing worksheet.
c) Check the box next to Create a copy, then click OK.
d) The worksheet will be copied. It will have the same title as the original worksheet, as
well as a version number. In our example, we copied the November worksheet, so our
new worksheet is named November (2). All content from the November worksheet
has also been copied to the new worksheet.

e) You can also copy a worksheet to an entirely different workbook. You can select any
workbook that is currently open from the to book: drop-down menu.

3.} TO RENAME A WORKSHEET:

 Right click the worksheet you want to rename, then select Rename from the
worksheet menu.
 Type the desired name for the worksheet.

 Click anywhere outside the worksheet tab, or press Enter on your keyboard. The
worksheet will be renamed.

4.} SWITCHING BETWEEN WORKSHEETS:

If you want to view a different worksheet, you can simply click the tab to switch to that
worksheet. However, with larger workbooks this can sometimes become tedious, as it may
require scrolling through all of the tabs to find the one you want. Instead, you can
simply right-click the scroll arrows in the lower-left corner too.

A dialog box will appear with a list of all of the sheets in your workbook. You can then
double-click the sheet you want to jump to.
5. EXPLAIN THE BASIC FUNCTIONS THAT ONE MUST KNOW
WHILE OPERATING THE EXCEL.

SOLUTION:

 SUM:

The first Excel function you should be familiar with is the one that performs the basic
arithmetic operation of addition:

SUM (number1, [number2], …)

In the syntax of all Excel functions, an argument enclosed in [square brackets] is optional,
other arguments are required. Meaning, your Sum formula should include at least 1 number,
reference to a cell or a range of cells. For Example:

=SUM (B2:B10) - adds up values in cells B2 through B10.

=SUM (B2, B6) - adds up values in cells B2 and B6.

To sum with conditions, we use the SUMIF function.


 AVERAGE:

The Excel AVERAGE function does exactly what its name suggests, i.e., finds an average, or
arithmetic mean, of numbers. Its syntax is similar to SUM's:

AVERAGE (number1, [number2], …)

To average cells based on conditions, we use the AVERAGEIF formula.

 MAX & MIN:

The MAX and MIN formulas in Excel get the largest and smallest value in a set of numbers,
respectively.
 COUNT & COUNTA:

While the COUNT function deals only with those cells that contain numbers, the COUNTA
function counts all cells that are not blank, whether they contain numbers, dates, times, text,
logical values of TRUE and FALSE, errors or empty text strings (""):

 IF:

Judging by the number of IF-related comments on our blog, it's the most popular function in
Excel. In simple terms, you use an IF formula to ask Excel to test a certain condition and
return one value or perform one calculation if the condition is met, and another value or
calculation if the condition is not met:

=IF (logical_test, [value_if_true], [value_if_false])

 TRIM:

If your obviously correct Excel formulas return just a bunch of errors, one of the first things
to check is extra spaces in the referenced cells (You may be surprised to know how many
leading, trailing and in-between spaces lurk unnoticed in your sheets just until something
goes wrong!). There are several ways to remove unwanted spaces in Excel, with the TRIM
function being the easiest one:
=TRIM (text)

 CONCATENATE:

In case you want to take values from two or more cells and combine them into one cell, use
the concatenate operator (&) or the CONCATENATE function:

=CONCATENATE (text1, [text2], …)

For example, to combine the values from cells A2 and B2, just enter the following formula in
a different cell:

=CONCATENATE (A2, B2)

To separate the combined values with a space, type the space character (" ") in the arguments
list:

=CONCATENATE (A2, " ", B2)


 AND & OR:

These are the two most popular logical functions to check multiple criteria. The difference is
how they do this:

 AND returns TRUE if all conditions are met, FALSE otherwise.

 OR returns TRUE if any condition is met, FALSE otherwise.

6. HOW TO IMPORT XML DATA INTO EXCEL?

SOLUTION:

1.} THROUGH WEBSITE (XML DATA) EXTERNAL DATA DOWNLOAD:

In this example to import XML into Excel, we will assume we are trading the Euro currency
and would like to get the exchange rates from the European Central Bank web service. Copy
the address of the website from which the xml file is being downloaded.

 Open a new workbook.

 Click on the DATA tab on the ribbon bar.


 Click on “From Web” button.

 You will get the following window.

1. Enter the address of the website.


2. Click on Go button, you will get the XML data preview.
3. Click on Import button when done.

You will get the following options dialogue window.

 Click on OK button.
 You will get the following Excel import XML data.

7. HOW TO IMPORT CSV DATA FILE INTO AN EXCEL FILE?


SOLUTION:

STEP 1: First of all, open a blank Excel file and navigate to the Data tab in the Excel menu
bar.

STEP 2: In the Data Ribbon, you will see Get External Data dropdown button; click on it.

STEP 3: From this dropdown list, click on the From Text option. From text option will
allow importing plain text data (CSV data) to the Excel sheet.

STEP 4: Browse the CSV file in your system folder, select it and click on the Import button
at last.
1. Choose the file type that can best describe your data and specify if the data has a
header.
2. Set the delimiters that your data will contain in Excel.
3. Set the column data format to General.

STEP 5:  A text import wizard will open. Here, chooses the file type Delimited that will best
describe our data.

In the same wizard, mark the "My data has header" and then click on the Next button.

STEP 6: Set the comma delimiter here. Mark the Comma checkbox and see the preview how
data will be visible in the Excel worksheet after importing. Click the Next button.
STEP 7: In the third/last step, set the column format to General by marking the radio button
and finish the task.

STEP 8: A new popup panel will open where select the cell from where you want to import
the CSV file data and click on the OK button.
STEP 9: You can also select another cell back on the Excel worksheet from where the CSV
file will start importing. Your CSV file data has been successfully imported to the Excel file.
Now, you are allowed to data manipulation operations on it.

CSV file data has been imported in different columns as you have marked the Comma
delimiter checkbox in step 6.

8. HOW TO IMPORT MS ACCESS DATA INTO EXCEL?

SOLUTION:

 In Excel, when you import data, you make a permanent connection that can be refreshed.
 On the Data tab, in the Get & Transform Data group, click Get Data.

 Click from Database, From Microsoft Access Database.

 Select the access file.

 Click import.

 Select a table on the left side of the navigator window and click on load.

 The desired result is obtained. Your database is recorded in excel.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy