You are on page 1of 16

USING FORMULAS IN EXCEL

Idris KAHRAMAN
Using Formulas

real value (gerçek değer)

apparent value (görünen değer)


Calculations

• When press enter • Mathematical


after entering formula presedences are
in A1 cell, it will write important.
the result in A1 cell.

Note: The calculation process must be started with a “=” or “+” sign.
Calculation Example

1. Click cell D3
2. Print “=C3-B3
3. Press enter
4. Click the bottom right corner of D3 and pull down to D8
Average in Excel

Formula Description Result


=AVERAGE(A2:A6) Average of the numbers in cells A2 through A6. 14
=AVERAGE(A2:A6,8) Average of the numbers in cells A2 through A6 and the 13
number 8.
=AVERAGE(A2:C6) Average of the numbers in cells A2 through C2. 12

=AVERAGE(A1,A2,A4) Average of the numbers in cell A1, A2 and A4 17


Countif
• COUNTIF is a function to count cells that meet a
single criteria. COUNTIF can be used to count cells
with dates, numbers, and text that match specific
criteria. The COUNTIF function supports logical
operators (>,<,<>,=) and wildcards (*,?) for partial
matching.

Here, 3 students are observed for grades greater than 75 and equal
between the average grades in c3: c10 range.
Countif
Countifs

= COUNTIFS ( D2:D8, ">=50", D2:D8, "<=100" ) // >=50 and <=100


= COUNTIFS ( D2:D8, ">=50", E2:E8, “Num" ) // >=50 and Num
References in Excel

=B6*B2
=B7*B3
=B8*B4
=B9*B5
=B10*B6
Tracing

Tracing precedents Tracing dependents


- C6 cell is presedented by B2 and B6 - B2 cell affects C6,C7,C8,C9,C10
If and Nested If

Comparison operator Meaning Example


= equal to A1=D1
> greater than A1>D1
>= greater than or equal to A1>=D1
< less than A1<D1
<= less than or equal to A1<=D1
<> not equal to A1<>D1
And - Or
If and Nested If
NESTED IF AND COUNTIFS

=COUNTIFS(D2:D8,">=50", D2:D8, "<=100")

=IF(D5<50,"FAIL", IF(D5<70,"PASS", IF(D5<85,"TEŞEKKÜR CERTIFICATE",


IF(D5<=100, "TAKDİR CERTIFICATE", "INVALID GRADE"))))
IF and AND, OR Usage

=IF(AND(A7="table", OR(B7="green", B7="blue")), 0.5*C7, 0.9*C7)


NESTED IF WITH AND, OR

=IF(B2<60, "F", IF(AND(B2>=60, B2<75), "C", IF(AND(B2>=75, B2<90),


"B", IF(AND(B2>=90, B2<=100), "A",IF(OR(B2<0, B2>100),"INVALID")))))

You might also like