functions

18
*please note that in a syntax, optional Text Functions Function Name Lower(text) Upper(text) Proper(text) Text(data, format) Trim(text) Len(text) Rept(text,no of times) Left(text,num_char) Right(text,num_char) Mid(text,start_num,num_char) Find(text,within_text,start_num) Search(text,within_text,start_num) Row(cell address) Column(cell address) Replace(old_text,start_num,num_char,new_text) Substitute(text,old_text,new_text,[,instance Logical and Information Functions Function Name Attendance Percentage 90 60 AND(logical1[,logical2,…]) OR(logical1[,logical2,…]) Information Functions Function Name

Upload: manidhar-reddy

Post on 05-Dec-2015

213 views

Category:

Documents


0 download

DESCRIPTION

excell

TRANSCRIPT

Page 1: Functions

Some Functions in Excel*please note that in a syntax, optional parameters are enclosed within square brackets []Text FunctionsFunction NameLower(text)Upper(text)

Proper(text)

Text(data, format)Trim(text)

Len(text)Rept(text,no of times)Left(text,num_char)Right(text,num_char)

Mid(text,start_num,num_char)

Find(text,within_text,start_num)Search(text,within_text,start_num)Row(cell address)Column(cell address)

Replace(old_text,start_num,num_char,new_text)

Substitute(text,old_text,new_text,[,instance number])

Logical and Information FunctionsFunction NameAttendance Percentage

9060

AND(logical1[,logical2,…])

OR(logical1[,logical2,…])

Information FunctionsFunction Name

Page 2: Functions

cell(info_type[,reference])

info(type_text)

ISFunctionsISBlank(value)ISErr(value)ISEven(value)ISOdd(value)ISNumber(value)ISText(value)

Date and Time FunctionsDate and Time Formats: m/d/yyyyd-mmm-yyd-mmmmmm-yyh:mm:ss AM/PMh:mm AM/PMh:mm:ssh:mmm/d/y h:mmTo enter current date: cntrl + ;To enter current time: cntrl + :To find difference between two dates: date 1 - date 2Function NameToday()Date(year,month,day)Datevalue(text)Year(date)month(date)day(date)

Page 3: Functions

weekday(date[,returntype])

weeknum(date[,returntype])Now()Time(hr,min,sec)Timevalue(text)Hour(time)Minute(time)Second(Time)

Math FunctionsRound(Number, No_of_digits)Rounddown(num,num_digits)RoundUp(num,num_digits)Even(number)Odd(number)Int(number)

Trunc(number[,numdigits])Mod(number,divisor)

Rand()

Randbetween(bottom,top)

Statistical Functionsnumbers

2367

Page 4: Functions

323245

Median(number1 [,nunber2,…])Mode(number1 [,nunber2,…])Large(array, kth largest)Small(array, kth largest)Var()Stdev()

Trend(known x, known y, new x)

Frequency(data_array, bins_array)numbers

11424325

1010

7

Statistics functions are also available through Analysis Toolpack which is available as Add-in in ExcelSummary of Some of the Statistical functions in Analysis toolpack

Anova: Single Factor

Annova: Two Factor with replication

Annova: Two Factor without replication

CorrelationDescriptive Statistics

F-Test

Page 5: Functions

HistogramRandom numver generation

Regression

Sampling

t-test

z-test

Page 6: Functions

Some Functions in Excel*please note that in a syntax, optional parameters are enclosed within square brackets []

UsageTo convert a text into lower caseTo convert a text into Upper case

To convert the text with first letter of each word captalized

To convert the given number or text to particular formatRemoves extra spaces from the text

Returns the number of characters in the text, including spaceRepeats a text for a given number of timesReturns the number of leftmost characters in the stringReturns the number of rightmost characters in the string

Same as find but is not case sensitiveReturns the row number of the specified cellReturns the column number of the specified cell

UsageTest score

7075

Perform the action if all the conditions are true

Perform the action if any of the conditions is true

Usage

Returns a specified number of characters starting from the given point within a string

Finds a text in a given text starting from the start_num position and returns the position. Is case sensitive

Replaces the given characters with the new text in the old text starting from the given position

Substitutes the old text with the new text in the given text. The number of instance specifies which instance need to substituted.

Page 7: Functions

UsageReturns the current dateReturns the serial number of the given dateConverts a string into dateReturns the component of the dateReturns the month component of the dateReturns the day component of the date

Returns the information seeked for the reference cell. The information type can be address,col,row,content of the reference,filename,format

Returns the information seeked on the current operating environment.Boolean functions that return true or false based on the argument.

Page 8: Functions

Returns the number corresponding to the day of the date

Returns the week number when the date fallsReturns current date and timeReturns the time for the given componentsConverts a string into timeReturns the hour component of timeReturns the minute component of timeReturns the seconds component of time

Rounds a number to the number of digitsRounds towards zeroRounds away from zeroReturns the nearest even number away from 0Returns the nearest odd number away from 0Convert a value to its nearest integer portion

Truncates the number to given number of decimal placesReturns the remainder

Returns the random number >=0 and <1.

Generates number between bottom and top

Page 9: Functions

Calculates medianCalculates modeTo find the kth largest number in the arrayTo find the kth smallest number in the arrayTo find the varianceTo get the standard deviation

Statistics functions are also available through Analysis Toolpack which is available as Add-in in ExcelSummary of Some of the Statistical functions in Analysis toolpack

Returns the correlation coefficient between two sets of dataGenerates a report showing various statistics for a set of data

Predicts the new y value for the new x value by understanding the trend being followed by the known x and y values

To construct a frequency distribution as per the upper bounds of the bins. This is the array function and hence can be executed by pressing cntrl+shift+enter

A simple analysis of variance. It tests the hypothesis that the means from several samples are equal

An extension of the single factor annova to include more than one sample for each group of data

A two factor annova that does'nt include more than one sampling per group

Performs two sample F-test to compare two population variance

Page 10: Functions

Fills a range with independent random numbers

Performe two sample z-test for means with known variance

Calculates individual and cummulative frequencies for a range of data and set of data bins. It is similar to frequency()

Performs linear regression analysis that fits the line through a set of values using the least sqauares method

Creates a sample from a population by treating the input range as a population

Perfrom a t-test to find whether a sample's means are distinct.

Page 11: Functions

Some Functions in Excel

Example ResultLower("ABC") abcUpper("abc") ABC

Proper("information technology for management") Information Technology For Management

Text(now(),"dd-mmm-yyyy") 18-Apr-2023Trim(" abc") abc

Len("IT for Management") 17Rept("*",5) *****Left("GITAM University",5) GITAMRight("GITAM University", 10) University

Mid("GITAM University", 4,6) AM Uni

FIND("are","How are you",1) 5SEARCH("ARE","How are you",1) 5ROW(A1) 1Column(C5) 3

REPLACE("management",1,6,"commit") commitment

SUBSTITUTE("How are you are","are","do") How do you do

Example Result

IF(AND(B25>=75,C25>40),"Promote","Detain") PromoteIF(AND(B26>=75,C26>40),"Promote","Detain") DetainIF(OR(B25>=75,C25>40),"Promote","Detain") PromoteIF(OR(B26>=75,C26>40),"Promote","Detain") Promote

Example Result

Page 12: Functions

CELL("contents",E27) Promote

INFO("osversion") Linux 5.4

ISBlank(d31) TRUEIserr(E30) FALSEISeven(C26) FALSEISODD(C26) TRUEISNUMBER(E27) FALSEISTEXT(E27) TRUE

8/8/2015 - "8/1/2015" 7Example ResultToday() 4/18/2023DATE(2015,8,6) 8/6/2015

YEAR(TODAY()) 2023MONTH(TODAY()) 4DAY(TODAY()) 18

Page 13: Functions

WEEKDAY(TODAY()) 3

weeknum("August 8, 2015") 32Now() 4/18/2023 5:36TIME(12,15,30) 12:15 PM

HOUR(NOW()) 5MINUTE(NOW()) 36SECOND(NOW()) 48

ROUND(123.45678,2) 123.46ROUNDDOWN(1.1,0) 1ROUNDUP(1.1,0) 2EVEN(14.2) 16ODD(14.2) 15

16 16

TRUNC(16.678,1) 16.6MOD(16,3) 1

RAND() 0.633040840919196

RANDBETWEEN(5,25) 12

Page 14: Functions

MEDIAN(A88:A92) 32MODE(A88:A92) 32LARGE(A88:A92,2) 45SMALL(A88:A92,2) 32VAR(A88:A92) 292.7STDEV(A88:A92) 17.1084774307944

FREQUENCY(A101:A111,{3,7,10}) 542

Statistics functions are also available through Analysis Toolpack which is available as Add-in in Excel

Page 15: Functions

Some Functions in Excel

Remarks

Default is all instances

Remarks

Remarks

now() returns current date and time

Page 16: Functions

Remarks

type_text could be directory, numfile, origin, osversion, release, recalc, system

Page 17: Functions

return type: 1 - sun to sat2 - mon to sat3 - mon to sun; numbering starts from 0. Default return type is 1

return type: 1 - week begins on Sunday (default);2- week begins on Monday

To generate number >=0 and < n, give rand()*n. Also note that random numbers may change with every action

Note that random numbers may change with every action

Page 18: Functions

0-34-78-10