0% found this document useful (0 votes)
17 views9 pages

Advanced Excel Techniques and Functions

Uploaded by

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

Advanced Excel Techniques and Functions

Uploaded by

Poornima Vr
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Advanced Excel

Short keys

 New sheet- Shift+fn+f11


 Alt+e L- remove sheet
 1-6- value formats- ctrl+shift

1- comma format

4- currency format

 Find something on the sheet- ctrl+F

Define a name- purposes-

1. you can refer it from anywhere

2. you can use it calculations

GoTo - ctrl+G - to go to a particular sheet and then comeback to the sheet you were previously on

Normal plus- fill handle tool

Flashfill-

1. it can combine 2 columns data in 3rd column using the pattern that you define

2. it can extract data from a column based on the pattern that you define

 flash fill- ctrl- e


 switch tabs- press alt and the first letter of the tab

Dynamic range functions-

 Max- large(range,no) no-1/2/3..


 Min- small(range,no)
 Sequence- sequence(noofcells) - used to generate sl. no.
o sequence(noofrows,noofcolumns,startvalue,stepvalue)
 To hide a range of cells- right click- format cells- custom- ;;;
o to get back just chage it back to general

Date function-
Date(year,month,day)

 Current date- ctrl+;


 to add 2 months and 18 days to a date

=date(year(current date),months(current date+2),day(current date+18))

 to find the difference of 2 days:

Datedif(startdate,enddate,"d") d- for days, m- for months, y- for years

Networkdays(startdate,enddate,holidays) - working days

[Link](startdate,endate,weekend,holidays)

=text(cell,"mmm")

=today()

=now()

Value formatting

[color][condition]#

[green][>15000]

 select- right click- format cells- custom- remove general- type condition- [color][condition]#;
[color][condition]
o example- [green][>15000]#;[blue][<10000]#

Conditional formatting-

 expired date- any date less than today's date- =h2<today() - fill orange
 select date range- conditional formatting- new rule- use a formula-
 upcoming expiry dates

and(condtn1,condtn2)

=and(h2-today()>=0,h2-today()<=30)

spark lines- incell chart

 can be created for a single row/column data values


 line chart/column chart/winloss
o insert- sparklines- select the complete row- ok- if required enable markers
o can change it to columns- from sparklines- instead of line select columns and enable
high point and low point

Maps
 type country names- covert to geography data type- small icon- select required data
 type stock names- conver to stocks in data- data types- select what data is required

same for currencies

 Map charts- country map/world map

pictograph

 require .ico file extension installed


 or should have image in system
o make a barchart
o click on one bar- format data series- fill- picture- insert- icons- stack

UNIQUE

=unique(column)

TEXTSPLIT(CELL,"")- add delimitor btw ""

 take(arrays,rows,columns) example- =take(table,5,4)


 drop(arrays,rows,columns) example- =drop(table,5,4) can put it as -5 to drop the bottom last
5

what if analysis-

 a calculation is required
 a varying value is required
 go to data- forecast- whatif analysis- goal seek- first one- calculation; second- goal, third-
varying value
 go to data-forecast-whatif analysis- scenario manager- type a name for the scenario
 go to data- forecast- whatif analysis- data table- row input nothing- column input the qty

before that select table

 go to data- forecast- what if analysis- data table- row n column as rate & qty. before that
select entire table
 if the calculation is multiple- then we have to go for the what if analysis data table
method only and supports only two variable method

SOLVER

 objective
 variables
 constraints

service centre- cost of equipment- 4L

objective- 12 months

customers/month

service cost/service

DROPDOWN LIST
 DATA-data tools- DATA VALIDATION- list- source- ok
 custom list-file-

TREND

=trend(known values, known days,unknown day)

forecast sheet- if u have a date column in data- eg. historical data

=forecast(unknown period,known period,known values)

Linear eq method- a+bx=c

rank

=rank(range,table,0/1)

make sure to press f4 to range before dragging

 ctrl+T to convert to a table


 data table- analysis-normal range- ctrl+T
 quick analysis of data- ctrl+q / alt+q

INSERT menu- recommended charts/ pivot table

Day2:

How to clear cache memory in excel

File-options-save-last tab- cache memory- delete cache memory

DATA ANALYSIS

 Raw data- in different forms- excel/pdf/doc/csv/text/cloud/web- sources of data


 Connecting to different data sources
 Data transformation- power query editor
 Data- Get data- from file- from pdf
 Data-get data- from other sources- from web

 Data- Query & connections- double click- power query opens

