Excel Notes
Excel Notes
MS Excel is a spreadsheet program that is created by Microsoft, for platforms like Windows, macOS, Android, iOS, and
iPadOS. It is used for Data Organization, Formatting, Calculation, Data Analysis, and other tasks.
• A spreadsheet is a software tool used for organizing data into rows and columns, allowing users to perform
calculations, create charts, and analyze information efficiently.
•Column: A column is a vertical line of cells identified by letters (A, B, C, etc.) at the top of the spreadsheet.
•Each column runs vertically down the worksheet and contains cells labeled by their column letter and row
•number (e.g., A1, B1, C1...).
•A relative reference changes when the formula is copied. •An absolute reference remains fixed.
•It adjusts with the movement of Rows and Columns. •It does not adjust with the movement of Rows and Columns
•Useful for applying same formula across multiple cells. •Useful for referencing a specific cell that should not change.
•If the original formula in A1 is “=B1+C1" and is copied to A2, it gets adjusted to •If the original formula in A1 is “=$B$1+$C$1" and copied to A2, it remains as
“=B2+C2" “=$B$1+$C$1".
How do you use the IFERROR function?
It returns a custom result if a formula generates an error; otherwise, it returns the result of the
formula.
29. What is the difference between a line chart and a scatter plot?
•A line chart connects data points with lines
•A scatter plot displays individual data points.
30. How do you use the SUMIF and SUMIFS functions?
SUMIF adds values based on a single criterion. SUMIFS does the same with multiple criteria.
31. What is the purpose of the TRIM function?
Removes extra spaces from text, leaving only single spaces between words.
•Charts: Insert > Chart, select chart type (Bar, Line, Pie, etc.).
•Data Validation: Data > Data Validation, set criteria for data entry.
Advanced Excel Features
•Macros: Automate repetitive tasks using Developer > Record Macro.
•Protecting Workbooks and Worksheets: Review > Protect Sheet/Workbook.
•Collaboration: Share and co-author workbooks via OneDrive or SharePoint.
•Goal Seek and Solver: Data > What-If Analysis > Goal Seek/Solver for finding optimal solutions.
•Shortcuts:
•Ctrl+Z: Undo
•Ctrl+Y: Redo
•Ctrl+Arrow Keys: Navigate quickly
•Ctrl+Shift+L: Apply/remove filter
•Ctrl+T: Create a table
Mathematical and Trigonometric Functions
•ABS: = ABS(number) - Returns the absolute value of a number.
•ACOS: = ACOS(number) - Returns the arccosine of a number.
•ACOSH: = ACOSH(number) - Returns the inverse hyperbolic cosine of a number.
•ASIN: = ASIN(number) - Returns the arcsine of a number.
•ASINH: = ASINH(number) - Returns the inverse hyperbolic sine of a number.
•ATAN: = ATAN(number) - Returns the arctangent of a number.
•ATAN2: = ATAN2(x_num, y_num) - Returns the arctangent from x- and y-coordinates.
•ATANH: = ATANH(number) - Returns the inverse hyperbolic tangent of a number.
•CEILING: = CEILING(number, significance) - Rounds a number up to the nearest multiple of significance.
•COMBIN: = COMBIN(number, number_chosen) - Returns the number of combinations.
•COS: = COS(number) - Returns the cosine of a number.
•COSH: = COSH(number) - Returns the hyperbolic cosine of a number.
•DEGREES: = DEGREES(angle) - Converts radians to degrees.
•EVEN: = EVEN(number) - Rounds a number up to the nearest even integer.
•EXP: = EXP(number) - Returns e raised to the power of a given number.
•FACT: = FACT(number) - Returns the factorial of a number.
•FLOOR: = FLOOR(number, significance) - Rounds a number down to the nearest multiple of significance.
•GCD: = GCD(number1, number2, ...) - Returns the greatest common divisor.
•INT: = INT(number) - Rounds a number down to the nearest integer.
•LCM: = LCM(number1, number2, ...) - Returns the least common multiple.
•LN: = LN(number) - Returns the natural logarithm of a number.
•LOG: = LOG(number, [base]) - Returns the logarithm of a number to a specified base.
•LOG10: = LOG10(number) - Returns the base-10 logarithm of a number.
•MROUND: = MROUND(number, multiple) - Returns a number rounded to the desired multiple.
•ODD: = ODD(number) - Rounds a number up to the nearest odd integer.
•PI: = PI() - Returns the value of π.
•POWER: = POWER(number, power) - Returns a number raised to a power.
•PRODUCT: = PRODUCT(number1, [number2], ...) - Multiplies all the numbers given as arguments.
•QUOTIENT: = QUOTIENT(numerator, denominator) - Returns the integer portion of a division.
•RADIANS: = RADIANS(angle) - Converts degrees to radians.
•RAND: = RAND() - Returns a random number between 0 and 1.
•RANDBETWEEN: =RANDBETWEEN(bottom, top) - Returns a random number between the specified values.
•ROUND: = ROUND(number, num_digits) - Rounds a number to a specified number of digits.
•ROUNDDOWN: =ROUNDDOWN(number, num_digits) - Rounds a number down towards zero.
•ROUNDUP: = ROUNDUP(number, num_digits) - Rounds a number up, away from zero.
•SIGN: = SIGN(number) - Returns the sign of a number.
•SIN: = SIN(number) - Returns the sine of a number.
•SINH: = SINH(number) - Returns the hyperbolic sine of a number.
•SQRT: = SQRT(number) - Returns the square root of a number.
•SQRTPI: = SQRTPI(number) - Returns the square root of (number * π).
•SUM: = SUM(number1, [number2], ...) - Adds all the numbers given as arguments.
•SUMIF: = SUMIF(range, criteria, [sum_range]) - Adds the cells specified by a given condition.
•SUMPRODUCT: =SUMPRODUCT(array1, [array2], ...) - Returns the sum of the products of
• corresponding array components.
•TAN: = TAN(number) - Returns the tangent of a number.
•TANH: = TANH(number) - Returns the hyperbolic tangent of a number.
•TRUNC: = TRUNC(number, [num_digits]) - Truncates a number to an integer by
•removing the fractional part.
Statistical Functions
•AVERAGE: = AVERAGE(number1, [number2], ...) - Returns the average of its arguments.
•AVERAGEIF: = AVERAGEIF(range, criteria, [average_range]) - Returns the average of cells that
meet a specified condition.
•AVERAGEIFS: = AVERAGEIFS(average_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...) –
Returns the average of all cells that meet multiple criteria.
•COUNT: = COUNT(value1, [value2], ...) - Counts the number of cells that contain numbers.
•COUNTA: = COUNTA(value1, [value2], ...) - Counts the number of non-empty cells.
•COUNTBLANK: = COUNTBLANK(range) - Counts the number of empty cells.
•COUNTIF: = COUNTIF(range, criteria) - Counts the number of cells that meet a condition.
•COUNTIFS: = COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2], ...) –
Counts the number of cells that meet multiple criteria.
•LARGE: = LARGE(array, k) - Returns the k-th largest value in a data set.
•MAX: = MAX(number1, [number2], ...) - Returns the largest value in a set of values.
•MEDIAN: = MEDIAN(number1, [number2], ...) - Returns the median of the numbers.
•MIN: = MIN(number1, [number2], ...) - Returns the smallest value in a set of values.
•MODE: = MODE(number1, [number2], ...) - Returns the most frequently occurring value in a data set.
•PERCENTILE: = PERCENTILE(array, k) - Returns the k-th percentile of values in a range.
•PERMUT: = PERMUT(number, number_chosen) - Returns the number of permutations.
•QUARTILE: = QUARTILE(array, quart) - Returns the quartile of a data set.
•RANK: = RANK(number, ref, [order]) - Returns the rank of a number in a list of numbers.
•SMALL: = SMALL(array, k) - Returns the k-th smallest value in a data set.
•STDEV: = STDEV(number1, [number2], ...) - Estimates standard deviation based on a sample.
•VAR: = VAR(number1, [number2], ...) - Estimates variance based on a sample.
3. Text Functions
•CHAR: = CHAR(number) - Returns the character specified by a number.
•CLEAN: = CLEAN(text) - Removes all non-printable characters from text.
•CODE: = CODE(text) - Returns a numeric code for the first character in a text string.
•CONCATENATE: =CONCATENATE(text1, [text2], ...) - Joins several text strings into one text string.
•EXACT: = EXACT(text1, text2) - Checks if two text strings are exactly the same.
•FIND: = FIND(find_text, within_text, [start_num]) - Finds one text value within another.
•LEFT: = LEFT(text, [num_chars]) - Returns the left part of a text string.
•LEN: = LEN(text) - Returns the number of characters in a text string.
•LOWER: = LOWER(text) - Converts text to lowercase.
•MID: = MID(text, start_num, num_chars) - Returns a specific number of characters from a
text string starting at
the position you specify.
•PROPER: = PROPER(text) - Capitalizes the first letter in each word of a text value.
•REPLACE: = REPLACE(old_text, start_num, num_chars, new_text) - Replaces part of a text string with
Date and Time Functions
•DATE: = DATE(year, month, day)
•DATEDIF: = DATEDIF(start_date, end_date, unit)
•DATEVALUE: = DATEVALUE(date_text)
•DAY: = DAY(serial_number)
•DAYS: = DAYS(end_date, start_date)
•DAYS360: = DAYS360(start_date, end_date, [method])
•EDATE: = EDATE(start_date, months)
•EOMONTH: = EOMONTH(start_date, months)
•HOUR: = HOUR(serial_number)
•ISOWEEKNUM: = ISOWEEKNUM(date)
•MINUTE: = MINUTE(serial_number)
•MONTH: = MONTH(serial_number)
•NETWORKDAYS: = NETWORKDAYS(start_date, end_date, [holidays])
•NOW: = NOW()
•SECOND: = SECOND(serial_number)
•TIME: = TIME(hour, minute, second)
•TIMEVALUE: = TIMEVALUE(time_text)
•TODAY: = TODAY()
•WEEKDAY: = WEEKDAY(serial_number, [return_type])
•WEEKNUM: = WEEKNUM(serial_number, [return_type])
•WORKDAY: = WORKDAY(start_date, days, [holidays])
•YEAR: = YEAR(serial_number)
•YEARFRAC: = YEARFRAC(start_date, end_date, [basis])
Financial Functions
•ACCRINT: = ACCRINT(issue, first_interest, settlement, rate, par, frequency, [basis])
•ACCRINTM: = ACCRINTM(issue, settlement, rate, par, [basis])
•AMORDEGRC: = AMORDEGRC(cost, date_purchased, first_period, salvage, period, rate, [basis])
•AMORLINC: = AMORLINC(cost, date_purchased, first_period, salvage, period, rate, [basis])
•COUPDAYBS: = COUPDAYBS(settlement, maturity, frequency, [basis])
•COUPDAYS: = COUPDAYS(settlement, maturity, frequency, [basis])
•COUPDAYSNC: =COUPDAYSNC(settlement, maturity, frequency, [basis])
•COUPNCD: = COUPNCD(settlement, maturity, frequency, [basis])
•COUPNUM: = COUPNUM(settlement, maturity, frequency, [basis])
•COUPPCD: = COUPPCD(settlement, maturity, frequency, [basis])
•CUMIPMT: = CUMIPMT(rate, nper, pv, start_period, end_period, type)
Basic Excel Interview Questions
1.What is Excel and how is it used?
1. Answer: Excel is a spreadsheet application developed by Microsoft. It is used for storing, organizing, and analyzing
data. It provides tools for calculations, graphing tools, pivot tables, and a macro programming language called VBA
(Visual Basic for Applications).
2.How do you start Excel?
1. Answer: You can start Excel by searching for "Excel" in the Start menu or applications list on your computer, or by
double-clicking an Excel file (.xlsx or .xls).
3.What is a cell in Excel?
1. Answer: A cell is the basic unit of a spreadsheet where you can enter data. Each cell is identified by a unique address,
determined by the column letter and row number (e.g., A1, B2).
4.What are rows and columns in Excel?
1. Answer: Rows run horizontally in an Excel worksheet and are identified by numbers (1, 2, 3, ...). Columns run vertically
and are identified by letters (A, B, C, ...).
5.How do you add a new worksheet to a workbook?
1. Answer: Click on the "+" icon at the bottom of the Excel window next to the existing sheet tabs or right-click on an
existing sheet tab and select "Insert."
6.What is a range in Excel?
1. Answer: A range is a group of two or more cells. It can be a single row, column, or a rectangular block of cells.
•How do you copy and paste data in Excel?
•Answer: Select the cell or range of cells you want to copy, press Ctrl+C to copy, select the destination cell,
• and press Ctrl+V to paste.
•What are some common data types you can enter in Excel?
•Answer: Common data types include numbers, text, dates, and times.
Formula Function
However, performing
Manually typing out a formula every time you calculations becomes more
need to perform a calculation, consumes comfortable and faster while
more time. working with functions.
Ex: = A1+A2+A3 Ex: = SUM(A1:A3)
What is the difference between count, counta, and
countblank?
1. COUNT
It counts the number of cells that contain numeric values only. Cells that have string values, special
characters, and blank cells will not be counted. Shown below is an example of the count function.
2. COUNTA
It counts the number of cells that contain any form of content. Cells that have string values, special
characters, and numeric values will be counted. However, a blank cell will not be counted. Shown below is
an example of the counta function.
3. COUNTBLANK
As the name suggests, it counts the number of blank cells only. Cells that have content will not be
taken into consideration. Shown below is an example of the countblank function.
1.How would you remove duplicates from a dataset in Excel?
•Answer: Select the data range, go to the Data tab, click on Remove Duplicates, and choose the columns you want to check for
• duplicates.
Intermediate Excel Questions
6.What is the difference between VLOOKUP and HLOOKUP?
•Answer: VLOOKUP searches for a value in the first column of a table and returns a value from a specified column, while HLOOKUP
• searches for a value in the first row and returns a value from a specified row.
7.How do you use the IF function in Excel?
•Answer: The IF function performs a logical test and returns one value if the test is true and another value if it is false.
•Example: =IF(A1 > 10, "Greater", "Lesser").
8.What is conditional formatting and how is it used?
•Answer: Conditional formatting changes the appearance of cells based on certain conditions. It is used to highlight
• important information, such as values above a threshold or duplicate values.
9.Explain the purpose and use of the INDEX and MATCH functions together.
•Answer: INDEX returns the value of a cell in a specified row and column within a range. MATCH returns the relative
• position of an item in a range. Together, they can be used to perform more flexible lookups than VLOOKUP or HLOOKUP.
•Example: =INDEX(array, MATCH(lookup_value, lookup_array, match_type)).
10.How do you use Excel’s data validation feature?
•Answer: Data validation is used to control the type of data or the values that users enter into a cell. It can be set up
• through the Data tab by selecting Data Validation and specifying the criteria for allowed data.
Advanced Excel Questions
11.What are array formulas in Excel?
•Answer: Array formulas perform multiple calculations on one or more sets of values and can return single
•or multiple results. They are entered by pressing Ctrl+Shift+Enter.
12.Explain the use of the OFFSET function.
•Answer: OFFSET returns a reference to a range that is a specified number of rows and columns from a cell or
• range of cells.
•Example: =OFFSET(reference, rows, cols, [height], [width]).
13.How do you use the INDIRECT function and what are its benefits?
•Answer: INDIRECT returns the reference specified by a text string. It is useful for creating dynamic ranges.
•Example: =INDIRECT("A" & B1) returns the reference in column A at the row number specified in B1.
14.What is Power Query and how is it used in Excel?
•Answer: Power Query is a data connection technology that enables users to discover, connect, combine,
• and refine data across a wide variety of sources. It is accessed through the Data tab under Get &
•Transform Data.
15.How can you use Excel to create a dynamic chart that updates automatically?
•Answer: Create a dynamic named range using formulas like OFFSET or INDEX with COUNT or
•COUNTA, and then use this named range as the data source for your chart.
Practical Excel Questions
16.Describe a situation where you used Excel to solve a complex problem.
•Answer: Provide a detailed example from your experience, explaining the problem, the Excel tools
•and functions you used, and the outcome.
17.How do you handle large datasets in Excel efficiently?
•Answer: Use filters, pivot tables, data validation, and Excel’s advanced features like Power Query and Power Pivot
•to manage and analyze large datasets.
18.Can you explain the process of linking data between multiple Excel workbooks?
•Answer: Data can be linked between workbooks by using external references. Type = in a cell, navigate to the other workbook,
• select the cell you want to link to, and press Enter.
19.How would you automate a repetitive task in Excel?
•Answer: Automate tasks using macros by recording a macro or writing VBA (Visual Basic for Applications) code.
•Access the Developer tab and use the Record Macro feature or the VBA editor.
advanced Excel
1. Advanced Formulas and Functions
Array Formulas
Array formulas allow you to perform multiple calculations on one or more items in an array.
They can return either a single result or multiple results.
Example:
•{=SUM(A1:A10*B1:B10)} calculates the sum of the product of corresponding elements in two arrays (A1
and B1).
INDEX and MATCH provide more flexibility than VLOOKUP and HLOOKUP.
•=INDEX(B1:B10, MATCH("Apple", A1:A10, 0)) returns the value from the range B1
that corresponds to the position of "Apple" in A1
.
XLOOKUP (available in newer Excel versions) combines the capabilities of both VLOOKUP and HLOOKUP.
•=XLOOKUP("Apple", A1:A10, B1:B10) searches for "Apple" in A1
and returns the corresponding value from B1
.
Logical Functions
IF statements allow you to make logical comparisons between a value and what you expect.
Example:
•=IF(A1>10, "Yes", "No") returns "Yes" if A1 is greater than 10, otherwise "No".
AND and OR can be combined with IF for more complex conditions.
•=IF(AND(A1>10, B1<5), "Yes", "No") returns "Yes" if both conditions are true.
Text Functions
TEXT functions manipulate text strings.
Example:
•=TEXT(TODAY(), "dd-mmm-yyyy") converts the current date to a string in the format "dd-mmm-yyyy".
Statistical Functions
SUMIFS, COUNTIFS, and AVERAGEIFS perform calculations based on multiple criteria.
Example:
Example:
4.Load the Data Analysis Toolpak (File > Options > Add-ins).
5.Use tools like Descriptive Statistics, Regression, Histogram.
What-If Analysis
Goal Seek finds the input needed to achieve a specific goal.
Example:
6.Set a formula in a cell.
7.Use Goal Seek (Data > What-If Analysis > Goal Seek) to find the input value that achieves the desired
result.
3. Data Visualization
Charts
Create and customize charts to visualize data.
Example:
1.Select your data range.
2.Insert a chart type from the Insert menu.
3.Customize the chart elements (titles, labels, colors).
Conditional Formatting
Highlight data based on conditions.
Example:
4.Select the data range.
5.Use Conditional Formatting from the Home menu to apply rules (greater than, less than, etc.).
Sparklines
Sparklines are small charts within a single cell to show trends.
Example:
6.Select a cell.
7.Insert Sparklines from the Insert menu and choose the data range.
4. Data Management
Data Validation
Set up rules for data entry.
Example:
1.Select the cells.
2.Use Data Validation from the Data menu to set criteria (e.g., whole number between 1 and 100).
Sorting and Filtering
Organize and find data easily.
Example:
3.Select the data range.
4.Use Sort & Filter from the Data menu to sort by columns or filter specific values.
6. Collaboration and Protection
Sharing Workbooks
Collaborate in real-time.
Example:
1.Save the workbook to OneDrive.
2.Use the Share option to invite collaborators.
Scores
55 Steps to Detect Outliers
56
57 1.Visual Inspection with a Box Plot:
58 1. Step 1: Select the data range (A1).
59 2. Step 2: Go to the Insert tab.
60 3. Step 3: Choose Insert Statistic Chart and then select
90 Box and Whisker.
61 The box plot will show the distribution of the scores and
62 highlight any outliers as points outside the "whiskers".
63
64
2.Using Formulas:
Formula Shortcuts
•Alt + =: Insert the SUM function Miscellaneous Shortcuts
•Ctrl + ` (grave accent): Show or hide formulas •F9: Calculate all worksheets
•F4: Repeat the last action or toggle absolute/relative •Shift + F9: Calculate the active worksheet
references in a formula •Ctrl + F9: Minimize the workbook window
•Ctrl + Shift + Enter: Enter an array formula •Ctrl + F10: Maximize or restore the workbook window
•Ctrl + Shift + L: Apply or remove filter •Alt + F8: Open the Macro dialog box
•Ctrl + Shift + U: Expand or collapse the formula bar
Why Outliers are Important
1.Spotting Unusual Data:
1. Outliers are data points that are significantly different from the majority. They can indicate errors,
unexpected events, or unique circumstances within the data.
2.Understanding Variability:
1. By identifying outliers, we can better understand the range and variability of the data. This helps in making
informed decisions and drawing accurate conclusions.
3.Quality Assurance:
1. Outliers highlight potential issues with data quality or measurement errors. Finding and addressing outliers
improves the overall reliability of the data.
4.Enhancing Insights:
1. Outliers sometimes reveal insights that are not apparent from the main dataset. They can lead to new
discoveries, trends, or patterns that may impact business strategies or scientific research.
5.Improving Models:
1. In statistical analysis and machine learning, handling outliers properly ensures that models are more
accurate and reliable. Models trained on clean data without outliers perform better in predicting future
outcomes.
Data cleaning
Data cleaning in Excel involves preparing and transforming data to make it suitable for analysis or presentation.
Here’s a step-by-step guide on how to perform basic data cleaning tasks in Excel:
1. Removing Duplicates:
Select Data: Click on a cell within your dataset.
Remove Duplicates: Go to Data tab > Remove Duplicates.
Choose Columns: Select columns where you want to remove duplicates and click OK.
2. Trimming Whitespace:
Using TRIM function: If your data has leading, trailing, or excess spaces, use TRIM function: =TRIM(A1) to remove
them.
3. Handling Errors:
Identifying Errors: Use IFERROR function to replace errors with a specific value: =IFERROR(formula, "Error
Message").
Finding Errors: Use ISERROR or ISERR functions to identify cells with errors.
5. Splitting Data into Columns:
Text to Columns: Use Data tab > Text to Columns to split data based on delimiters (comma, space, etc.).
7. Handling Dates:
Formatting Dates: Use Format Cells (Ctrl + 1) to change date formats.
Extracting Components: Use YEAR, MONTH, DAY functions to extract year, month, or day from a date.