Final Dass
Final Dass
Institute of Management
Integrated BBA MBA Programme
L T Practical Component C
NIRMA UNIVERSITY
LPW PW W S Institute: Institute of Management
2 0 2 0 0 0 3
Name of Integrated BBA – MBA
Programme: Programme
Course Code: 2MU202
Course Title: Data Analysis through
Spreadsheet
Course Type: Core
Year of 2023 – 24 (Semester III)
Introduction:
UNIT I: DATA ANALYSIS USING SPREADSHEETS-I 6 Syllabus
● BASICS OF EXCEL VIEW OF WORKBOOK
•Total Teaching Hours: 30
● WORKING WITH DATA: CONDITIONAL FORMATTING, •Suggested Readings:
SORTING AND FILTERING DATA
•Alexander, M., Kusleika, R., & Walkenbach, J.
● IMPORTING DATA AND CONSOLIDATING DATA
Excel Bible, Latest edition. John Wiley & Sons.
● DATA VALIDATION
•Jelen, B., & Alexander, M. Microsoft Excel 2019
● WORKING WITH FORMULAS: FORMULA BAR, HOW TO Pivot Table Data Crunching. Microsoft Press.
WRITE FORMULA, CELL ADDRESS, RANGE.
•McFedries, P. Excel data analysis for dummies,
UNIT III: DataLatest
Visualization
edition.using
JohnSpreadsheets
Wiley & Sons. 4
UNIT II: Data Analysis using Spreadsheets-II 6 ● Create and modify graphs / charts like Column, Line, Pie,
● Working with Formulas: reference style, absolute reference, relative Bar, Area, Scatter, 3D etc.
reference, mixed reference.
● Working with multiple sheets, hyper linking.
● Working with functions: Use of some basic and advance
Unit IV: Spreadsheet Excel Functions 4
● Introduction to Data Analysis Tool Pack
Sum, Max, Min, Average, Count, Today, Now,
● Pivot Table and Pivot chart Datedif, Countif, CountA, CountBlank, Round, Roundup
Introduction: Microsoft Office Excel was designed to support accounting functions such as
budgeting, preparing financial statements and creating balance sheets. It is not only accounting
functions, and many complex mathematical calculations can do with the helps of spread sheet.
• Spreadsheets provide a roadmap of analysis. The spreadsheets provide a template that can be filled
in with real data for hands-on illustrations.
• The power of spreadsheets becomes apparent when one compares them to the traditional sequence
of text narratives and numerical derivations for real cases.
• It also supports many activities such as modeling and financial forecasting and integrates with
external data to import and export banking information and financial data to and from other
accounting software platforms.
• There is a few spreadsheet programs but of all of them, excel is the most widely used.
People have been using it for the last 30 years and throughout these years, it has been
upgraded with more and more features.
• The best part about Excel is, that it can apply to many business tasks, including statistics,
finance, data management, forecasting, analysis, tracking inventory and billing, and
business intelligence.
Workbook in excel
(i) At a basic level, a workbook consists of data, charts,
and formulas.
(ii)Excel is a file to create, save, organize, and manage
your data in a structured way.
When you launch Excel, it automatically creates a blank
workbook consisting of one default worksheet named
“Sheet 1”.
Workbook meaning in Excel:
A workbook is an excel file that contains the worksheet
and tools with which we do our work.
The differences between
Workbook and Worksheet
• A workbook comprises
worksheets and tools for excel
work
• while a worksheet
comprises rows, columns, and
cells where we input and process
our data in excel. In other words,
a worksheet is a part of a
workbook.
1.Title bar: The name of the file
2.Quick access toolbar: The place where you can find some
command buttons very quickly (Save, can’t undo control Z and Repeat
typing control Y)
3.Menu bar: The division of commands in the ribbon
4.Ribbon: The place where you can find the command buttons you
need to run for your excel work
5.Address bar: This is the box to give your active cell currently is in
column and row coordinates
6.Formula bar: The box that shows the value of your active cell
7.Active cell: The cell you currently select
8.Column letters: The place that shows the column letters of all the
cells currently displayed in the worksheet
9.Row numbers: The place that shows the row numbers of all the cells
currently displayed in the worksheet.
From Excel 2007 onwards (2010, 2016, etc) we have exactly 1,048,576
rows and 16,384 columns. But with the Excel 2003 version, we have only
65,000 rows and 255 columns.
10. Sheet bar: The place that shows all the worksheets in the
workbook, the active worksheet, and the buttom to add a worksheet
11. Status bar: The place that shows the status of your workbook and
gives some quick calculation results when you highlight a cell
range with multiple data.
12. View buttons: The place where you can select the view mode of
your active worksheet
13. Zoom slider: The place where you can manage the zoom level of
your active worksheet
WORKING WITH DATA: CONDITIONAL
FORMATTING, SORTING AND FILTERING
DATA
• Introduction: In any organization, various types
of decisions are taken based on working with
data or analyzing the data by the data manager.
When we are working with the data, it consists of
various rows and columns related to text type or
values in the form of a table. Sorting, filtering,
and formatting will be helpful for creating,
editing, and formatting tables. In this session, we
will use analysis on table data.
Sorting: Sorting refers to rearrange records so that they are sorted Title Year Director In Stock
alphabetically or numerically. To classify some columns by alphabetical A Christmas Carol 1951 Brain Hurst 0
order, with the highest numbers going to the lowest number or the lowest
Christmas in July 1940 Preston Sturges 1
number going to the highest number. These are things you can do by sorting
An Angel from Texas 1940 Ray Enright 1
your data.
The big sleep 1946 Howard Hawks 2
THE MAIN ADVANTAGES OF USING A TABLE IS THAT TO
Allen 1979 Ridley Scott 3
REARRANGE THE DATA AS PER OUR REQUIREMENT
A Clockwork Orange 1971 Stanley Kubrick 3
ALPHABETICALLY OR NUMERICALLY. EXCEL OFFERS TWO
KINDS OF SORTS: Slade Runner 1982 Ridley Scott 4
Big 1988 Penny Marshall 5
1. Ascending: this type of sort arranges the items in a field from
Die Hard 1991 John Mc. Tieman 6
smallest to largest if the field is numeric, from A to Z if the field
is text, and from oldest to newest if the field contains date or
time data.
2. Descending: this sort type arranges the items in a field from
largest to smallest if the field contains numbers, from Z to A if
the field contains text, and from newest to oldest. if the field
contains dates or times.
We can sort dates in the following ways:
• Oldest to Newest Function:
• Newest to Oldest • Select the headers in your data set
We can sort numbers in the following ways:
• Click on the filter icon
• Smallest to Largest
• Largest to Smallest
• Click on the drop-down icon
For words or letters in the following ways: • Choose ‘Oldest to Newest” to sort the table
• A to Z
• Z to A
• 2: Filtering: One of the biggest
problems in big tables is finding the
required data. Sorting helps will show
the total data as per the requirement
A>Z or Z>A, Highest to Lowest or
Lowest to Highest, but filter helps In
ensure required data will be shown on Title Year Director Stock
the screen. A Christmas
Carol 1951 Brain Hurst 0
To use the “Filter” function: A Clockwork Stanley
Orange 1971 Kubrick 3
• First select the table headers
Allen 1979 Ridley Scott 3
• Then go to the “Data” tab and click on
the “Filter” icon Selected data between 1950 to 1980
• From XML
Data consolidation in Excel?
• Data consolidation in Excel is the
process of bringing similar data
from multiple sources to one place.
• It is useful to summarize the same
data from multiple sources.
• Consolidating data in Excel allows
combining data from multiple rows
and ranges using functions such as
sum, average, count, min, and max.
• Example #1 – How to consolidate data in Excel from multiple rows
• Rows consolidation in Excel can be helpful when you have multiple rows with the same entries.
• Let’s say you have a record of various orders placed on an e-commerce store containing
columns for order ID, product SKU, and quantity.
In the upper tab, select Data, and click on Consolidate in the ‘Data Tools’ section.
The ‘Consolidate’ will appear on the screen. Select the appropriate function, click on the little
upside arrow in the reference field, and select the reference ranges.
• Function:
• Go to Data
• Click on Consolidation button
• Execute different functions sum, count, average, max, min etc.
After selecting the range, click on Add button to add it as a reference. Check the appropriate option in the ‘Use labels in’
section (It is ‘Left column’ in this example to add up product quantities with the same SKU), and click on OK to
proceed.
DATA VALIDATION
Excel is a powerful tool professionals use for data analysis, reporting, and
decision-making. Data validation is a critical Excel feature that helps users control
the input to ensure accuracy and consistency. This feature prevents users from
entering invalid data that could lead to errors in calculations, reports, and
automated processes. For example, you can restrict data entry to a certain range of
numbers, dates, or a list of predefined items, ensuring that data adheres to the
required format and standards.
Importance of data Validation Important:
• Enhances Accuracy: Ensures that data entered spreadsheets meets the predefined
criteria, reducing the chances of errors.
• Saves Time: Reduces the need for manual checks and corrections of data entries.
• Improves Efficiency: Automates data control, streamlining data entry and
processing.
• Supports Data Integrity: Maintaining consistency and reliability in datasets is
crucial for analysis and decision-making.
Step 1: Select the Cells for Data Validation
• First, identify the cells where you want to apply
data validation. Holding down the Ctrl key while
selecting allows you to select a single cell, a range
of cells, or multiple non-adjacent cells.
Step 2: Open the Data Validation Dialog Box
• To access the data validation settings:
• Click on the cell or cells where you want to apply
data validation.
• Go to the Data tab on the Ribbon.
• Click on the Data Validation button in the 'Data
Tools' group.
• This action will open the Data Validation dialog
box, which consists of three tabs: Settings, Input
Message, and Error Alert.
Step 3: Set Up Validation Criteria
• In the Data Validation dialog box, under the Settings tab, you can
define your validation criteria:
• Allow: Select the type of data. Options include:
• Whole Number: Only whole numbers are permitted.
• Decimal: Only decimal values are permitted.
• List: Only values from a predefined list are allowed.
• Date: Only date values are permitted.
• Time: Only time values are permitted.
• Text Length: Only text of a certain length is allowed.
• Custom: For more complex criteria, use a formula.
• Data: Specify the condition (e.g., between, not between, equal to,
not equal to, etc.).
• Minimum/Maximum: Enter the acceptable range or limits based
on your selection above.
• For example, to ensure that only values between 10 and 100 are
entered in a cell, select "Whole Number," "between," and then set
the minimum to 10 and the maximum to 100.
Step 4: Configure an Input Message (Optional)
• Switch to the Input Message tab to create a message that will
appear when the cell is selected:
• Show input message when cell is selected: Check this box to
enable the input message.
• Title: Enter a brief title for the input message box.
• Input Message: Type the guidance text that will appear when
someone selects the cell. This should instruct them on what type
of data to enter.
Step 5: Customize the Error Alert (Optional)
• Under the Error Alert tab, you can specify what happens when
someone tries to enter invalid data:
• Show error alert after invalid data is entered: Check this to
enable error alerts.
• Style: Choose from Stop, Warning, or Information to indicate
the severity of the alert.
• Title: Enter a title for the error message box.
• Error Message: Write the message displaying when invalid data
is entered. This should explain the error and how to correct it.
• WORKING WITH FORMULAS:
FORMULA BAR, HOW TO WRITE
FORMULA, CELL ADDRESS, RANGE.
What Is The Formula Bar?
• The Formula Bar is where data or
formulas you enter a worksheet appear for
the active cell. The Formula Bar can also
be used to edit data or formula in the
active cell.
What is a formula bar in Excel?
• Excel formula bar is a special toolbar at the top of the Excel
worksheet window, labeled with function symbol (fx). You can
use it to enter a new formula or copy an existing one.
• The formula bar comes very handy when you are dealing with
a long formula, and you want to view it entirely without
overlaying the contents of the neighbor cells.
• The formula bar gets activated as soon as you type an equal
sign in any cell or click anywhere within the bar.
• Formula bar missing - how to show
formula bar in Excel
• Formula bar is very helpful for
reviewing and editing formulas in your
worksheets. If the formula bar is
missing in your Excel, most likely it's
because you've accidentally turned off
the Formula Bar option on the
ribbon. To recover a lost formula bar,
perform the following steps.
• Show formula bar in Excel 2019, Excel
2016, Excel 2013 and Excel 2010
• In the modern versions of Excel, you
can unhide formula bar by going to
the View tab > Show group and
selecting the Formula Bar option.
The Formula Bar can be expanded either vertically or horizontally depending on your needs.
1. To expand the Formula Bar horizontally, move the mouse cursor to the area between the Name Box and the the
Formula Bar until the cursor turns into a horizontal double ended arrow. Left click and drag to adjust the horizontal
size.
2. To expand the Formula Bar vertically, move the mouse cursor to the bottom of the Formula Bar area until the cursor
turns into a vertical double ended arrow. Left click and drag to adjust the horizontal size.
3. On the right hand side of the Formula Bar there is a expand or contract toggle. Use this to quickly adjust the Formula
Bar.
Show formula bar in Excel 2007
• In Excel 2007, the Formula Bar option
resides on the View tab > Show/Hide group.
Show formula bar in Excel 2003 and XP
• In insert the formula bar in the old Excel
versions, go to Tools > Options, then switch
to the View tab, and select the Formula
Bar checkbox under the Show category.
Unhide formula bar via Excel Options
• An alternative way to restore a lost
formula bar in Excel is this:
• Click File (or the Office button in earlier
Excel versions).
• Go to Options.
• Click Advanced in the left pane.
• Scroll down to the Display section and
select the Show Formula bar option.
HOW TO WRITE FORMULA:
Instead of entering values directly in your
Excel formula, you can refer to the cells,
containing those values.
For example, if you want to subtract a value
in cell B2 from the value in cell A2, you write
the following subtraction formula: =A2-B2
When making such a formula, you can type
the cell references directly in the formula
or click the cell and Excel will insert a
corresponding cell reference in your
formula. To add range reference, select the
range of cells in the sheet.
A big advantage of using cell references in
Excel formulas is that whenever you change
a value in the referred cell, the formula Note. By default, Excel adds relative cell references. To
recalculates automatically without you switch to another reference type, press the F4 key.
having to manually update all the
calculations and formulas on your
spreadsheet.
CELL ADDRESS, RANGE Get the
address of a cell with the highest or
lowest value
• In this example, we'll first find the
highest and lowest values in the range
B2:B7 by using the MAX and MIN
functions and output those values into
special cells:
• Cell E2:=MAX(B2:B7)
• Cell F2:=MIN(B2:B7)
UNIT II: Data Analysis using Spreadsheets-II
● Working with Formulas: reference style,
absolute reference, relative reference, mixed
reference.
● Working with functions: Use of some basic and
advance
● Introduction to Data Analysis Tool Pack
● Pivot Table and Pivot chart
Data Analysis using Spreadsheets-II
https://spreadsheeto.com/excel-functions/
Introduction
Data analysis with excel is a tool for analyzing and
visualization of data. The software enables to the users to
import, organize, facilitating and a structured foundation
for analysis.
Data analysis is the process of inspecting, cleaning,
transforming, and modeling data to discover useful
information, draw conclusions, and support decision-
making. It involves a variety of techniques and methods
for extracting insights from raw data, with the goal of
gaining a deeper understanding of patterns, trends,
relationships, and characteristics within the dataset.
Working with Formulas: reference style, absolute reference, relative reference,
mixed reference
Excel Cell References
• A cell reference is to capture information that is contained within another
cell or range of cells. By default, references in Excel are relative, which
refers to the relative position of the cell. If you are typing a formula in cell
A1 that involves cell A2, you are referencing the cell that is one cell
below where you are typing. If you were to copy the formula into another
cell, the reference would automatically perform the same relative action as
in its previous location.
• You can also use an absolute reference, which does not change if you
copy the formula into another cell. If you create a formula that refers to a
cell using an absolute reference, that same cell will be referred to
wherever the formula is us.
• Finally, you can use a mixed reference, which is a combination of the two.
When to Use Relative Cell References in Excel?
Relative cell references are useful when you have to
create a formula for a range of cells and the formula
needs to refer to a relative cell reference.
In such cases, you can create the formula for one
cell and copy-paste it into all cells.
Now, instead of entering the formula for all the cells one
by one, you can simply copy cell D2 and paste it into all
the other cells (D3:D8). When you do it, you will notice
that the cell reference automatically adjusts to refer to the
corresponding row. For example, the formula in cell D3
becomes B3*C3 and the formula in D4 becomes B4*C4.
Absolute Cell References in Excel?
• Unlike relative cell references,
absolute cell references don’t change
when you copy the formula to other
cells.
• For example, suppose you have the
data set as shown below where you
have to calculate the commission for
each item’s total sales.
• The commission is 20% and is listed
in cell G1.
• To get the commission amount for each item
sale, use the following formula in cell E2 and
copy for all cells:
• =D2*$G$1
• Note that there are two-dollar signs ($) in the cell
reference that has the commission – $G$2.
What does the Dollar ($) sign do?
• A dollar symbol, when added in front of the row and column
number, makes it absolute (i.e., stops the row and column
number from changing when copied to other cells).
• For example, in the above case, when I copy the formula from
cell E2 to E3, it changes from =D2*$G$1 to =D3*$G$1.
• Note that while D2 changes to D3, $G$1 doesn’t change.
• Since we have added a dollar symbol in front of ‘G’ and ‘1’ in
G1, it wouldn’t let the cell reference change when it’s copied.
• Hence this makes the cell reference absolute.
When to Use Absolute Cell References in Excel?
• Absolute cell references are useful when you don’t want the cell
reference to change as you copy formulas. This could be the case
when you have a fixed value that you need to use in the formula
(such as tax rate, commission rate, number of months, etc.)
• While you can also hard code this value in the formula (i.e., use
20% instead of $G$2), having it in a cell and then using the cell
reference allows you to change it at a future date.
• For example, if your commission structure changes and you’re
now paying out 25% instead of 20%, you can simply change the
value in cell G2, and all the formulas would automatically
update.
What are Mixed Cell References in Excel?
• Mixed cell references are a bit more tricky
than the absolute and relative cell references.
There can be two types of mixed cell references:
• The row is locked while the column changes
when the formula is copied.
• The column is locked while the row changes
when the formula is copied.
• Let’s see how it works using an example.
• Below is a data set where you need to calculate
the three tiers of commission based on the
percentage value in cell E2, F2, and G2.
• Now you can use the power of mixed reference
to calculate all these commissions with just
one formula.
• Enter the below formula in cell E4 and copy
for all cells.
• =$B4*$C4*E$2
Working with functions: Use of some basic and
advance
Microsoft Excel is one of the most well-known
computer applications. It has changed the way
people and companies work with data.
• Thus, learning Excel can help with both your
career and your personal needs. These range
from basic arithmetic to complex statistics. We
have rounded up 15 of the most common and
useful Excel functions that you need to learn.
Basic Math Functions
(Beginner Level)
1. SUM
• This is the first function in
Excel that most new users
need. As the name implies,
the SUM function adds up all
the values in a specified group
of cells or range.
• Syntax: =SUM(number1,
[number2], …)
• Try it out in the practice
workbook.
• What are Excel functions?
• Excel is used to calculate and manipulate
numbers and text. To do this, you
use formulas!
• Formulas are expressions that tell Excel
what you want to do with the data. They
begin with the equal symbol (=) followed
by a combination
of operators and functions.
• What are operators?
• These are symbols that specify the type of
calculation you want to perform on the
elements of a formula.
• For example, to add two numbers, you can
type “=1+1” into a cell. Once you hit Enter,
Excel will run the formula and return the
result which is 2.
• Here are some examples of common
operators:
COUNT: It returns the number of cells
containing numeric values within the
input range.
• Syntax: =COUNT(value1, [value2], …)
• 1. To get the number of quizzes taken
by each student, use this formula
in cell G2:
• =COUNT(B2:E2)
• 2. Hit Enter and fill in the rows
below.
• If you would like to include non-
numeric values in the count, you can
use the COUNTA function. To count
the number of blank cells, you can use
the COUNTBLANK function.
• Learn more about the COUNT
function and its variants here.
AVERAGE
• The average of a list of numbers is
just the total divided by how many
numbers there are in that list.
• But it gets even easier using
the AVERAGE function in Excel.
• Syntax: =AVERAGE (value1,
[value2], …)
• 1. Type this into cell H2:
• =AVERAGE(B2:E2)
• 2. Hit Enter and fill in the rows
below.
Logical Functions
• A logical function in Excel allows you to make comparisons and use
the results to change how a formula calculates.
IF
• The IF function is a very popular function in Excel, and it is
actually quite easy to learn.
• Syntax: =IF(logical_test, value_if_true, [value_if_false])
• This function checks if a logical test is either TRUE or FALSE. It then
returns the specified value based on the result.
• Using the average score of each student, try to assign PASS or FAIL
grades. Assume that the passing score for this class is 60.
1. Begin the formula in cell C2 with “=IF(“
• The logical test is to check if the average score in Column B is
greater than or equal to (>=) the passing score of 60.
2. So, the formula becomes:
• =IF(B2>=60,
• If the comparison returns TRUE, then the formula should return the
text “PASS”. Thus, the value_if_true argument should be “PASS”.
• And if it returns FALSE, then the value_if_false argument should be
“FAIL”.
3. Thus, the formula becomes:
• =IF(B2>=60,”PASS”,”FAIL”)
• 4. Hit Enter and fill in the rows below.
• What if you needed to assign grades according to a scale instead of just
“PASS” and “FAIL”?
For that, you have to use multiple criteria or logical tests. While this is
possible using nested IF functions, it can get messy very quickly.
IFS function
• The IFS function was introduced in Excel 2016 to replace nested IF
functions.
• This function works by evaluating the first logical test or criteria. It
returns the corresponding value if it is TRUE. But if it is FALSE, the
function proceeds to evaluate the second criteria, and so on.
• 📖 In other words, the IFS function outputs the value that
corresponds to the first specified criteria that is true.
• Syntax: =IFS(logical_test1, value_if_true1, [logical_test2],
[value_if_true2],..)
• 1. First, the formula should check if the average score (column B) is
above or equal to 90. If yes, it should return “A”.
• =IFS(B2>=90,”A”,
• 2. If not, it should then check if the average score is greater than or
equal to 80. If yes, it should return “B”. If you do this up to grade D,
the formula becomes:
• =IFS(B2>=90,”A”,B2>=80,”B”,B2>=70,”C”,B2>=60,”D”,
• 3. For the last grade “F”, put “TRUE” for the logical test.
• The IFS function will only evaluate the last specified criteria if all
of the previous logical values were FALSE. Thus, you can set the last
criteria to always be TRUE thus making it a “catch all” statement.
• The final formula is then:
• =IFS(B2>=90,”A”,B2>=80,”B”,B2>=70,”C”,B2>=60,”D”,TRU
E,”F”)
FIND
The names are separated by a space
character ” “. So, you have to
identify the position of the space
within each text string in Column A.
0.715529036
0.867206977
x
0.561431854
0.540269293 =LEFT(AW3)
0.520915676
27.=TRIM- Removes irregular spacing, leaving
one space between each value
25. Right: Returns values from the right side of a cell
a bcd d a
232 2 =TRIM(AX3)
=RIGHT(AU3)
123 3 a bcd d a
=RIGHT(AU4)
2019 1000
2020 2000
2021 2000
28. NPV- 2022 2500
10% 2023 3500
discount
factor
₹ 7,945.37
=NPV(0.1,BA3:BA7)
1000E
29. The IFS function is 3000C
a premade function in
Excel, which returns 4000B
values based on one or 2000D
more true or false con
ditions. 1000E
=IFS(BB3>=5000,"A",BB3=4000,"B",BB3=3000,"C",BB3=20
00,"D",BB3>=1000,"E")
Introduction to Data Analysis Tool Pack
•The Data Analysis ToolPak is an add-in for Microsoft Excel that provides a set of tools for data analysis and
statistical analysis. The tools are designed to help users perform complex data analysis tasks, such as
statistical analysis, data modeling, and forecasting.
Calculating Descriptive Statistics in Excel
Microsoft Excel's Data Analysis ToolPak is a powerful tool that allows users to perform various statistical
analyses on their data. In this tutorial, I will show you how to use the ToolPak to perform descriptive
statistics, such as mean, median, and standard deviation. By the end of this tutorial, you will be able to use
Excel's Data Analysis ToolPak to better understand your data and make more informed decisions. See a
preview of each step to get descriptive statistics result.
Step 1. Activate the Data Analysis ToolPak
Step 2. Open the Data Analysis TookPak
Step 3. Select the Descriptive Statistics Option
Step 4. Add a Dataset
Step 5. Review the Results
Step 1. Activate the Data Analysis ToolPak
If you have never used the Data Analysis ToolPak, it is probably inactive on your Excel program. You can
check to see if you have it by first clicking on the data tab. Next, look for the analysis group on the far-right
side of your screen. If the data analysis option does not exist use the following steps to activate this add-in.
1.Click on the File tab, followed by clicking on options. Next, click on “Add-Ins.”
2.Next, click on the “Go” button to the manage add-ins section.
3.Lastly, check the “Analysis Pak” box and click “OK.”
You should now be ready to use the Data Analysis ToolPak from the data tab in the analysis group.
Step 2. Open the Data Analysis
TookPak
Click on “Data Analysis” in the
data tab and then click on
Descriptive Statistics in the dialog
box. Click the OK button.
Step 3. Select the Descriptive
Statistics Option
The tool has a lot of statistical
options. Select the descriptive
statistics option to return a variety
of descriptive statics calculations.
Step 4. Add a Dataset
Next, the range of the data needs to be
typed in the input range section of the
dialog box. Choose the output range
option and choose a cell for the output to
display by typing that cell location in the
blank field. Lastly, click in the Summary
statistics checkbox and click OK to
display the results.
Step 5. Review the Results
The results are printed in two columns.
The first column represents the
descriptive statistic label and the second
column shows the results. In the
following sections, I will describe what
these descriptive statistics mean.
Mean: The mean, which is a measure of central tendency, was calculated by taking the average of the whole data set. The sum of the data set is 222 and when
divided by 30 gives a mean of 222/30 = 7.4. The mean can be written as the expression: ∑x i /n, where n is the number of values and ∑x i is the sum of data values.
Standard Error: The standard error is defined as the standard deviation divided by the square root of the sample size. In the above example, the standard error is
4.45/sqrt(30) = 0.813.
Median: The median is the middle value and another measure of central tendency. To find the median or middle value of the data set, you need to arrange the
whole data set in ascending or descending order. The median value is directly in the middle when there is an odd number of values in the data set. When there is
an even number of values, there will be two middle values that need to be averaged to find the median.
Mode: Another measure of central tendency is mode. This is the value that appears more frequently than any other value. In the example above, 4 appears more
than any other number. There may be a case where there is more than one mode. This occurs when two numbers appear most frequently in a data set but appear
the same number of times.
Standard Deviation: Standard deviation is the square root of the variance result. There are two scenarios depending on whether the standard deviation is
calculated from a population or a sample. For a population standard deviation, the mathematical calculation is sqrt(∑(x i-Xbar)2/n). When calculating the standard
deviation for a sample the calculation is sqrt(∑(x i-Xbar)2/(n-1)). In the above example, the population standard deviation is or 4.378. The sample standard
deviation is the square root of or 4.453.
Variance: The variance is found by calculating the deviation of each value from the mean value followed by squaring the deviations and finding the average of
these squared deviations. To simplify the variance is the mean square deviation. The equation to calculate the population variance is ∑(x i-Xbar)2/n for a
population and for a sample variance ∑(x i-Xbar)2/(n-1). In the example above, the population variance is 19.173 (575.2/30) and the sample variance is 19.834
(575.2/29).
Kurtosis: Kurtosis describes the shape of a probability distribution. It specifically characterizes the peakedness or flatness of a distribution compared to a normal
distribution, which has a kurtosis of 3. A positive kurtosis indicates a higher peak and fatter tails compared to a normal distribution, while a negative kurtosis
indicates a lower peak and thinner tails. Kurtosis is used in finance and other fields to assess risk and describe the distribution of returns or other variables. In the
above example, kurtosis is 1.52.
Skewness: Skewness measures the asymmetry of a distribution. Symmetric data has data that are distributed symmetrically about the mean. If perfectly
symmetric we would say that the skewness of a distribution is zero. A distribution is positively skewed, or to the right, if the right tail is longer. If the left tail is
longer, we say the distribution is negatively skewed or skewed to the left. In the example, the skewness is 1.218. As a result, it can be said that the data is skewed
to the right and positively skewed with a long right tail.
Range: The range is the highest value in the data set minus the lowest value. In the example above, the range is 20 (Highest) minus 1 (Lowest) which equals 19.
Min and Max: The min and the max are the lowest and highest values in the data set respectfully. In the example above, the highest value is 20 and the lowest is 1.
Sum
The sum or ∑ is simply the addition of all the numbers in the data set. In the example above the sum is 222.
Count
The count is simply the size of the population or the size of the sample. In the example, the count is 30.
More About the Data Analysis ToolPak
The Data Analysis ToolPak is an add-in for Microsoft Excel that provides a set of tools for data analysis and statistical
analysis. The tools are designed to help users perform complex data analysis tasks, such as statistical analysis, data
modeling, and forecasting. Some of the tools included in the Data Analysis ToolPak are:
1. Histogram: Creates a histogram chart that shows the distribution of data within a dataset.
2. Frequency Distribution: Helps to create a table that shows the frequency of each value in a dataset.
3. Descriptive statistics: Provides summary statistics (mean, median, mode, standard deviation, etc.) for a dataset.
4. Correlation: Determines the strength of the linear relationship between two variables in a dataset.
5. Covariance: Measures how two variables are related to each other.
6. Regression: Helps to create a regression model and make predictions based on the data
7. Anova: Helps to determine whether there is a significant difference between the means of two or more groups
8. Sampling: Helps to select a random sample from a dataset.
9. Exponential smoothing: Helps to create a forecast based on historical data.
10.Moving Average: Helps to analyze time-series data and make predictions.
Pivot Table and Pivot chart: PivotTable to summarize, analyze, explore, and present summary data. Pivot Charts complement
PivotTables by adding visualizations to the summary data in a PivotTable, and allow you to easily see comparisons, patterns,
and trends. Both PivotTables and Pivot Charts enable you to make informed decisions about critical data in your enterprise.
You can also connect to external data sources such as SQL Server tables, SQL Server Analysis Services cubes, Azure
Marketplace, Office Data Connection (.odc) files, XML files, Access databases, and text files to create PivotTables, or use
existing PivotTables to create new tables.
Sometimes it's hard to see the big picture when your raw data hasn’t been summarized. Your first instinct may be to create a
PivotTable, but not everyone can look at numbers in a table and quickly see what's going on. Pivot Charts are a great way to
add data visualizations to your data.
What is pivot chart?
Pivot Chart is a dynamic visualization tool that works together with Excel PivotTables. While PivotTables provide a way to
summarize and analyze large datasets, Pivot Charts offer a graphical representation of that summarized data, making
trends and patterns easier to spot.
The beauty of pivot charts lies in their interactivity and flexibility. Like pivot tables, pivot charts are dynamic, meaning
they can be easily manipulated to display different aspects of the data.
Pivot graphs are particularly useful for presenting complex data in a clear and concise manner. They enable users to
identify trends, compare data points, and draw insights quickly. For example, with a pivot chart, you can easily visualize
how sales vary across different geographical regions, product categories, or specific time periods.
You can create different types of charts, such as pie, bar, line or scatter, and customize them to suit your needs. You
can also change their layout and appearance by applying different filters, fields, and formats. A pivot chart is linked to
the pivot table that it is based on, so any changes you make to the pivot table will be reflected in the graph.
In essence, a pivot chart serves as a visual storyteller, transforming raw data into meaningful insights that are easy to
understand and act upon.
Sometimes to create a summary of data using
Excel, you may need to use a Pivot Table. In
addition, sometimes for data visualization, you
may need to use a Pivot Chart. Apart from this,
you must know the difference between Pivot Table
& Pivot Chart in Excel.
What Are Pivot Table and Pivot Chart?
• A Pivot Table is a functional table that represents
the summary of data collection. On the other
hand, a Pivot Chart is the visual presentation of
the pivot table. So, you can say, this is the basic
difference between a pivot table and a pivot
chart in Excel. Besides, an example is given
below. In where the B12:D17 range represents a
pivot table and the corresponding pivot chart is
exactly below the pivot table.
How to Create a Pivot Table
• In this section, I will describe how to create a pivot table. In
addition, by creating pivot table and pivot chart, you can easily
understand the difference between a pivot table and a pivot chart
in Excel.
• Now, let’s start the making of the pivot table first. You can make
the pivot table not only from the internal data source but also
from the external data source. Besides, you can make the pivot
table both from a given table or from a given data range. Here, I
will show the easiest steps to create a pivot table. Let’s have the
following sample data set.
• The steps are given below.
Steps:
• Firstly, you must select the range. Here, I have selected the
range B4:D10.
• Secondly, from the Insert tab >> choose Pivot Table.
• Thirdly, you need to select From Table/Range.
• Subsequently, a dialog
box named PivotTable from
table or range will appear.
• Firstly, select the range for your
PivotTable. Which will be auto-
selected here.
• Secondly, choose Existing
Worksheet.
• Thirdly, select
the Location for PivotTable.
Here, I have selected
the B12 cell.
• Finally, press OK to get the
pivot table.
• Now, in PivotTable Fields, you must
drag Product to Rows.
• Similarly, you need to drag Sales and Profit to the Values.
• Finally, your PivotTable is done.
• Lastly, you can see the created pivot table.
At this time, you will see the following dialog box named Value
Field Settings.
•Now, from Summarize value field by option >> select your
targeted operation. Here, I have selected Average.
•Then, you need to click on OK to see the changes.
•As a result, you can see the following changes.
• Similarly, by changing the
operationof Profit from Sum to Ma
x, you will get the final result.
Which is given below.
How to Make a Pivot Chart
• To make a pivot chart in Excel, you can use
the PivotChart feature. The steps are given below.
• Steps:
• Firstly, you have to select the data range with which you
want to make a pivot chart. Here, I have selected the
range B4:D10.
• Secondly, you must go to the Insert tab.
• Thirdly, from PivotChart >> you need to
choose PivotChart.
• Now, a dialog box named Create PivotChart will appear.
• From the dialog box firstly, you have to
select Table/Range, which will be auto-selected here.
• Secondly, you may click on the Existing Worksheet under
the choose where you want the PivotChart to be
placed option.
• Thirdly, you have to choose the Location. Here, I have
chosen the new Location as B12 cell.
• Finally, you must click on OK to get the changes.
• At this time, you will see the following
situation.
• Now, in PivotChart Fields, you have to
drag Product to Axis (Categories).
• Similarly, drag Sales and Profit to the Values.
• Finally, your PivotChart is done.
• You will see that the
corresponding PivotTable will be also auto-
generated.
• Furthermore, you can change the style and color
of the pivot chart by clicking on the brush icon.
• Lastly, you will see the following formatted
result.
PIVOT TABLE PIVOT CHART
Pivot Chart is the visual
Pivot Table is a table of representation of the
summarized data. corresponding pivot
•Difference Between Pivot Table and table.
Pivot Chart If you create a pivot
You can create only a pivot chart, the corresponding
•The differences between pivot table and table. pivot table will be auto-
pivot chart in Excel are given below. generated.
•Moreover, both are connected in a two- In the pivot chart, you
way link. If you do any kind of There are lots of features in
can use the features that
functional or filtering changes to one, the the pivot table.
are available in the
other will be also changed. corresponding pivot
table.
UNIT III: Data Visualization using 4
Spreadsheets
● Create and modify graphs / charts like
Column, Line, Pie, Bar, Area, Scatter, 3D
etc.
● Working with multiple sheets, hyper
linking.
Defining Data Visualization
https://www.datacamp.com/tutorial/visualizing-d
ata-in-excel
• Data visualization is a graphical representation of
data. By utilizing charts, graphs, maps, etc., we
can provide a simple and accessible way to
understand our data and identify trends and
outliers within our datasets. Note that Excel uses
the term "chart" to mean a "plot". For example, a
bar plot is called a bar chart in Excel terminology.
Creating Basic Charts in Excel
• Excel has multiple options for choosing a
particular chart type. For example, if you want to
create a column or bar chart, you are often
presented with various visualization options.
Excel bar charts
• Bar charts are one of the easiest charts to interpret, enabling the person
viewing the chart an easy way to compare categorical data quickly. On a
bar chart, the categorical data is on the y-axis, and the values are on the x-
axis.
• To create a bar chart:
• Select the data range A1:D13
• Click the "Insert" tab in the Excel ribbon
• Click on the columns icon button dropdown, and under the “2-D Bar”
category, choose “Clustered Bar”
• Example Dataset
• We first need a dataset to work with before creating any visualizations. The
dataset contains information on the number of units sold for various
product types in 2022 and totals for columns and rows.
Excel column charts
• A column chart, also known as a vertical bar
chart, helps visualize data where categories
are placed on the x-axis and the values on the
y-axis. Similar to bar charts, they help
visualize data across categories.
• To create a column chart in Excel:
• Select the data range A1:D13
• Click the "Insert" tab in the Excel ribbon
• Click on the columns icon dropdown, and
under the “2-D Column” category, choose
“Clustered Column”
• You can now see a column chart that displays
the number of units sold for each product
category by the month.
Excel line charts
• A line chart is the most useful way to capture how a
numerical variable changes over time. This is helpful
to identify trends in numeric values.
• To create a line chart in Excel:
• Select the data range A1:D13
• Click the "Insert" tab in the Excel ribbon
• Click on the line chart dropdown, and under the “2-D
Line” category, choose “Line with Markers"
• You can now see a line chart displaying units sold
each month split by product category. This enables
you to compare each product category's performance
over time easily.
Excel pie charts
• A pie chart is most used to show the
proportions of a whole. It’s like
visualizing fractions when you were in
high school. With this pie chart, we want
to compare the total sales between the
three categories.
To create a pie chart in Excel:
• First, select the data range B1:D1
• Second, using the command (for Mac) or
ctrl (for Windows), select the second
date range: B14:D14
• Click the "Insert" tab in the Excel ribbon
• Click on the pie chart dropdown, and
under the “2-D Pie” category, choose
“Pie”
Advanced Excel Visualization Techniques
• Excel scatter plots
• A scatter plot is commonly used to
visualize the relationship between two
variables. It can be useful for quickly
surfacing potential correlations between
data points. We’ll create a scatter plot to
compare the number of TVs and laptops
sold.
• To create a scatter plot in Excel:
• Select the data range A1:C13
• Click the "Insert" tab in the Excel ribbon
• Click on the scatter plot dropdown, and
under the “Scatter” category, choose
“Histogram”
• Click "Scatter or Bubble Chart" and
choose "Scatter with Smooth Lines and
Markers"
• Traditional charts might not tell the whole story when dealing with
complex data. That’s where 3D scatter plots come to the rescue! It’s like
seeing data in a 3D picture. This becomes useful in various fields, like
science, engineering, or business.
• Whether you are a student, teacher or scientist, this context must improve
your chart skills. So, let’s get started.
What Is a 3D Scatter Plot?
https://www.exceldemy.com/3d-scatter-plot-excel/
• A 3D scatter plot is a graph that shows data in 3D.
It’s like a regular scatter plot but with an extra
dimension. Instead of points on a flat surface. It
uses dots in 3D space. This type of plot helps us see
patterns more effectively.
• Step 1: Prepare a Dataset to Plot 3D Scatter
• The first and foremost task is to create a data model
to create a 3D scatter plot in Excel. To illustrate
that, consider B, C and D columns
titled Month, Sales, and Revenue.
• Step 2: Insert a Scatter Chart
• Secondly, select range B4:D16 >> go to
the Insert tab >> expand Insert Scatter.
• Step 3: Adjust Scatter Chart Settings
• To begin, right-click on the chart area >>
choose Select Data from the context menu.
• Step 4: Format Data Series in Scatter Chart
• Now, click on a Data Series >> press
the Ctrl+1 keys.
• Step 5: Save and Display 3D Scatter Plot
• Lastly, place the 3D scatter chart on the right side
of the dataset >> Save the workbook.
• Working with multiple sheets, hyper linking
• https://www.exceldemy.com/learn-excel/linking/hyperlink/another-sh
eet/
Perhaps one of Excel’s most important and complex activities while
working on big projects is adding hyperlinks. We have to add hyperlinks.
We have to add one or more hyperlinks to worksheets of the same workbook
or different workbooks in a worksheet in Excel.
This article will demonstrate how to add hyperlinks to another sheet by
using the HYPERLINK function and the Context Menu. Here we’ve got a
worksheet called “Sheet1” with the names of some students and their marks
in the examination of a school called Sunflower Kindergarten. Our objective
today is to add hyperlinks to this sheet in another worksheet of the same
workbook or a different workbook.
• 1. Inserting HYPERLINK Function to Add Hyperlink
to Another Sheet in Excel
• We can add hyperlinks through the HYPERLINK function in
Excel. This is the simplest way, in fact. First, we shall add
hyperlinks to a worksheet of the same workbook, and then to a
different workbook.
1.1 Adding Hyperlink to Different Worksheets in
Same Workbook
We have opened a worksheet called “Sheet2” in the same workbook
and created an empty table there to insert the hyperlinks for the marks.
Steps:
•Firstly, to add a hyperlink in the sheet, select a cell and enter
the HYPERLINK function.
The Syntax of the HYPERLINK Function is:
= HYPERLINK(link_location,friendly_name)
•Finally, you will get the same results for the different
worksheets.
Using Context Menu to Add
.
2
•2. ROUNDUP
•The ROUNDUP function is the second of the ROUND
functions. It is very similar to the standard round function.
ROUNDUP’s syntax looks just like ROUND’s:
•=ROUNDUP(number, number_digits)
•Functionally, the ROUNDUP function works almost exactly
like ROUND as well. The major difference between the two is
that where ROUND can round the number in argument one up
or down, ROUNDUP only rounds up.
•Only rounding up means that regardless of the value in the
final decimal place of the number being rounded, as long as it
isn’t 0, it will be rounded up.
• Even though the final decimal place in the number above is
2, the results will still round up to 0.008. The only way that
the number won’t round up is if all the trailing digits after
the decimal place are rounded to 0. Using 0.0070 will still
round to 0.007 in the above example.
• In the above spreadsheet, the differences between ROUND
and ROUNDUP can be clearly seen when comparing
columns B and C.
•3. ROUNDDOWN
•Excel’s ROUNDDOWN function is quite similar to
the first two rounding functions. The
ROUNDDOWN function uses the same syntax as
both ROUND and ROUNDUP:
•=ROUNDDOWN(number, number_digits)
•Much like the ROUNDUP function from above, the
key difference between ROUND and ROUNDDOWN
is that ROUNDDOWN will always round its output
down. Rounding down will occur regardless of the
value of the remaining digits.
•=ROUNDDOWN(0.0078, 3)
•The output of the corrected function will be 0.007,
despite the value of the next digit being an 8. The
results will always appear to truncate the current
number at the specified digit without consideration
of any trailing digits.
•The differences between all three rounding
functions are readily visible in the above example.
One important thing to note is visible in cell D2. If
the final digit is a 0, it will be hidden by default in
the results. The hidden final digit can be changed by
configuring Excel's custom formatting for the cells to
show a pre-specified number of digits.
ata Data
6 • Use the COUNTBLANK function, one of the
Statistical functions, to count the number of empty
cells in a range of cells.
27
Syntax
4 34 • COUNTBLANK(range)
• The COUNTBLANK function syntax has the
Formula Description Result following arguments:
• Range Required. The range from which you want
to count the blank cells.
=COUNTBLANK(A2:B4) Counts empty 2
cells in the • Remark
range above. • Cells with formulas that return "" (empty text) are
also counted. Cells with zero values are not
counted.
Unit V: Data Analysis Packages
● Introduction to Programming for Excel
● MS Excel Plugin
● Data Analysis Application using Correlation,
Regression, ANNOVA
● Data modelling: Using Solver
● Macros and Visual Basic for Applications (VBA)
scripting
Introduction to Programming for Excel:
Programming refers to writing a set of instructions that tell Excel
to perform one or more tasks. These instructions are written in the
Visual Basic for Applications (VBA) as this is the language
understandable to Excel. To write an instruction, one can either
write a code in VBA or record a macro in Excel. A macro is
recorded to automate repetitive tasks. When a macro is recorded,
VBA generates a code in the background.
For example, to submit an Excel report, a table needs to undergo
the same set of tasks each time. These tasks include applying a pre-
defined border, color, alignment, and font. To program in Excel, a
macro can be recorded for performing all these tasks.
Get an Office add-in for Excel/MS Excel Plugin
1. Click File> Get Add-ins. You can directly install an add-in on the page or click More
Add-ins to explore.
• Multiple Linear Regression: You can do this analysis when there are multiple
independent variables affecting the outcome of the dependent variable. The
equation for multiple linear regression may be as follows.
• Y = α0 + α1X1 + α2X2 +….+ αnXn + ϵ
• How to Perform Regression Analysis in Excel and Interpretation of
ANOVA
• ⦿ Part-1: How to Perform Regression Analysis in Excel
● Solver is a Microsoft Excel add-in program you can use for what-if
analysis. Use Solver to find an optimal (maximum or minimum)
value for a formula in one cell — called the objective cell — subject
to constraints, or limits, on the values of other formula cells on a
worksheet. Solver works with a group of cells, called decision
variables or simply variable cells that are used in computing the
formulas in the objective and constraint cells. Solver adjusts the
values in the decision variable cells to satisfy the limits on
constraint cells and produce the result you want for the objective
cell.
What is Excel Solver?
• Excel Solver belongs to a special set of commands often referred to as What-if Analysis Tools. It is primarily
purposed for simulation and optimization of various business and engineering models.
• The Excel Solver add-in is especially useful for solving linear programming problems, aka linear optimization
problems, and therefore is sometimes called a linear programming solver. Apart from that, it can handle smooth
nonlinear and non-smooth problems. Please see Excel Solver algorithms for more details.
• While Solver can't crack every possible problem, it is really helpful when dealing with all kinds of optimization
problems where you need to make the best decision. For example, it can help you maximize the return of
investment, choose the optimal budget for your advertising campaign, make the best work schedule for your
employees, minimize the delivery costs, and so on.
• How to add Solver to Excel
• The Solver add-in is included with all versions of Microsoft Excel beginning with 2003, but it is not enabled by
default.
• To add Solver to your Excel, perform the following steps:
1. In Excel 2010 - Excel 365, click File > Options.
In Excel 2007, click the Microsoft Office button, and then click Excel Options.
2. In the Excel Options dialog, click Add-Ins on the left sidebar, make sure Excel Add-ins is selected in
the Manage box at the bottom of the window, and click Go.
• In the Add-Ins dialog box, check the Solver Add-in box, and click OK
• To get Solver on Excel 2003, go to the Tools menu, and click Add-Ins. In the Add-
Ins available list, check the Solver Add-in box, and click OK.
• Note. If Excel displays a message that the Solver Add-in is not currently
installed on your computer, click Yes to install it.
• Where is Solver in Excel?
• In the modern versions of Excel, the Solver button appears on the Data tab, in
the Analysis group:
Where is Solver in Excel 2003?
• After the Solver Add-in is loaded to Excel 2003, its command is added to
the Tools menu:
• Now that you know where to find Solver in Excel, open a new worksheet and
let's get started!
• Note. The examples discussed in this tutorial use Solver in Excel 2013. If you
have another Excel version, the screenshots may not match your version
exactly, although the Solver functionality is basically the same.
• How to use Solver in Excel
• Before running the Excel Solver add-in, formulate the model you want to solve
in a worksheet. In this example, let's find a solution for the following simple
optimization problem.
• Problem. Supposing, you are the owner of a beauty salon and you are planning
on providing a new service to your clients. For this, you need to buy a new
equipment that costs $40,000, which should be paid by instalments within 12
months.
• Goal: Calculate the minimal cost per service that will let you pay for the new
equipment within the specified timeframe.
• For this task, I've created the following model:
And now, let's see how Excel Solver can find a solution for this
problem.
1. Run Excel Solver
On the Data tab, in the Analysis group, click the Solver button.
• Tips:
• If the Excel Solver has been processing a certain problem for too long,
you can interrupt the process by pressing the Esc key. Excel will
recalculate the worksheet with the last values found for
the Variable cells.
• To get more details about the solved problem, click a report type in
the Reports box, and then click OK. The report will be created on a new
worksheet:
• Now that you've got the basic idea of how to use Solver in Excel, let's
have a closer look at a couple more examples that might help you gain
more understanding.
Excel Solver examples
• Below you will find two more examples of using the Excel Solver addin. First,
we will find a solution for a well-known puzzle, and then solve a real-life
linear programming problem.
• Excel Solver example 1 (magic square)
• I believe everyone is familiar with "magic square" puzzles where you have to
put a set of numbers in a square so that all rows, columns and diagonals
add up to a certain number.
• For instance, do you know a solution for the 3x3 square containing numbers
from 1 to 9 where each row, column and diagonal adds up to 15?
• It's probably no big deal to solve this puzzle by trial and error, but I bet the
Solver will find the solution faster. Our part of the job is to properly define
the problem.
• To begin with, enter the numbers from 1 to 9 in a table consisting of 3 rows
and 3 columns. The Excel Solver does not actually need those numbers, but
they will help us visualize the problem. What the Excel Solver add-in really
needs are the SUM formulas that total each row, column and 2 diagonals:
• With all the formulas in place, run Solver and set up the following
parameters:
• Set Objective. In this example, we don't need to set any objective, so leave
this box empty.
• Variable Cells. We want to populate numbers in cells B2 to D4, so select the
range B2:D4.
• Constraints. The following conditions should be met:
• $B$2:$D$4 = AllDifferent - all of the Variable cells should contain different values.
• $B$2:$D$4 = integer - all of the Variable cells should be integers.
• $B$5:$D$5 = 15 - the sum of values in each column should equal 15.
• $E$2:$E$4 = 15 - the sum of values in each row should equal 15.
• $B$7:$B$8 = 15 - the sum of both diagonals should equal 15.
Finally, click the Solve button, and the solution is there!
https://www.wallstreetmojo.com/programming-in-excel/