Vous êtes sur la page 1sur 59

Name Job Salary Other Total Tariq:

wali manager 1000 200 1200 For coculating a cell such as addition,subtrac
khan teacher 4000 400 4400 functions are asfollow.=salary+other,
asad carpenter 5002 400 5402 =salaryother,=salary*other,=salary/other
karim director 400 10 410

Using Percentage
Name Job Salary Other Food
Tariq:
wali manager 1000 200 500
To use percenatege the formula is.=salary*50/
khan teacher 4000 400 2000 the fomula is changed. =salary*-50/100
asad carpenter 5002 400 2501
karim director 400 10 200

Finding Benefits

Items Purchased Sold Benefit


Tariq:
computer 10000 20000 10000
For finding the benefit of of an items we
Vedio 5000 10000 5000 have the below function. =Purchase+Sold-
Sold

Finding Benefits with Quantity


Items Purchased Sold Quantity Benefit Tariq:
computer 1 2 1 1
And what is we have the amount of items I me
Vedio 1000 1001 1 1 =Sold*Quantity-Purchased

Giving an specific discount to an Itmes


Item Price Quantity Discount Extended Price Total
computer 1000 2 10% 200
Tariq:
1800
Tariq:
For finding the
Anddiscount
for finding
of and
the item
exactthe
price
fomu
of
is. an item we need for a total and
=Price*Quantity*Dicount*100%
formula is.
=Price*Quantity-Extended Price

Giving Discount Using Conditions with If/And


