Sei sulla pagina 1di 2

ADVANCE EXCEL

LECTURE # 1
11

12

13

Basic Text Functions (A1 is text reference)


1-1.1

=LEFT(A1,3)

To get characters from left side of text array.

1-1.2

=RIGHT(A1,3)

To get characters from right side of text array.

1-1.3

=MID(A1,1,3)

To get characters from middle of text array.

1-1.4

=LEN(A1)

To get text length.

1-1.5

=TRIM(A1)

To remove extra space from left & right side of text

1-1.6

=UPPER(A1)

To convert text in capital letter.

1-1.7

=LOWER(A1)

To convert text in small letter.

1-1.8

=PROPER(A1)

1-1.9

=TEXT(A1,"00000")

1-1.10

=CONCATENATE(A1," ",A2)

1st character of word will be capital (I-e, Pak Elektron


Ltd.)
To convert text in pre-define format (I-e, 50 into
00050)
To joint two different cells text in single cell

1-1.11

=A1&" "&A2

To joint two different cells text in single cell with &


sign

Adv. Text Function (A1 is text reference)


1-2.1

=FIND("Z",A1,1)

1-2.2

=SEARCH("a",A1,1)

1-2.3

=REPLACE(A1,8,1,"+")

1-2.4

=SUBSTITUTE(A1,"-","+",2)

1-2.5

Data Menu + Remove


Duplicates

To find required text position within a cell (Case


Sensitive).
To search required text position within a cell (Not
Case Sensitive).
To replace text with another text base on text position
To replace text with another text base on text
searched & position
To remove duplicate text in single column.

IF, Nested IF & Compound IF Functions (A1, A2 & A3 is text reference)


1-3.1

Simple IF

Value return, base on the condition true or false

=IF(A1>2,"Bonus","No Bonus")

1-3.2

Nested IF
=IF(A1>=3,3000,IF(A2<3,2000,""))

1-3.3

Compound IF
=IF(OR(A1="FullTime",AND(A2>=10,A3="Contract")),1
000,0)

1-3.4
1-3.5

And Function
=IF(AND(A1>=10,A2="Full
Time",A3>=3),1000,0)

OR Function

=IF(OR(A1="HalfTime",A2="Contract"),1000,0)

1-3.6

Not Function

Value return, base on two or more conditions true or


false
Value return, base on two or more conditions true or
false with following functions AND, OR, NOT, <>
Value return, if two or more conditions true.
Value return, if any one condition true from given
conditions.
Value return, if conditions get false.

=IF(NOT(A1="Full Time"),1000,0)

1-3.7

<> Function
=IF(A1<>"Full Time",1000,0)

If condition use with Not Equal operators.

Prepared By: Muhammad Usman Sultan (0300-8466395)


1/10

Potrebbero piacerti anche