Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

1.

CONDITIONAL FORMATTING, IF, COUNTIF, SUMIF, AVERAGE,


CONCAT using excel formulas
1) Conditional formatting rule:
Conditional formatting is used to change the appearance of cells in a range based on your
specified conditions.
1. To highlight cell which has profit more than 50.
Select profit column from the dataset.
Go to home→conditional formatting→highlight cell rules→greater than→enter value 100→select the
colour of the cell as green.

2. To highlight cell which has region south.


Select region column from the dataset.
Go to home→conditional formatting→highlight cell rules→text that contain→south→custom
formatting(as your choice)

3. To highlight top 10 sales cell.


Select sales column from the dataset.
Go to home→Conditional formatting→Top/Bottom Rules→Top 10 items→fill with specified color
4. To apply data bar to the selected cell.
Select the quantity column from the data set
Go to home→conditional formatting→data bar→select the different data bar style.

5. To apply icon set to the selected cell.


Select profit column from the dataset
Go to home→conditional formatting→icon set→select the format of icon to apply.

IF Function

The IF function is a premade function in Excel, which returns values based on true or false condition.

It is typed =IF and has 3 parts:

=IF(logical test, [value_if_true], [value_if_false])


1. Select the region East from given data set based on if condition.
Insert a new column if condition→place the cursor on first cell of new column→apply formula
“=if(region column==”East”, ”Selected”, ”Not Selected”)”→enter→drag formula to entire data
set.
COUNTIF Function

The COUNTIF function is a predefined function in Excel, which counts cells as specified.
It is typed =COUNTIF

How to use the =COUNTIF function:

1. To count number of different regions.

Select region name→enter the formula→”=countif(‘select column range’,”=”East”→Enter


Select region name→enter the formula→”=countif(‘select column range’,”=”South”→Enter
Select region name→enter the formula→”=countif(‘select column range’,”=”West”→Enter
Select region name→enter the formula→”=countif(‘select column range’,”=”north”→Enter
Select region name→enter the formula→”=countif(‘select column range’,”=”central”→Enter

SUMIF Function

The SUMIF function is a predefined function in Excel, which calculates the sum of values in a range
based on condition.
It is typed =SUMIF:
Syntax:
=SUMIF (range, criteria, [sum range])

The condition is referred to as criteria, which can check things like: >, <, >=, <=,==, !=

1. Calculate total sales made by each region using sumif function.

1. Select an empty cell→type Region name→next cell→enter the formula “=sumif(“Select


the Region”,”=East”, ”Select Sales Column”)→enter
2. Select an empty cell→type Region name→next cell→enter the formula “=sumif(“Select
the Region”,”=West”, ”Select Sales Column”)→enter
3. Select an empty cell→type Region name→next cell→enter the formula “=sumif(“Select
the Region”,”= South”, ”Select Sales Column”)→enter
4. Select an empty cell→type Region name→next cell→enter the formula “=sumif(“Select
the Region”,”=North”, ”Select Sales Column”)→enter
5. Select an empty cell→type Region name→next cell→enter the formula “=sumif(“Select
the Region”,”=Central”, ”Select Sales Column”)→enter
AVERAGE Function

The AVERAGE function is a premade function in Excel, which calculates the average (arithmetic mean).

It is typed =AVERAGE

It adds the range and divides it by the number of observations.

1. Find average sales made by each region.


Go to last column→select empty cell→use formula “=countif(Range,”=Region”)” →next
cell→use formula “=sumif(range,”=Region”,Select sales column”)→ divide sumif result with
count if result.
2. To find average of total sales
Go to last cell of sales column→use formula “=avegare(select sales column, 2)” →Enter

CONCAT Function

To concatenate is to link something together.


CONCAT is a function in Excel and is short for concatenate.
The CONCAT function is used to link multiple cells without adding any delimiters between the
combined cell values.
It is typed =CONCAT(cell1, delimiter, cell2)

Example of delimiters
comma , semicolon ; quotes " or ' braces {} pipes | slashes / \
1. Concatenate city with Sales made by city.

Create a new column→Concat→use formula


“=concat(Column1,Delimeter,Column2)→enter→apply formula to all rows.

You might also like