Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
18 views

Computer Ms-Excel and Visual Basic Functions

The document discusses various date, time, text and mathematical functions in MS Excel and Visual Basic. It provides examples of functions such as Date(), Month(), Year(), Weekdays(), Time(), Now(), Left(), Right(), Mid(), Len(), Sum(), Average(), Count(), If() and String() functions in both Excel and Visual Basic.

Uploaded by

shocktech0
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Computer Ms-Excel and Visual Basic Functions

The document discusses various date, time, text and mathematical functions in MS Excel and Visual Basic. It provides examples of functions such as Date(), Month(), Year(), Weekdays(), Time(), Now(), Left(), Right(), Mid(), Len(), Sum(), Average(), Count(), If() and String() functions in both Excel and Visual Basic.

Uploaded by

shocktech0
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Sky Education

Siraj shaikh Degree study


Computer system and Application
Functions of MS-EXCEL and Visual basic
1. Date()- This function is used to display given date in american format i.e. mm/dd/yyyy.
=Date(2004,11,7)- 11/7/2004
2. Month()-Gives month of the year for the given serial number or date-text answer of the
function is numeric .
=Month (“25 Dec-2009)- 12
3. YEAR() Gives year for the given serial number or date-text . Answer of the functions is
numeric and it is always 4 digits.
=Year(“25 Dec-2009”)- 2009
4. Weekdays()- Gives day of the week for the given serial number or date –text.
= Weekdays (“31-Dec-2006”)-1(Sunday :1)
5. Days 360()-Gives you number f days between two given dates based on assumption that
there are 360 days in a year i.e. 12 month of 30 days
=Days 360(“1-Dec-2004”,”1-Jan -2005”)-30
6. Time()Gives time in hh:mm:AM/PM from (12 hours) for a given time. you have to give the
time as per 24 hours clock with hh:mm:ss
=Time(18,30,45)- 6:30 PM
7. Timevalue() This function is used to get serial number for time-text . Time text means time
in quotes .
=Timevalue(“6:00 PM”)-0.75
8. Today() This function is used to get current date . generally date will be in American
format.
=27th June ,2009=Today()-6/27/2009
9. Now() –This function is used is used to get current date as well as current time. generally
date will be in American format(mm/dd/yyyy) and time as per 24 hours clock .
=Now()=6/27/2009 18:30
Text functions
10. Left()- This function is used to find characters from left side of the string .
=Left(“FLOPPY DISK”,4)- FLOP
11. Right()-This function is used to find characters from Right side of the string .
Right(“FLOPPY DISK”,4)-Disk
12. Mid()- This function is used to find characters from middle of the string starting .
=Mid(“FLOPPY DISK”,2,3)-LOP
13. Upper()- This function is used to convert lowercase alphabates into uppercase.
=Upper(“Tania-10”)=TANIA -10
14. Lower()- This function is used to convert uppercase alphabates into lowercase.
= Lower(“Tania-10”)=tania -10
15. Proper()-It is used to capitalize the first alphabet in text string and any other alphabet in
the text that follows any non -alphabetic converts all other alphabets into lowercase.
=Proper(“THIS IS EXCEL”)- This is excel
16. Len()- This function is used to find length of a string
=LEN(“ABC”)- 3
17. Trim()- This function is used to remove all the blank spaces except single blank spaces
between two words.
=Trim (“THIS IS EXCEL”)= (“THIS IS EXCEL”)
18. Fixed() This function is used to round number to the specified number of the decimals
formats.
=Fixed(1333.3333,2)=1,333.33
Maths function
19. Sum()-Adds all the number in a range of cells. if there is text entry in the range then it will
be ignored the text.
=Sum(A2:A4)-
20. Sumif()- Adds all the numbers in a range of cells for which given condition is true.
21. Averageif()-This function is used to find average of all the numbers in a range of cells for
which given condition is true.
22. Count()-Counts the number of cells that contains number . remember date and time is
treated as number.
23. Counta()- Counts the number of cells that are not empty.
24. Countablank()-Counts the number of cells that are empty .
25. CountIf()-This function will count number of cells that are satisfying a given conditions.
26. Small()- This function returns the KthSmallest value in data set.
27. Correl()- This function return the correlation coefficicent of the array1 , arry2 cell range
use the correlation coefficient to determine the relationship between two properties

Logical function ()-

28. If()- This function is used to check a condition , if a condition is true then true part of IF is
solved otherwise false part If is solved.
=IF(Condition, true, false)
29. AND()- This function is used to combine two or more condition . if all the condition are true
then it will return true otherwise false.
30. OR()- This function is used to combine two or more conditions . if any one conditions is true
then it will return true otherwise false.
Visual basic Function
1. String()- This function returns a number of characters from the beginning of string
Left(“Computer”,1)- Will display C
2. Right()-This function returns a number of characters from the end of a string
Right(“Computer”,1)- Will display r
3. Mid()- This function returns a number of characters starting from a given position .
Mid(“computer”,4,3)- Will display put
4. Len()- This function returns length of a string
Len(“Computer”)- Will display 8
5. Lcase()- This function converts upper case alphabet into lower case.
Lcase(“VISUAL BASIC -6”)-Will display Visual basic-6
6. Ucase()-This function converts lower case alphabet into upper case
Ucase(“Visual basic-6”)-Will display VISUAL BASIC -6
“Aim high join sky”

You might also like