Power Query Editor

 Steps recorded in the applied steps window


 No of columns required for your data analysis- choose columns/ remove columns
 For each column- along with the column heading- data type/sort/filtering/formats
 Apply and close/ load and close
 Split columns
 Top row as headers
 Transform menu- transpose
 Replace values- right clicking on the column data
 To refresh data- right click in connections table- refresh- this will refresh and add any new
data from the original source

Analysis tools
 Sort- Single column sort/multi-level sort/sort function
 Filter- normal/ advanced/ filter function
 Important analysis functions
 Table/Pivot table
 Dashboard

=sort(range,columnno,1/-1) – 1- ascending -1- descending

Example- =SORT(TableSalary,3,1)

Filter

Advanced filter

 List range (base data)


 Criteria range

Data- Advanced filter in sort & filter- list range- table- criteria range- side table- copy to select a
cell- select copy to another location- ok

Filter function-

=filter(array,(column with values)(criteria)(value cell))

Example- =FILTER(A4:B15,B4:B15>E4)

Analysis function

 IF- IFS- countif- sumifs- maxifs/minifs/averageifs/lookup- vlookup/xlookup

=IF(CONDITION,what to do if satisfied, what to do if not satisfied)

Example- =IF(B4<100000,B4+5000,0)

=IF(AND(g2>30000,G2<70000,G2*1%,0)

 =IFS(condition1,truevalue,Condition2,truevalue,…..)
 Must not leave any range of value, otherwise error will come
o More than 80k-5%
o More than 60k-4%
o More than 30k-3%
o More than 20K-2%
 Formulas, insert function, ifs, logic, true value, ok
=Countifs(condtnrange1,cndn1,condtnrange2,cndn2,……….)

=sumifs(sumrange,condtn1,cndn1,condtn2,cndn2,……..)

=unique(selectrange)

=maxifs(RANGEOFVALUE,RANGEOFCRITERIA,CRITERIA)

=MINIFS(RANGEIFVALUE,RANGEOFCRITERIA,CRITERIA)

=MAXIFS(C2:C11,B2:B11,E1)

=MINIFS(C2:C11,B2:B11,E1)

=AVERAGEIFS(C2:C11,B2:B11,E1)

SWITCH= IFS

=switch(condition1,value1,condition2,value2,…)

=SWITCH(RIGHT(Z35,2),"UT","Utopia","TX","Texas","OH","Ohio")

LOOKUP

=lookup(what to look for,where to look for, what to pick)

Day 3

Analyse Data
An Interactive dashboard

 Data- Connected from different source- /data transformation- excel- data model
 Require 3 sheets-
o Data Sheet
o Calculation sheet
o Dashboard

Contents of a Dashboard

 Important results of my data- From calculations sheet


o Charts
o Tablets
o Slicers
o Timeline

Import data-Ensure its not in table format-sort- insert pivot table

VBA- Visual Basic for Applications

VBE- Visual Basic Editor

MACROS

Set of instructions saved in a unique name- to avoid repetitive tasks in excel


 Record a macro- 60-65% of users
 User Defined functions
 VBA Code- Forms

Create a menu system for Macros

Add the macro

Interactive chart

=IF($A$1=1,B4,"N/A()")

User defined functions

2 types- which gets input and returns a result/ no input but shows output

Where to create- vbeditor

Alt+f11+fn - to switch btw VB editorand excel

How to??

Function fnname()

End function

Function test()

Msg(“welcome to the world of functions”)

End function

=test()

After clicking alt+f11

VBA Project- right click insert- module

Write a function to multiply two numbers

Function multi(a,b)

Multi=a*b

End function

=multi(a,b,)
Any calculation in the function should be returned to the function

Write a function to calculate discount?

If(condition,truevalue,falsevalue)

If condition then

What to do

Else

What to do

End if

If Qty>=1000 then

Qty x Price x 0.1

Else

Discount = 0

End if

Example:

Function Discount(q, p)

If q >= 1000 Then

Discount = q * p * 0.1

Else

Discount = 0

End If

End Function

VBA forms- PARTSDATA

PARTID

LOCATION
DATE
QTY

FORM
LABELS
TEXTBOXES
COMMAND BUTTONS
PROPERTIES OF OBJECTS- NAME, SIZE, COLOR
Step1- Setup worksheet-add 4 columns

Partid, location, date, qty

Select it and convert it as a table

Rename the sheet and table with same name- partsdata

Save the file as macro enabled excel workbook

Label tool- Just to display a text

Textbox/Inputbox- Name Property

Command button- It will take you to the editor you can add a code to be executed

‘FIND FIRST EMPTY ROW’

DIM irow as long

Dim ws as worksheet

Set ws= worksheets(“partsdata”)

- To find the first empty row

Irow=
[Link](what:=”*”,searchorder:=xlrows,_searchdirection:=xlprevious,lookin:=xlvalue).row+1

- To copy the data from form to cells

With ws

- .cells(irow,1) = [Link]
- .cells(irow,2) = [Link]
- .cells(irow,3) = [Link]
- .cells(irow,4) = [Link]

End with

Common questions

Powered by AI

Power Query plays a pivotal role in data transformation for analysis in Excel by enabling users to connect to various data sources, transform data and clean it without altering the original source file. These transformations include sorting, filtering, modifying data types, and splitting or merging columns, all recorded as applied steps for repeatable and auditable processes. Power Query enhances data management efficiency by promoting consistency, minimizing manual data manipulation, and facilitating the integration of disparate data sources into a cohesive, analyzable format .

Trend functions in Excel, such as TREND and FORECAST, are used to predict future values by modeling linear trends based on known data. The LINEST function provides a more advanced method by returning statistical analysis of linear data through the least squares method to produce a best-fit linear equation. This allows users to generate a linear forecast and evaluate the strength of the predictive model. LINEST's versatility and depth enable it to be used for broader regression analysis, providing users with more precise control and insight into the significance of trends and data variances, essential for accurate forecasting .

Excel's advanced filtering functions, such as the FILTER function, allow users to dynamically extract specific subsets of data based on complex criteria. For instance, =FILTER(A4:B15,B4:B15>E4) can be used to pull data where values in column B exceed those in cell E4. These functions are especially useful when data needs to be segmented for deeper analysis or when constructing dashboards that give visibility into particular data segments. A practical use case is filtering sales data by region and time period, enabling focused insights and strategic business decision-making without permanently altering the dataset .

Scenario Manager is a What-If Analysis tool in Excel that allows users to define and compare different scenarios where specific cell values are changed. Each 'scenario' holds a set of values that Excel uses to replace existing data within a worksheet to show potential outcomes. Users can create multiple scenarios—each with different assumptions—and view the impact on the overall data model by navigating to Data > Forecast > What-If Analysis > Scenario Manager. This feature is essential for business planning as it facilitates the comparison of optimistic, pessimistic, and realistic projections .

The NETWORKDAYS function calculates the number of working days between two dates, automatically excluding weekends (Saturday and Sunday) and specified holidays. In contrast, NETWORKDAYS.INTL provides more flexibility by allowing the user to define which days are considered weekends through a weekend argument, enabling customization for different working schedules (e.g., Friday-Saturday weekends). Both functions help in calculating an accurate number of business days .

Flash Fill in Excel can combine data from two columns into a third column by recognizing a pattern provided by the user. For example, if there are first names and last names in separate columns, you can use Flash Fill by typing a few entries in the combined column to establish the pattern. Similarly, Flash Fill can extract parts of a text by recognizing what you want from an example pattern you provide, such as extracting initials from full names. It performs both combining and extraction tasks with the shortcut Ctrl+E .

Dynamic range functions like MAX and MIN are used to find the largest and smallest values within a specified range of a dataset. The MAX function can determine the highest values when a top-n result is required, using the formula LARGE(range,n), where 'n' specifies the nth largest value. Conversely, MIN can identify the smallest values using SMALL(range,n), facilitating prioritization of data based on extremes. These functions are crucial in scenarios requiring analysis of top performers or worst performances .

VBA macros in Excel are sets of programmed instructions that automate repetitive tasks, thereby saving time and reducing errors. They consist of recorded actions or written code that Excel can execute to replicate tasks without manual intervention. For example, a macro can be recorded to format a data range: bolding headers, applying color, and setting number formats. A simple macro example might multiply the contents of two specified cell ranges and display the result in another cell. The VBA code for such a task could be structured in a function like: Function Multi(a, b) Multi = a * b End Function. Executing this macro can automate calculations across entire datasets, enhancing productivity .

Conditional Formatting in Excel can highlight cells that meet specified criteria. To visually distinguish expiring items, a formula can be applied to a date column, such as =H2<TODAY(), setting the format to fill the cell with orange when the date in H2 is less than today's date. This visually alerts users to expiration dates, allowing them to quickly identify items that need immediate attention. By utilizing formulas in conditional formatting, users can dynamically manage data layout based on current conditions .

Defining names in Excel allows users to reference a range of cells easily from anywhere within the workbook by using meaningful descriptors instead of cell coordinates. This practice is beneficial as it aids in readability, reduces errors in formula inputs, and enhances overall workbook navigation. Specifically, in complex computations where certain values or ranges are frequently referenced, having defined names simplifies formula writing and maintenance by replacing ranges like 'A1:B10' with intuitive names like 'SalesData' or 'InterestRate' .

You might also like