Item Price Quantity
Tariq:
Discount Extended Price Total
Computer 60000 6 10% 36000
To 324000
use if/and be sure to know that and is a fun
the same like the others,if one of the condition
the formula is.
=IF(AND(Price>5000,Quantity>5),salary*Qu
Found") and to know the exact price in total w
Extended Price

Giving Discount Using Condition with If/Or


Item Price Quantity Tariq:
Discount Extended Price Total
Computer 60000 5 10% 30000
Using If/Or is
270000
a little different with function a
condition in or is true, so the result is positive
=IF(Or(Price>5000,Quantity>5),Price*Quant
Found")

Using IF with Percentage


Name job salary other Grade Bonus Tariq:
wali teacher 1000 200 A 500
To give bonus with percentage th
khan teacher 4000 400 B 1000 =if(Grade="A",salary*50/100,if(G
with parantheses according to the
Tariq:
To give bonus with percentage th
=if(Grade="A",salary*50/100,if(G
with parantheses according to the

Name English Dari Math Total Result


Tariq:
wali 100 100 100 300 He is passed 1st
To find out the result of students
karim 100 40 60 200 He is just failed =If(Total>280,"He is passed 1st",
2nd",IF(Total<=250,"He is just fa

changing the Dollar Currency to anothers


Dollar
Tariq:
Afg Rs Dollar Afg Rs
1
For changing
45
one 40
currency to another the formula
1
is. =dollar*Afg+F4
45 40
enter,
100 =Dollar*Rs+F4
4500 to
4000 make this absolute for every
1 cell and enter.
45 40
0 0

Finding ones Starting Date and Ending Date


name program S-date E-date Days Tariq:
Result
wali word 1/1/2003 2/2/2003
For finding the days between S-date and E-da
31 His time is finished
karim excel 1/1/2003 1/20/2003 DAYS360 Function as bellow.=DAYS360(S-da
19 Histimeisnotfinishedyet
and to figure out the result we use IF as follow
finished","His time is not finished yet"). The
each program you can have a 60 days or over
DAYS360 Function as bellow.=DAYS360(S-da
and to figure out the result we use IF as follow
finished","His time is not finished yet"). The
each program you can have a 60 days or over

Name Program S-date E-date Duration Days Result Tariq:


wali word 7/15/2003 8/15/2003 31 someone
30 His time is not finished yet starts a
karim excel 2/2/2002 3/5/2002 31 according
33 His time is not finished yet to the
date and Duratio
date+Duration s
use.=DAYS360(S
formula is.
=IF(E-Date>Toda
Date=Today(),"T
time is not finish

Finding Days of the Week


Name Hire Date Hire Year Hire MonthHire Day Week day Show Hire Day Tariq:
wali 8/14/2003 2003 8 14 5 Thursday
For finding the days o
=YEAR(Hiredate), Fi
find Weekday has ma
number from Sunday
=IF(weekday=1,"Sun
Weekday=4,"Wednes
eekday=7,"Saturday"
finding One's Age
Name Birthday Current D Your age is
Tariq:
wali
To find someone's age we must have the form above. And the
1/1/1984 3/16/2011 Your age is 27 years of Old
karim 2/2/1950 3/16/2011 Your age is 61used
yearsare as bellow.=CONCATENATE("Your age is"," ",RIG
of Old
Date-Birthday),2)," ","years of Old")

Using Financial Functions


DB Function
Items Cost Salvage Life Periods Months Result
Tariq:
computer 10000 1000 1 1 12 $9,000.00
It is used for deprecia
Ex:You bought an item
advance the you will p
I mean in one year at
Rs.Fomula is.
=DB(Cost,Salvage,Lif

DDB Function
Items Cost Salvage Llife Period Reuslt Tariq:
Total
computer 10000 1000 1
It is just
1 $9,000.00 $10,000.00
like the above function D
=ddb(Cost,Solvage,Lifel,Period)a
=salvage+Result

SLN Function
Items Cost Salvage Life Reuslt Tariq:
Total
computer 10000 1000 2 $4,500.00
SLN returns
$5,500.00
the straight-line depreciation of
The formual is =SLN(Cost,Salvage,Life) Ente
Tariq:
SLN returns the straight-line depreciation of
The formual is =SLN(Cost,Salvage,Life) Ente

PMT
name Rate N/Period Pv Total
wali 5% 2 1000 $537.80
Tariq:
Calculates the payment for a loan based on co
interest rate. The formula is. =PMT(rate,Npe

IPMT
Name Rate Per No N/Period Pv Total
wali 5% 1 2 1000 $50.00
Tariq:
5% 2 2 1000 $25.61
Returns the interest payment for
Total Interest $75.61 periodic, constant payments and
benefit of an interest and the fom

PPMT
name Rate Per No N/Period Pv Total
wali 5% 1 2 1000 $487.80 Tariq:
5% 2 2 1000 $512.20
Returns the payment on the princ
Present value $1,000.00 on periodic, constant payments a
exact money we paid plus every p
PPMT(Rate,Nper,Per,-pv) We use
or when we pay the money there

ISPMT
name Rate Per No N/Period Pv Total
wali 5% 1 2 1000 25
Tariq:
Calculates the interest paid durin
show only the specific period of a
theformulais.=ISPMT(Rate,Per,N

Rate
Name N/Period Pmt Pv Total
wali 2 $537.80 1000 5%
Tariq:
Returns the interest rate per period of an ann
payment. The formual is.=Rate(Nper,Pmt,-Pv

Nper
Name Rate Pmt Pv Total
wali 5% $537.80 1000 2 Tariq:
Returns the number of periods for an investm
Pv)

Pv
Name Rate N/Peroid Pmt Total
wali 5% 2 $537.80 $1,000.00 Tariq:
Returns the present value of an investment or
investment and the formual is =PV(Rate,Nper
Fv
Name Rate N/Period Pmt Pv Total
Wali 5% 12 $100.00 1000 $2,284.16
Tariq:
Returns the future value of an inv
and a constant interest rate. For E
special project occurring a year f
account that earns 5 percent annu
interest of 5%/12, or 0.5%). You p
month for the next 12 months. Ho
of 12 months? The formual is.
=FV(Rate/12,Nperiod,-Pmt,-Pv)

Date
name Date year month day
haroon 1/1/2003
Tariq:
2003 1 1
Returns the serial number that represents a particular date. Ex:We write the yea
month and day in separate cells and then make a complete date from them by
using date and the formula is.=Date(Year,month,day)

Datevalue
name join-date Datevalue
haroon 1/1/2003 37622 Tariq:
Returns the serial number of the date represented by date_text. Use D
to convert a date represented by text to a serial number the formual is
=DATEVALUE("1/1/3")
Using Day, Month and Year

name join-date Datevalue Day Month Year


haroon 1/1/2003 37622 1 1 2003
Tariq:
In this formul We want fo find th
from the datevalu's serial numbe
below.
=DAY(Datevalue or its serial num
=YEAR(Datevalue or its serial nu

Days360
name Start_Date End_Date Total Days
sameer 1/1/2002 1/1/2003 360 Tariq:
Returns the number of days between two dates based on a 36
30-day months), which is used in some accounting calculation
to help compute payments if your accounting system is based
months.The formula is.=DAYS360(Start-Date,End-Date,Tru

Tariq:
Using Timevalue, Hour,Minute and Second
In these functions first we use tim
name Time Timevalue Hour Minute Second
function.=TIMEVALUE("4:55:40
Mustafa 4:55:40 0.21 4 55 40
hour,minute and seond which are
=HOUR(Timevalue),=MINUTE(T
Tariq:
Using Today and Now
Today Returns the serial number of the current date and now
3/16/2011 ###
number of the current date and time.Examples as.=Today(),=

Edate
s-date 2 month before
1/1/2003 1-Mar-03
Tariq:
Returns the serial number that represents the date that
is the indicated number of months before or after a
specified date.Ex: =Edate(s-date,2)if it is only 2 it shows
the date before s-date and if it is -2 shows date after s-
date. Then from format select cell a style date.

Eomonth
date day
1/1/2003 28-Feb Tariq:
Returns the serial number for the last day of the month
that is the indicated number of months before or after
start_date. Ex:=EOMONTH(DATE,1)if 1 shows before or
if -1 shows after.

S-date E-date Holiday Networkdays


1/1/2002 1/1/2003 4/4/2002 261 Tariq:
Returns the number of whole working days between start_da
Working days exclude weekends and any dates identified in
holidays.Ex:=networkdays(s-date,e-date,holiday)

Weeknum
date weeknum
1/1/2003 Err:504 Tariq:
Returns a number that indicates where the week falls
numerically within a year.=WEEKNUM(DATE)equal 1.

Workday
s-date days holiday Workdays days
1/1/2003 3 2/2/2003 6-Jan-03 Tariq: 6
Returns a number that indicates where the week falls numer
year.=WORKDAY(S-DATE,DAYS,HOLIDAYS)and use the
the finals days.=day(workdays)equal 6
Returns a number that indicates where the week falls numer
year.=WORKDAY(S-DATE,DAYS,HOLIDAYS)and use the
the finals days.=day(workdays)equal 6

Math & Trig


Abs
$1,000.00 1000
Tariq:
Abs Returns the absolute value of a number. The absolute
value of a number is the number without its sign. Exp.
=ABS(2)=2, =ABS(-2)=3 , =ABS($10.000)=100

Ceiling
Items Price CEILING
computer 1000.5 1001 Tariq:
Returns number rounded up, away from zero, to the nearest multiple o
significance. For example, if you want to avoid using pennies in your p
your product is priced at $4.42, use the formula =CEILING(4.42,0.05)
prices up to the nearest. Ex:
=CEILING(2.5,1)=3, =CEILING(1.5,0.1)=1.5, =CEILING(1000.50,1)=

Countif
salary
1000
5000
4000
1000
2 Tariq:
Counts the number of cells surrounded by a range that meet the given
criteria.Ex:=COUNTIF(SELECT THE RANGE,1000)It returns two
1000.
Using Even & Odd
6 6 Tariq:
5 5
Even show whether the value is even or not.Ex:=EVEN(6)=6
Odd show wether the value is odd or not. Ex:=Odd(5)=5
Floor
Item Price P with floor
computer 1000.5 1000
Tariq:
Rounds number down, toward zero.
Ex:=FLOOR(2.5,1)=2, =FLOOR(1000.50,1)=1000

Power
5 2 25 Tariq:
25 Returns the result of a number raised to a power or The "^" operator
used instead of POWER to indicate to what power the base number is
raised, such as in 5^2. Ex: =POWER(5,2)equal 25, =5^2

Sign
10 1 Tariq:
Determines the sign of a number. Returns 1 if the number is positive, zero (0) if
the number is 0, and -1 if the number is negative.=SIGN(10)equals 1, =SIGN(4-
4)equals 0, =SIGN(-10)equal -1

Using Sum & Sumif


Sum
3 2 5 Tariq:
Adds all the numbers in a range of cells. Ex:=SUM(3,2)equal 5
Sumif
salary
1000
5000
1000
5000
2000
10000 Tariq:
Adds the cells specified by a given criteria.Ex:=SUMIF(ALL SALARY
RAGE,1000)equal 2000
=SUMIF(ALL THE SALARY,">4000")equal 10000
Subtotal
Salary
10000
1000
5000
100
4025 Tariq:
Returns a subtotal in a list or database. Once the subtotal list is created,
you can modify it by editing the SUBTOTAL
function.Ex:=SUBTOTAL(1 OR FUNCTION_NUM,RANG OF
SALARY)
1=AVERAGE, 2=COUNT,3=COUNTA,4=MAX,5=MIN,9=SUM

Statistical Functions

Average & Averagea


salary
100
1200
1200
1000
875 Tariq:
875 Tariq:
Returns the average =average(your list number)
Calculates the average In addition to numbers, text and logical values
such as TRUE and FALSE are included in the calculation.
=averagea(your number or text list)
Tariq:
Calculates the average In addition to numbers, text and logical values
such as TRUE and FALSE are included in the calculation.
=averagea(your number or text list)

Count,Counta &Countblank Tariq:


Salary Counts empty cells in a specified ran
1000 cells.=COUNTBLANK(SELECT TH
1300
text
1000

1000
4
5 Tariq:
1
Counts the number of cells that contain numbers and numbers within
the list of arguments. Use COUNT to get the number of entries in a
number field in a range or array of numbers.you can count up to 30
values in different columns. Ex:=COUNT(SELECT THE RANGE OF
NUMBERS)OR counta counts both number and text
Ex:=COUNTA(SELECT THE RANGE OF NUMBER AND TEXT)

Countif
salary
1000
5000
8000
6000
1 Tariq:
2 Counts the number of cells within a range that meet the given criteria.
=COUNTIF(THE SALARY RANGE,1000)Equal 1
=COUNTIF(THE SALARY RANGE,">5000")Equal 2

Max & Large


salary
10000
1000
5000
100
10
10000 Tariq:
5000 Tariq:
Returns the largest value in a set of values.
Use large if u want to
=MAX(SALARY find the second biggest
RANGE)equal 10000 number after first one.
=LARGE(SALARY RANGE,2)equal 5000
Min & Small
salary
10000
1000
5000
100
10
10 Tariq:
100 Tariq:
Returns the smallest number in a set of values.=MIN(SALARY
Use small to find10the second smallest value in a set of
RANGE)Equal
value.=SMALL(SALARY RAGE,2)Equal 100

Lookup & Reference

Choose
Name Branch No B Location Branch # B Location
sameer 1 New York 1 New York Tariq:
sahil 2 London
CHOOSE to select one of up to 29
Tariq 3 Toranto
the index number.=CHOOSE(BR
Haroon 4 Kabul
YORK,LONDON,TORANTO,KA

GetpivotaData
name job salary Sum of salary
name
wali manager 1000 job sahil sameer wali G-Total
sameer teacher 8000 manager 1000 1000
sahil producer 10000 producer 10000 10000
teacher 8000 8000
10000 Tariq: G-Total 10000 8000 1000 19000
Returns data stored in a PivotTable report. You can use GETPIVOTDATA to
retrieve summary data from a PivotTable report, provided the summary data is
visible in the report. First of all we make a piovtable from our existing table and
then we this function. Ex:=GETPIOVOTDATA(SUM OF SALARY,SAHIL)Equal
10000
Tariq:
Hyperlink
Creates a shortcut or jump that opens a document stored on a network server, a
CLICK HERE TO HAVE OPEN THE NOTEPAD
intranet, or the Internet. When you click the cell that contains the HYPERLINK
CLICK HERE TO OPEN WORD
function, Microsoft Excel opens the file stored at
link_location.Ex:=HYPERLINK(C:\WINDWOS\NOTEPAD.EXE,CLICK TO H
NOTEPAD OPEN) and if u want to open an office program.
Ex:=HYPERLINK(C:\PROGRAM FILES\MICROSOFT
OFFICE\OFFICE\WINWORD.EXE,CLICK HERE TO OPEN WORD)

Index Indirect
Name job salary over time
sameer producer 1000 100
haroon teacher 8000 300
karim director 10000 5000

producer Tariq:
Uses an index to choose a value from a
reference. =INDEX(SELECT ALL
YOURTABLE,2,2,1)Equal producer
a Tariq:
a592
Returns the reference specified by a text string. References are immediately
evaluated to display their contents.Ex: =INDIRECT(A592,EMTY OR FALSE)equal
name and if the return type is false you have to write R592C2 instead of A592.

Lookup
Name job salary over time Tariq:
8000 haroon
haroon teacher 8000 300 It looks for a value in a vector. Ex
NAME RANGE WIOUT OUT IT
HEADING)and we must do the a
Tariq:
It looks for a value in a vector. Ex
karim director 10000 5000 NAME RANGE WIOUT OUT IT
sameer producer 1000 100 HEADING)and we must do the a

Match
Name job salary over time 1
Tariq:
1000
sameer producer 1000 100 Use MATCH instead of one of the
haroon teacher 8000 300 an item in a range instead of the i
karim director 10000 5000 RANGE,1)It has three option if u
the smallest value and if u write 0

Offset
Name job salary over time 0 Tariq:
sameer producer 1000 100 Returns a reference to a
haroon teacher 8000 300 rows and columns from a
cells.Ex:OFFSET(SAMEER
karim director 10000 5000

Database
name salary overtime name salary overtime
sameer 1000 500 1000
sameer 5000 300 name salary overtime
sahil 8000 500 name count 1 Tariq:
haroon 10000 6000 salary sum 1000 Dcount: Counts the cells that c
Max salary 10000 database that match conditions y
Avg salary 1000 Dsum:Adds the numbers in a c
Min salary 300
conditions you specify.
name sameer
Dmax:Returns the largest valu
Daverage:Averages the values
conditions you specify
Dmin:Returns the smallest num
have the same formuala is below.
ex:=DCOUNT(DATABASE,SALA
AT ONCE)While Dget is differen
Dget:Extracts a single value fro
conditions you specify. Formula i
conditions you specify.
Dmax:Returns the largest valu
Daverage:Averages the values
conditions you specify
Dmin:Returns the smallest num
have the same formuala is below.
ex:=DCOUNT(DATABASE,SALA
AT ONCE)While Dget is differen
Dget:Extracts a single value fro
conditions you specify. Formula i
=DGET(DATABASE,NAME,NA
MUST BE SELECTED)equal sam

Text Functions
Char char
65 A Tariq:
Returns the character specified by a number. Use CHAR to translate code page
numbers you might get from files on other types of computers into characters.
=CHAR(65)equal "A" It means 65 is the number from which the "A" character
made.

Code code
A 65 Tariq:
Returns a numeric code for the first character in a text string. The returned cod
corresponds to the character set used by your computer.
Ex:=CODE(A)equal (65) means that the character "A" is made by number (65)

Concatenate
First Name Last Name Full Name
sameer sahar sameer sahar Tariq:
mustafa yaqubi Joins several text
mustafa yaqubi strings into one text string.
Ex:=CONCATENATE(SAMEER&" "&SAHAR)Equal to Sameer Sah
Tariq:
Joins several text strings into one text string.
Ex:=CONCATENATE(SAMEER&" "&SAHAR)Equal to Sameer Sah

Dollar
salary Dollar sign
1000 $1,000.000
Tariq:
Converts a number to text using currency format, with the
decimals rounded to the specified place. Ex:
=DOLLAR(1000,3)

Using Find & Search


name Find Search
Sameer 4
Tariq:4 Tariq:
Find is used
Search
to find
is also
a specific
like find,
character
but theand
onlyif thing
you write
between
the small
them character
is that search
it fin
the small and
capital
if you
andwant
smalltoletter
find the
in acapital
word. letter
Ex:=SEARCH("E",SAMEER,1)
so write the letter in
uppercase.Ex: =FIND("E",SAMEER,1)one means to start from the start of the
word.

Using Left, Right & Mid


Name Left Right Mid
r Tariq: S Tariq:
Sameer S Tariq:
LEFT returns
RIGHTthe returns
first
MID character
returns
the lastaor
character
specific
characters
number
or characters
in a of
text
characters
string,
in a text
based
from
string,
on
a text
the
based
num
stri
of characters
number
you specify.
ofposition
characters
Ex:
you
=LEFT(SAMEER,1)Equal
you
specify,
specify.
based
Ex:on=RIGHT(SAMEER,1)Equal
the number
"S" of characters you "R
=MID(SAMEER,1,1)Equal "S"
Using Lower,Upper & Proper

Name Lower Upper Proper


Sameer sameer Tariq: Sameer
SAMEER Tariq: Tariq:
Converts all
Converts
uppercase
text
Capitalizes
letters
to uppercase,
inthe
a text
first
means
string
letterto
to
incapital
lowercase.It
a text string
letters.means
and
Ex:any
=UPPER(sam
toother
smallletter
letters. Ex:"SAMEER"
=LOWER(SAMEER)Equal
any character other than "sameer"
a letter. Converts all other letters to
Ex: =PROPER(SAMMER)Equal "Sameer"
Len
Name Len
Sameer 6
Tariq:
LEN returns the number of characters in a text string. Ex:
=LEN(SAMEER)Equal "6"

Substitute

First name Last name


karim Khan karim

mahmod
Name
mahmod Khan Tariq:
Use SUBSTITUTE when you want to replace
specific text in a text.
Ex: =SUBSTITUTE(KARIM
KHAN,KARIM,MAHMOD)Equal "Mahmod
Khan" It changes the first name karim with any
name you mention in name and adds it with the
last name khan.

Text
Date Text
Tariq:2003
1/1/2003 01 Wednesday January
Converts a value to text in a specific number
format. Ex: =TEXT(1/1/3,"DD DDDD
MMMM YYYY")Equal 01 Wednesday
January 2003

Trim
your text
Welcome to the real world
Welcome to theTariq:
real world
Removes all spaces from text except for single
spaces between words. Use TRIM on text that
you have received from another application that
may have irregular spacing.
Ex:=TRIM(WELCOME TO THE REAL
WORLD)Equal "Welcome to the real world"

Value
salary Value
$1,000.00 1000 Tariq:
Converts a text string that represents a number to a
number.Ex:=VALUE($1,000.00)Equal "1000"
Tariq:
Converts a text string that represents a number to a
number.Ex:=VALUE($1,000.00)Equal "1000"

Logical Functions
And And
Addition TRUE Tariq:
2+2=4, 2+3=5 Returns TRUE if all its arguments are TRUE; returns FALSE if one o
arguments is FALSE.Ex: =AND(2+2=4, 2+3=5)Equal "True", if it is no
the if one of the addition is wrong the result is false.

If
Score Result
100 A
Tariq:
80 B Returns one value if a condition you specify evaluates to
51 C TRUE and another value if it evaluates to FALSE.
50 No Grade Use IF to conduct conditional tests on values and formulas.
=IF(SCORE>90,"A",IF(SCORE>70,"B",IF(SCORE>50,"C
",IF(SCORE<=50,"NO GRADE")))

Or Or
Addition Addition
2+2=4,5+5=11 TRUE Tariq:
Returns TRUE if any argument is TRUE;
returns FALSE if all arguments are FALSE.
=OR(2+2=4,5+5=11)
Tariq:
Returns TRUE if any argument is TRUE;
returns FALSE if all arguments are FALSE.
=OR(2+2=4,5+5=11)

Information Functions
Cell Functions Tariq:
Returns information about the formatting, location, or contents of the upper-left
Address $A$1179 in a reference.
Col 3 Returns information about the formatting, location, or contents of the upper-left
Color 0 in a reference.
Contents Contents ADDRESS: Reference of the first cell in reference, as text.
=CELL("ADDRESS",SELECT A CELL)
Filename 'file:///opt/scribd/conversion/tmp/scratch2759/53639808.xls'#$Sheet1
Format G COL:Column number of the cell in reference.
1/1/2003
Parenthese 0 =CELL("COL",SELECT A CELL)
Prefix ' Sammer
COLOR: 1 if the cell is formatted in color for negative values; otherwise return
(zero). To format the cell go to format menu and there choose cells and then num
Protect 1 and give a color to negative number.
Row 1191 =CELL("COLOR",SELECT A CELL)
Type b
Width 9 CONTENTS:Contents of the upper-left cell in reference.
=CELL("CONTENTS",SELECT A CELL)

FILENAME:Filename (including full path) of the file that contains reference,


text. Returns empty text ("") if the worksheet that contains reference has not yet
been saved.
=CELL("FILENAME")

FORMAT: Text value corresponding to the number format of the cell. The text
values for the various formats are shown in the following table. Returns "-" at th
end of the text value if the cell is formatted in color for negative values. Returns
at the end of the text value if the cell is formatted with parentheses for positive o
values.
format the cells from format menu cells.
=CELL("FORMAT",SELECT A CELL)
Tariq:
PARENTHESES:1 if the cell is formatted with parentheses for positive or all
values; otherwise returns 0.
Give the cell parentheses from cells and then custom.
=CELL("PARENTHESES",SELECT A CELL)

PREFIX:Text value corresponding to the "label prefix" of the cell. Returns single
quotation mark (') if the cell contains left-aligned text, double quotation mark (") if
the cell contains right-aligned text, caret (^) if the cell contains centered text,
backslash (\) if the cell contains fill-aligned text, and empty text ("") if the cell
contains anything else.
CELL("PREFIX",SELECT A CELL")

PROTECT:0 if the cell is not locked, and 1 if the cell is locked.


Lock or unlcok the cells from format menu cells and Protections.
=CELL("PROTECT",SELECT A CELL)

ROW:Row number of the cell in reference. .


=CELL("ROW",SELECT A CELL)

TYPE:Text value corresponding to the type of data in the cell. Returns "b" for
blank if the cell is empty, "l" for label if the cell contains a text constant, and "v" for
value if the cell contains anything else.
CELL("TYPE",SELECT A CELL)

WIDTH:Column width of the cell rounded off to an integer. Each unit of column
width is equal to the width of one character in the default font size.
=CELL("WIDTH",SELECT A CELL)
Error.type
Error Type
#DIV/0! 532
Tariq:
Returns a number corresponding to one of the error
Message values in Microsoft Excel or returns the #N/A error if no
Tariq: error exists. You can use ERROR.TYPE in an IF function
=if(2=2,"Divided byfor an error value and return a text string, such as
to test
Zero","") a message, instead of the error value.
=ERROR.TYPE(ERROR)Equal "2"

Info Functions Tariq:


Directory Returns information about the current operating
Err:502 Tariq: environment.
Path of the current directory or folder.=INFO("DIRECTORY")

Memavail
Err:502 Tariq:
Amount of memory available, in bytes. =INFO("MEMAVAIL")

Memused
Err:502 Tariq:
Amount of memory being used for data.=INFO("MEMUSED")

Numfile
1 Tariq:
Number of active worksheets.=INFO("NUMFILE")Eqaul "3"
Origin
Err:502 Tariq:
Absolute A1-style reference, as text, prepended with "$A:" for Lotus 1-
2-3 release 3.x compatibility. Returns the cell reference of the top and
leftmost cell visible in the window, based on the current scrolling
position. And if you want to change the reference style go to option and
then general and select R1C1 Reference Style.
Osversion =INFO("ORIGIN")
Tariq:
Windows (32-bit) NT 5.01
Current operating system version, as text. =INFO("OSVERSION")

Recalc
Automatic Tariq:
Current recalculation mode; returns "Automatic" or "Manual". For
changing go to Option and then selcect Calculation so there you can
make this Automatic and Manual. =INFO("RECALC")

Release
Tariq:
310m19(Build:9420)
Version of Microsoft Excel, as text. =INFO("RELEASE")

System
LINUX Tariq:
Name of the operating environment: Macintosh = "mac"
Windows = "pcdos" =INFO("SYSTEM")

Totmem
Err:502 Tariq:
Total memory available, including memory already in use, in bytes.
=INFO("TOTMEM")
Is Functions Tariq:
This section describes the nine worksheet functions used for testing the
type of a value or reference.
Each of these functions, referred to collectively as the IS functions,
checks the type of value and returns TRUE or FALSE depending on the
outcome. For example, the ISBLANK function returns the logical value
TRUE if value is a reference to an empty cell; otherwise it returns
FALSE.

Isblank
Tariq:
FALSE sammer
Value refers to an empty cell. =INBLANK(SELECT A
TRUE
CELL)

Iserr
TRUE
Tariq:
#DIV/0!
Value refers to any error value except #N/A.
FALSE
=ISERR(SELECT A CELL)If you write =343/0 so the
result if true otherwise it is false

Iserror
TRUE #DIV/0! Tariq:
Value refers to any error value (#N/A, #VALUE!, #REF!,
TRUE #N/A
#DIV/0!, #NUM!, #NAME?, or #NULL!).
=ISERROR(SELECT A CELL)
FALSE

Islogical
TRUE TRUE Tariq:
Value refers to a logical value. =ISLOGICAL(SELECT A
TRUE FALSE
CELL) And it that cell write this =10>9 it is a logic

FALSE

Isna
TRUE #N/A Tariq:
Value refers to the #N/A (value not available) error value.
FALSE
=ISNA(SELECT A CELL) If in this cell there is an isna erro
so it is true or it is false.
Tariq:
Value refers to the #N/A (value not available) error value.
=ISNA(SELECT A CELL) If in this cell there is an isna erro
so it is true or it is false.

Isnontext
FALSE Sameer
Tariq:
Value refers to any item that is not text. (Note that this
TRUE
function returns TRUE if value refers to a blank cell.)
=INNONTEXT(SELEC A CELL)

Isnumber
TRUE 100
Tariq:
Value refers to a number. =ISNUMBER(SELECT A
FALSE
CELL)

Istext
TRUE Sameer Tariq:
Value refers to text. =ISTEXT(SELECT A CELL)
FALSE

Iseven
1 2 Tariq:
Returns TRUE if number is even, or FALSE if number is
0 3
odd.
If this function is not available, run the Setup program to
install the Analysis ToolPak. After you install the Analysis
ToolPak, you must enable it by using the Add-Ins command
on the Tools menu. =ISEVEN(SELECT A CELL)

Isodd
Tariq:
Returns TRUE if number is odd, or FALSE if number is
even. =ISODD(SELECT A CELL)
1 1
Tariq:
Returns TRUE if number is odd, or FALSE if number is
0 2
even. =ISODD(SELECT A CELL)

N
100 100
Tariq:
Returns a value converted to a number.
0 Sammer
=N(SELECT A CELL)

1 TRUE

37622 1/1/2003

Type
1 100 Tariq:
Returns the type of value. Use TYPE when the behavior of
2 sammer
another function depends on the type of value in a
particular cell.
8 TRUE
=TYPE(SELECT A CELL) then wirte something.
If value is Number ,TYPE returns 1
If Text Type is 2 ,If Logical Value Type is 4
16 #DIV/0!
If Error Type is 16
1. write a number, 2. Write a Name, 4.Write =10>9, 16.
Write =343/0
such as addition,subtraction,multiplication and division the
w.=salary+other,
y*other,=salary/other

he formula is.=salary*50/100 and if u want to cut or reduce


ed. =salary*-50/100 ;

e the amount of items I mean its quantity, so the foumula is


rchased
ount
finding
of and
the item
exactthe
price
fomula
of
we need for a total and
count*100%
is.
Quantity-Extended Price

e to know that and is a function where every condition must be


hers,if one of the conditions are not true the result is false and

0,Quantity>5),salary*Quantity*Discount/100%,"Match Not
w the exact price in total write this formula. =Price*Quantity-

e different with function and. In Or function if any of given


ue, so the result is positive. And formula is.
Quantity>5),Price*Quantity*Discount*100%,"Match Not

bonus with percentage the fomula is.


de="A",salary*50/100,if(Grade="B",salary*25/100)) and close the fomula
rantheses according to the count of if.
bonus with percentage the fomula is.
de="A",salary*50/100,if(Grade="B",salary*25/100)) and close the fomula
rantheses according to the count of if.

out the result of students through IF function the formula is.


al>280,"He is passed 1st",IF(Total>250,"He is passed
(Total<=250,"He is just failed")))

F4 enter,

between S-date and E-date or between two dates we use


as bellow.=DAYS360(S-date,E-date,True)
result we use IF as follow. =IF(Days>=31,"His time is
is not finished yet"). The Days cell only shows the duration of
an have a 60 days or over that duration program.
as bellow.=DAYS360(S-date,E-date,True)
result we use IF as follow. =IF(Days>=31,"His time is
is not finished yet"). The Days cell only shows the duration of
an have a 60 days or over that duration program.

Tariq:
someone
ot finished yet starts a program in 7/15/3 and ends that on 8/15/3
according
ot finished yet to the Duration u give so the formula in S-date, e-
date and Duration is that in E-date cell write =S-
date+Duration so it gives the result. To find Days
use.=DAYS360(S-Date,E-date,true) and to find Result the
formula is.
=IF(E-Date>Today(),"His time is just finished",if(E-
Date=Today(),"This is only his last day",if(E-Date<Today(),"His
time is not finished yet")))

Tariq:
For finding the days of the week we must have the form above. Find year
=YEAR(Hiredate), Find Month =MONTH(Hiredate), Find Day =DAY(Hire Date)
find Weekday has many types from which we choose the first if it returns 1 so it is a
number from Sunday1 up 7 Saturday and formual is.
=IF(weekday=1,"Sunday",if(Weekday=2,"Monday",if(Weekday=3,"Tuesday",if(
Weekday=4,"Wednesday",if(Weekday=5,"Thurday",if(Weekday=6,"Friday",if(W
eekday=7,"Saturday")))))))
e the form above. And the functions which are
TE("Your age is"," ",RIGHT(YEAR(current
d")

Tariq:
It is used for depreciation of an Asset.
Ex:You bought an item under 10000 thousands Rs,but you paid 1000 thousands as
advance the you will pay the rest 9000 thousand Rs in Life and periods
I mean in one year at one time or in 12 months the Result comes 9000 thousands
Rs.Fomula is.
=DB(Cost,Salvage,Life,Period,Month)

like the above function Db. Formual is.


ost,Solvage,Lifel,Period)and to see the exact price in total the formula is
e+Result

aight-line depreciation of an asset for one period.


N(Cost,Salvage,Life) Enter Total =Salvage+Result
aight-line depreciation of an asset for one period.
N(Cost,Salvage,Life) Enter Total =Salvage+Result

ent for a loan based on constant payments and a constant


rmula is. =PMT(rate,Nper,pv)

the interest payment for a given period for an investment based on


, constant payments and a constant interest rate or simple only show the
of an interest and the fomula is =IPMT(Rate,Per,Nper,-Pv)

the payment on the principal for a given period for an investment based
odic, constant payments and a constant interest rate or it shows our own or
oney we paid plus every period's benefit. The formula is.=
Rate,Nper,Per,-pv) We use the sighn of minus only if we receive any money
we pay the money there is no need of minus sign.
tes the interest paid during a specific period of an investment or simply
ly the specific period of an interest
ulais.=ISPMT(Rate,Per,Nper,-Pv)

rate per period of an annuity or it is used to find the rate of a


ual is.=Rate(Nper,Pmt,-Pv)

of periods for an investment. Formula is =NPER(Rate,Pmt,-

value of an investment or find the presend Value of an


ormual is =PV(Rate,Nper,-Pmt)
the future value of an investment based on periodic, constant payments
onstant interest rate. For Example:Suppose you want to save money for a
project occurring a year from now. You deposit $1,000 into a savings
that earns 5 percent annual interest compounded monthly (monthly
of 5%/12, or 0.5%). You plan to deposit $100 at the beginning of every
or the next 12 months. How much money will be in the account at the end
onths? The formual is.
te/12,Nperiod,-Pmt,-Pv)

date. Ex:We write the year,


lete date from them by

ented by date_text. Use DATEVALUE


al number the formual is
ormul We want fo find the day, month, and year from the datevalue or
e datevalu's serial number and the formula is for each functions are as

Datevalue or its serial number),=MONTH(Datevalue or its serial number)


(Datevalue or its serial number)

n two dates based on a 360-day year (twelve


me accounting calculations. Use this function
ccounting system is based on twelve 30-day
Start-Date,End-Date,True)

functions first we use timevalue which is followed by this


n.=TIMEVALUE("4:55:40") and then we are going to find the its
nute and seond which are following as below.
R(Timevalue),=MINUTE(Timevalue),=SECOND(Timevalue)
f the current date and nowReturns the serial
me.Examples as.=Today(),=Now()

ing days between start_date and end_date.


nd any dates identified in
-date,holiday)

here the week falls numerically within a


HOLIDAYS)and use the day function to know
al 6
here the week falls numerically within a
HOLIDAYS)and use the day function to know
al 6

o, to the nearest multiple of


d using pennies in your prices and
ula =CEILING(4.42,0.05) to round

5, =CEILING(1000.50,1)=1001

(6)=6
5
wer or The "^" operator can be
power the base number is to be
al 25, =5^2

ber is positive, zero (0) if


N(10)equals 1, =SIGN(4-

=SUM(3,2)equal 5
mpty cells in a specified range of
UNTBLANK(SELECT THE RANGE)

and numbers within


ber of entries in a
can count up to 30
T THE RANGE OF
ext
BER AND TEXT)
SE to select one of up to 29 values based on
x number.=CHOOSE(BRANCH#,NEW
LONDON,TORANTO,KABUL)

TDATA to
mary data is
ng table and
SAHIL)Equal
ed on a network server, an
ontains the HYPERLINK

EPAD.EXE,CLICK TO HAVE
gram.
FT
O OPEN WORD)

ediately
R FALSE)equal
d of A592.

for a value in a vector. Ex:LOOKUP(G615 OR HAROON,SELECT THE


RANGE WIOUT OUT ITS HEADING,SELECT SALARY WITHOUT ITS
NG)and we must do the action of sort assending and dessending on name.
for a value in a vector. Ex:LOOKUP(G615 OR HAROON,SELECT THE
RANGE WIOUT OUT ITS HEADING,SELECT SALARY WITHOUT ITS
NG)and we must do the action of sort assending and dessending on name.

TCH instead of one of the LOOKUP functions when you need the position of
in a range instead of the item itself.Ex:=MATCH(G627 OR 1000,SALARY
E,1)It has three option if u write 1 it finds the largest value,if you write -1 finds
llest value and if u write 0 it finds the first or exact value.

ns a reference to a range that is a specified number of


and columns from a cell or range of
Ex:OFFSET(SAMEER,2,3,)equal 5000

nt: Counts the cells that contain numbers in a column in a list or


e that match conditions you specify.
:Adds the numbers in a column in a list or database that match
ns you specify.
:Returns the largest value in a set of values.
age:Averages the values in a column in a list or database that match
ns you specify
:Returns the smallest number in a set of values.for all the functions we
e same formuala is below.
OUNT(DATABASE,SALARY,SELECT NAME, SALARY,OVERTIME
CE)While Dget is different from those in above.
Extracts a single value from a column in a list or database that matches
ns you specify. Formula is.
ns you specify.
:Returns the largest value in a set of values.
age:Averages the values in a column in a list or database that match
ns you specify
:Returns the smallest number in a set of values.for all the functions we
e same formuala is below.
OUNT(DATABASE,SALARY,SELECT NAME, SALARY,OVERTIME
CE)While Dget is different from those in above.
Extracts a single value from a column in a list or database that matches
ns you specify. Formula is.
(DATABASE,NAME,NAME,SALARY,OVERTIME ALL AT ONCE
BE SELECTED)equal sameer. only shows single names.

AR to translate code page


mputers into characters.
which the "A" character is

string. The returned code


r.
" is made by number (65)

HAR)Equal to Sameer Sahar


HAR)Equal to Sameer Sahar

eween
the small
them character
is that search
it finds
finds both
RCH("E",SAMEER,1)
rite the letter in
tart from the start of the

ers
tharacters
string,
in a text
based
from
string,
on
a text
the
based
number
string,
on the
starting at the
HT(SAMEER,1)Equal
umber
al "S" of characters you "R"specify. Ex:
string
ase.It
letters.means
and
Ex:any
=UPPER(sameer)Equal
toother
smallletters in text that follow
onverts all other letters to lowercase letters.
Sameer"
E; returns FALSE if one or more
5)Equal "True", if it is not the same or
s false.
contents of the upper-left cell

contents of the upper-left cell

text.

e values; otherwise returns 0


choose cells and then number

nce.

e that contains reference, as


tains reference has not yet

ormat of the cell. The text


ng table. Returns "-" at the
negative values. Returns "()"
parentheses for positive or all
ositive or all

Returns single
tion mark (") if
ered text,
if the cell

urns "b" for


tant, and "v" for

unit of column
DPCache_Sheet1

name job salary


wali manager 1000
sameer teacher 8000
sahil producer 10000

Page 59

Vous aimerez peut-être aussi