Tuesday, September 7, 2010

Fundamental of C:

a. Character Set:

Character represents certain information. In C program there are three different types of character are used such as alphabets (A-Z, a-z), Numerical Character (0-9) and Special Symbols ({#, &, /, %,’,”,>,<.>=.<=<,=}).

b. C Tokens:

The fundamental smallest unit of program is known as C tokens. Different tokens used in the programs are mention below:

1. Identifier

2. Variable

3. Constant

4. Key Words

5. Data Type

6. Operators

7. Escape Sequences

8. Format Specifier

9. Comment Characters

1.Identifier:
Identifier is a particular name given to a particular data. This name is used to identify and use that data.
An Identifier name can contain alphabets, numbers and special symbols underscore (”_”). However, the first character should not be the number and there should not be any space between two characters of an identifier. For e.g.: roll_no, a_a,etc.

2.Variable:
It is an identifier whose value can be change during the program excitation. While defining the variable one should define the type of data store by the variable.

3.Constant:
Constant is an identifier whose value remains unchanged through out he program excitation. While defining the constant its data type also should need to be defined. Constant are of two type: i) Literal Constant and ii) Symbolic Constant
A literal constant is defined with-in the program statement.

Symbolic constant are defined after header files. It has the format of # define constant name and constant value. For e.g.: #define pi 3.14.
On the basis of value constant. Constant can be following type:

4.Integer Constant:
Binary Integer(& 0,10,11,111)
Octal Integer (& 574,237)
Decimal Integer (& 987,957,895)
Hexadecimal Integer( & A, BD12,DE100)

Float point Constant:
Only for decimal & a=3.14 and & b=477.42
Character Constant:
Character constant is used for defining the defining the signal characters as constant. Signal character should be in closed with in a signal quotation mark (‘ ‘). E.g. Char. Section =’A’
String constant:
Char name [ ]. = “Ram”;
A string is a collection of characters. For defining a string constant the constant value are in-closed with in a double quotation mark [“ “].

4.Key Words:
Key Words are the reserve words whose meaning and used is fixed. We cannot change the key words as a variable or constant. Key words are also called the library words. There are32 key words in the C program. For example: int, float, for, if, char, union, struct, static, etc.

5.Data Type:
Data type defines the type of the data to be used in the program. The programmer should identify the data type of the variable or the constant before they are used in the program. There are three types of fundamental data type.
They are i) int ii) float iii) char
i) Int.
This data type is used for defining integer numbers. When a variable is defined as integer, it reserves 2 bytes memory space. Other variables of int. are shorter int(1 byte), and long int(4 bytes). Integer can be signed and unsigned.
For e.g. int a, b, sum;
ii) Float.
Float is used for defining an identifier which can store fractional number. It reserves 4 bytes of memory space for each identifier. Other variables of float are double (8 byte) and long double (10 byte). For e.g. float pi= 3.14
iii) Char.
Char is used to define an identifier which can store one character data or a string. It reserves one byte for one character. A character can be defining as singe or unsigned.

6.Operators:
Operator is an symbol that defines the operation to be performed betweens operations. In a statement a + b (“+”) is the operator and it determines the operation addition. Operation can be monadic or dyadic. A monadic or unary operation requires only one operand for example: i++, i--, (+) (-) is the monadic. A dyadic requires two operands for e.g. a+b, a-b, where (+) (-) is dyadic.
Operators can be classified into different types. They are:
i)Arithmetic Operator
ii)Relational Operator
iii)Logical Operator
iv)Assignment Operator
v)Increment/ Decrement Operator
vi)Conditional Operator
vii)Bitwise Operator
viii)Special Operator

i)Arithmetic Operator:
Arithmetic Operator are used for simple Arithmetic and mathematical calculation. Some of the arithmetical operators are mention below:

Operators Meaning
+ Addition
- Subtraction
* Multiply
/ Divide
% Modulo Division ( gives reminder incase of int.

ii)Relational Operator:
Relational operators are use for comparing the value of two operators. It is mainly used in case of condition, some of the relational operates are mentions below:

Symbols Meaning
> Grater than
< Smaller than
>= Grater than or equal to
<= Less than of equal to
== Is equal to
!= Not equal to

iii)Logical Operators:
Logical operators are used to combine two or more relational operators. There are three logical operators. They are:
Symbol Meaning
&& Logical AND
Logical OR
! Logical NOT

iv)Assignment Operators:
Assignment operators is used for assigning a value or a result of an expression to a variable or a constant. Equal to is used for assigning the value(“=”), the value. C program also supports compound assignment operators. Such as +=, -=, *=, /=, etc.
For e.g. i =+1 sum=sum + 5 vop= exp
i +=1 sum+ = 5 variable operation= expression
It has the format of vop= exp
Where, v= variable, op= arithmetic operation and exp= expression.
Prod= prod * (x+2)
Prod*= (x+2)

v)Increment/ Decrement Operator:
There are two increment and decrement operators ++ and --. ++ adds one to the variable where as – subtracts the values of the variable.
i.e. i++ is same as
i= i+1
i+=1
It can be prefixed as post fixed. i ++ is post fixed and ++i is pre fixed. Ni an post fixed expression the operation before expression the operation before incensement / decrement is performed first. Thus, the values will be intersegment. Whereas the pre fixed the value is changed first and other operations are performed later.

vi)Condition Operator:
The condition operator (?:) is used for testing the condition. The result of the conditional operators will be true or false value. It has the format of expression 1, expression 2, and expression 3.
For e.g. x= a>b? a: b; same as if (a>b) x=a; else x=b;

vii)Bitwise Operator:
Bitwise operators are used to perform the calculation using binary digits of bits. Different bitwise operators used are:
S.N. Name Symbol
1 Bitwise AND &
2 Bitwise OR
3 Bitwise XOR ^
4 Bitwise Complement ~
5 Sift Left <<
6 Sift Right >>

viii)Special Operators:
The special operators used are comma operator( ,).

7.Format Specifier:
Format specifier is a symbol which contains % followed by a character e.g. (%d), Format specifier defines the type of the data used in the progam. It is mainly used in printf and scanf statement. Some of the specifier used are:
%d = Integer
%f = Floating number
%c = Characters
%s = String
%s = Unsigned and Integer

8. Comment Character:
Comment characters are used explain or to provide help conditions. It used within a program to explain the logic of the statement or multiply statement. The statement within comment character will not exclude from the program when the output is generated. For e.g.
/* int a,b;
a=5;
b=10;
sum= a+b; */
9. Input / output Statement:
Output:
Printf
Syntax: printf (“ format specifier “, arg1, arg2,…………);
Example: printf(“ %d%d”, a, b);
Input:
Scanf
Syntax: scanf(“format specifier “ , & arg1, arg2,………….);
Example: scanf(“%d%d”, &a, &b);

Monday, September 6, 2010

DOS Command

Introduction to DOS:
DOS is an acronym for Disk Operating System which may refer to any operating system but in practice we use MS-DOS. MS-DOS was originally developed by Tim Paterson in 1980. DOS is a 16 bit operating system which supports neither multi user nor multitasking. It has built in limitation of 1MB of memory system called EMSC (Expanded Memory Specification).

History of DOS:
Remarkable development in the field of DOS:

Date    Version    Features
1981    1.0    Original OS for IBM PC & Compatible. Supported only floppy disk drive.

1982    1.25    Supported for double sided floppy disk.

1983    2.0

    Developed for IBM PC/XT Microcomputer. First version to support hard disk drive.
Support for international symbols.
    2.11    Bug corrections.
    2.25    Extended character set support.
1984    3.0
    Appeared at about the same time as IBM PC/AT microcomputer, Support for 1.2 MB FDD & up to 32 MB H/D.
    3.1    Supports for PC-Network.
1986    3.2    Support for 3.5 inch floppy disk.
1987    3.3    Support for IBM PS/2 computer
1989    4.0    Menu driven user interface. Support for 1.44MB F/D & H/D over 32MB.
1990    5.0    Allowed excess to more memory & task switching.
1993    6.0    Including disk compression, Advanced memory & file management & virus protection.
1996    6.22    It is independent Machine which support various computer languages, pipes & I/O redirection, dynamic file allocation.

Introduction to MS-DOS
MS-DOS is a set of programs that manages the flow of information to and from various parts of computer system. Initially, MS-DOS was developed for Intel-based PCs that uses a command line user interface. It was developed originally for IBM PC in 1981; MS-DOS was marketed by IBM in a virtually identical version, called PC-DOS. Like every operating system, MS-Dos shows influence of UNIX; DOS commands for managing and navigating directories, for example, are almost identical to those in UNIX.

IBM and compatible computers uses MS-DOS as the control program. MS-DOS is an upgraded version of the famous operating system called CP/m, an acronym of Control Program for Microcomputers. MS-DOS is one of the most popular operating systems. It has been developed and distributed by Microsoft Corporation, USA. As mentioned earlier, it is a collection of programs mainly used in IBM PC, XT, AT and their compatibles.
   The three main files of MS-DOS are as follows:

IO.SYS
This is the program to handle input/output operations to user devices. It permanently resides in memory as long as the power is on. Even if the user changes the application software this program remains in the memory.

MS-DOS.SYS
This is a program use by application programs. It contains special sub-programs to make common operation easy for the program.

Command.com
This program accepts understand the commands the user enter using the above two files to give the desired result. In other words, it is a command interpreter.

The main features of MS-DOS are:
1.    It is a single-user, single programming environment.
2.    MS-DOS supports both floppy disk and hard disk.
3.    It can co-exist on a hard disk with other operating system, for example Novell LAN.
4.    It supports the hierarchical file system.
5.    It supports the dynamic file allocation.
6.    It supports pipes and Input/output re-directory.
7.    It supports a print spooler.
8.    It supports a variety of language (machine dependent)

Hardware requirement of MS-DOS:
1.    286 Processor required.
2.    RAM at least 640 KB.
3.    Motherboard for processing of command.
4.    Hard disk space up to 4MB.
5.    Keyboard
6.    Monitor(black and white/color)
   
Booting:
Loading of the system files (IO.sys, commamd.com and MS-DOS.com) into the memory by the boot record is termed as booting. There are two types of booting and they are:

Cold boot:
When the computer is at off state and the user puts the switch of the computer, the computer reads its RAM space and searches for the system files of DOS from the disk drive A: and drive C: .As soon as it finds the file; the files are resident to the computer’s memory. This is called cold boot.

Warm boot
When the user is working with the computer and wishes to reboot the computer, i.e. he wants to wipe the program in RAM and presses CRLT+ALT+DEL keys at the same time, the computer searches for system files in disks and loads them into the RAM. This process of booting the computer is called warm boot.

File:
A file on a computer is collection related information, just like file-folder being used in the offices. Each file for its identification has unique filename associated with it. On computers certain conversations are to be followed while giving filenames. Filenames are divided into parts; the first one is called filename and the second one is called an extension. In computer certain rules are to be followed. They are:

For filename:
1.    Character should not be more than 8.
2.    Blank space is not allowed.
3.    Numbers can also be used.

For extension:
1.    Character should be more than 3.
2.    No blank places are allowed.
3.    Both uppercase and lowercase can be used.
4.    Numbers can also be used.
5.    Extension is separated from filename by periods.

 Directory:
A directory is a table of contents for a disk. It contains the names of files, their size, last date of modification and the address of the file to locate where on the file is residing.

Sub-directory:
A directory inside a directory is called a sub- directory. A sub- directory is sometimes called a child directory. The directory that contains sub- directories is called a parent directory.

Root directory:  
While loading DOS into the computer memory, DOS automatically creates the directory called root directory (\).

Disk drive:
A disk drive is a device that reads data from a disk and copies it into the computer‘s memory and writes data from the computer‘s memory into disk drives
1.    Hard disk drive
2.    Floppy disk drive

Volume label:
Each can have a name called the volume label and a number called the volume serial number. MS-DOS displays the disks volume label and serial number above the list of files in every directory. We can change a disk’s volume label by using level LABAL COMMAND.
 
Default drive:
The disks drive, which the computer selects automatically for input/output operation when the user doesn’t specify, is called Default drive.

Path:
A path is the course that leads from the root directory of a drive to the file you want to use. For example; suppose that the drive C: has the following directory:

Wild Characters:
Wild cards are commonly used the quick function on or the execution of DOS commands. The two wild cards used are *(asterisk) &? (Question mark). The wild-cards combination and their meaning are given below:

*      Indicates any filename
. *    Indicates any extension
*. *     Indicates any filename with extension
?     Indicates any one character in filename
:     Indicates any drive to be specified, e.g. A:/>B: or B:/>A;
?/    Indicates options being added, A:/>DIR/P or A:/>DIR/W
?^    Indicates control sign
!    Indicates pipes

DOS COMMANDS:
MS-DOS Commands is a small program that does a specify task or the command that is issued after the DOS prompt (c:\ or a:\)is called DOS command. All MS-DOS commands are at prompt, at such as A>, B>, C>. There are two types of DOS commands.

1.    Internal Commands:
Internal Commands execute immediately because they are built in DOS. Internal commands are the parts of COMMAND.COM file. These commands are the parts of command interpreter files. These commands are called memory resident. They are loaded into the main memory during booting operation. E.g. CLS, DEL., EXIT.

COPY CON:
This command creates a text file in Ms-DOS, which is simply used to store general information.
Syntax: C:\>COPY CON <file name>
    E.g. C :\> Copy con partha
Type the content of the file Press F6 or “ctrl + z” key to save file. Press “Enter”
         
CLS: The full form of CLS is clear the screen. This command clears the screen and positions the cursor at the top of screen.
Syntax: C :/> CLS

TYPE: This command is used to see the contents of a file. It lets us to see what is stored in the file using copy con command.
Syntax: C :/> TYPE <file name> and press <Enter> key.
 E.g. type Partha

DIR: The full form of DIR is display directory. This command is used to display the list of the files and directories in the disks.
          Syntax: C :/> DIR

MD: The full form of MD is make directory. This command is used to create a directory in current dri9ve or directory.
Syntax: C :/> MD <directory name>
    E.g. C:\ MD Nikhil
           
CD: The full form of CD is change directory. This command is used to change the directory either to enter or to come of the directory.
Syntax: C:\>CD <directory name>
E.g. C:\ >CD Pentagon

RD: The full form is directory. This command is used to remove unnecessary directory from the disk. To use this command the directory must be empty
Syntax: C: />RD <directory name>
E.g. C:\>RD Nikhil

DATE: This is also an internal command. This command displays and allows us to change the Current date.
Syntax: C :/> date
       
TIME: This is used to display and change the current time.
Syntax: C :/> time
   
DEL: This command deletes or erases the unnecessary files from the disk.
Syntax: C :/> Del<file name>

COPY: Copy command copies file or a group of files from one location to another.
Syntax: C :/> copy <source file name> <target file name>

REN: The full form of REN is “rename”. This command is used to change or rename the name of file.
Syntax: C:\>REN <old file name> <new file name>
E.g. C :\> REN Pentagon Partha

VER: The full form of VER is version.  This command displays the Current version of DOS.
Syntax: C:\>VER
       
VOL: The full form of VOL is volume. This command displays the Current volume label.
Syntax: C :\> VOL

2.    EXTERNAL COMMANDS:
External commands are stored on the disks as the program files. These DOS commands require corresponding files with the extension of BAT or exe or Com. They must be read from disk before they are executed. E.g. EDIT, DISKCOPY, CHKDSK, MOVE, XCOPY, TREE, MORE, LABEL, ATTRIB, etc.

DELTREE: This command removes the unnecessary directory whether it is full or empty.
           Syntax: C :\> DELTREE< directory name>   
E.g. C:\>DELTREE Partha

SYS: This command is used to transfer the three system files (IO.SYS, MSDOS.SYS and COMMAND.COM) from one disk to another.
Syntax: C:\>SYS <target drive>
E.g. SYS A:

TREE: This command displays the disk free structure. It also shows the sub-directory and files.
Syntax: C:\>TREE

DISK COPY: This command copies all the contents of a disk to another disk.
Syntax: C:\>DISCOPY <source drive> < target drive>
E.g. C :\> DISKCOPY A: E:

UNDELETE: This is command recovers the deleted file or files. It is the reverse of delete command.
Syntax: C:\>UNDELETE < file name >
E.g. C :\> UNDELETE Nepal

MOVE: This command is used to change the directory name or move the file or files from one location to another.
Syntax: C:\>MOVE < old directory name > < new directory name >
E.g. C :\> MOVE chudal A:

XCOPY: This command is used to copy a directory from one location to another. It copies all the files and subdirectories of a directory.
Syntax: C:\>XCOPY < source directory > < target directory >

EDIT: It is used to edit the text file.
Syntax: C :\> EDIT <directory name>
E.g. C:\>EDIT Hero

ATTRIB: It is used to make the file read only and hidden.
Syntax: Attrib<filename>

FORMAT: It is used to prepare a floppy di9sk or hard disk for storage of information.
Syntax: FORMAT A:

CHKDISK: It is used to check the disk.
Syntax: CHKDISK <drive letter>
E.g. CHKDISK

SCANDISK:  it is used to check the file structure, directory structure, file allocation table and also scans the disk surface for bad cluster.
Syntax: Type SCANDISK and wait for a result.

CONCLUSION:
Hence, disk operating system is the program, which helps in the smooth running and operation of the computers. DOS is the program, which controls all the computer equipments and allows checking itself. It also co-ordinates the computer just like the conductor co-ordinates the orchestra. It helps in the control and co-ordination of peripheral devices such as printer, disk, drives etc. It monitors the use of resources of the machine, it helps the application program to execute its instructions, it helps the user to develop programs and deal with any faults that may occur in the computer and informs the user.

Hence, we can conclude that disk operating system is the very essential program of a computer, which serves as a communicator between the user and the computer; it is the first layer of software in a computer system without which a computer cannot work.

Excel

Introduction to Excel
Microsoft Company developed this program, so it is known as Microsoft Excel. It is a spreadsheet program where we can insert data, process them, sort them, filter them and create chart from the data etc., in this program we can perform various kinds of Mathematical, financial, statistical, engineering calculations. Using this program we can create bill, voucher, salary sheet, income& expenses statement, mark sheet, purchase book, sales book, balance sheet etc.

Cell reference:
There are 65536 rows and 256 columns in one worksheet. The first cell is labeled as ‘A1’ (column as A and Rows as 1) or R1C1.

Workbook:
The file of Ms-Excel is called workbook and its extension is .XLS. It is collection of one or more worksheets. Workbook is like a binder and every worksheet as a page in a binder. Each workbook contains 16 worksheets.

Worksheet:
The large working area of a workbook is called worksheet. There are 65,536 rows and 256 columns a worksheet. It is a page of workbook.

Grid line: 
The line that makes or separates a cell in a worksheet of a workbook is called grid line.

Cell:
The intersection between row and column is called Cell. Each cell contains 32000 Character.

 Title bar              Menu bar     Formula bar   Column heading

                            Sheet Tabs    Status bar         Scroll bar

To start Microsoft Excel 2000/XP
1.    Click on Start cotton.
2.    Click on Programs.
3.    Click on Ms Excel.
                                 Or
4.    Click on Start
5.    Click on Run
6.    Then a dialog box appears
7.    Type Excel
8.    Click on OK.

TO CREATE A NEW WORKBOOK:
1.    Click on file menu
2.    Click on new
3.    The a dialog box will appears
4.    To create a new, blank workbook, click a General tab.
5.    Choose Workbook icon
6.    Click on OK button.

TO SAVE A WORKBOOK:
1.    Click on File menu.
2.    Click on Save command
3.    In the Save in list, select the drive and folder where you want to save the workbook.
4.    [If you want to save the workbook in a new folder, click on Create New folder]
5.    In the File name box, type a name for the workbook.

TO CLOSE A WORKBOOK:
1.    Click on File menu.
2.    Click on Close command.
3.    To close all open workbooks without exiting the program, hold down SHIFT and click close all on the File menu.

COPY OF TO SAVE A WORKBOOK:
1.    Open the workbook you want to make a copy of.
2.    Click on file menu.
3.    Click on Save as.
4.    In the File name box, type a new name of the workbook
5.    Click Save.

TO OPEN A WORKBOOK:
1.    Click on file menu.
2.    Click on open command.
3.    In the Look in list, click the drive, folder or location that contains the workbook you want to open and then locate a ‘double-click’ the folder that contain the workbook.
4.    Select the required workbook name.
5.    Click on Open.
6.    Double click the workbook you want to open.

TO PROTECT WORKBOOK BY PASSWORD:
1.    First open the workbook.
2.    Click on File menu.
3.    Click on Save as command.
4.    Then a dialog box will appear.
5.    Click on Tools of dialog box and click on General option.
6.    Type the password in Password to open box.
7.    Click on ok bottom.
8.    Then a confirm password box will appear.
9.    Type the same password Modify again.
10.    Click on ok button.
11.    Click on save button.

USING PAGE SETUP COMMAND:
1.    This command is used to set margins, paper source, paper size, page orientation, and other layout            options for the active file.
2.    First open the workbook of which you want to set page.
3.    Click on File menu.
4.    Click on Page Setup command.
5.    Then a dialog box will appear.
6.    Click on page tab.
7.    Choose the required orientation. (Portrait or landscape)
8.    Choose any paper size.
9.    Click on margin tab.
10.    Set the required margin for Top, Bottom, and Left, Right, Header& footer.
11.    Choose other required options.
12.    Click on OK button.


TO SEE THE PRINT PREVIEW OF WORKSHEET:
1.    Click on file menu.
2.    Click on Print Preview command.
3.    Now you can see the preview of your worksheet.
4.    Click on Next button to see the next page of sheet.
5.    Click on Previous button to see the previous page.
6.    Click on zoom button to reduce or enlarge the page size.
7.    Click on setup button to open the setup dialog box.
8.    Click on Margins tab to set the margin.
9.     Click on close button to close the preview.

TO SET PRINT AREA:
1.    Select the required part of sheet which you want to set as print area.
2.    Click on file menu.
3.    Click on Print area command.
4.    Choose Set print area.
5.    [To clear print area click on File menu, choose print area and click on clear print area.]

TO PRINT A WORKSHEET:
1.    Open the worksheet which you want to print.
2.    Click on File menu.
3.    Click on Print command
4.    Then a dialog box will appear.
5.    Choose the print name from Name box.
6.    Choose any option from Print range criteria. [All, Page].
7.    Choose any option from Print what criteria. [Selection, entire workbook etc.]
8.    Choose the required number of copies to print.
9.    Click on other required options and Click on OK button.

TO SELECT ENTIRE ROW:

1.    Move the mouse pointer over the row number which you want to select.
2.    Press the mouse button once.

TO SELECT ENTIRE COLUMN:
1.    Move the mouse pointer over the column label which you want to select.
2.    Press the mouse button once.

TO SELECT THE ENTIRE WORKSHEET:
1.    Move the mouse pointer over the top left corner of worksheet.
2.    Press the mouse button once.

USING CUT/ COPY/PASTE:
1.    Select the required cells which you want to copy or move.
2.    Click on Edit menu.
3.    Click on copy or Cut command as required
4.    Then place the active cell at the required cell
5.    Click on Edit menu. .
6.    Click on Paste Command
7.    [You can also use the shortcuts to copy, cut and paste as in Ms Word such as Ctrl+ c, Ctrl+ x, Ctrl+ v]

TO FILL SERIES OF NUMBERS AND DATA:
To Fill Numbers.
1.    Put the active cell at the required cell.
2.    Type First and Second number in First and Second cell.
3.    Then select the both cell.
4.    Move the mouse pointer over the bottom right corner of second cell.
5.    Drag the fill handle as required.

To Fill Date
1.    Put the active cell at the required cell.
2.    Type Sunday or January in First cell.
3.    Then move the mouse pointer over the bottom right corner of first cell.
4.    Drag the fill handle.

USING CLEAR COMMAND:
1.    Select the required cells which you want to clear.
2.    Click on Edit menu.
3.    Click on Clear command.
4.    Then click on All option to clear everything with formatting, contents etc,
5.    Click on formats option to clear only the formats.
6.    Click on Contents option to clear only the contents.
7.    Click on Comments option to clear the comments only.

TO DELETE CELLS, ROWS, AND COLUMNS:
1.    Select the required cells or rows or columns which you want to delete.
2.    Click on Edit menu.
3.    Click on Delete command.
4.    If you have selected cells then a dialog box appears.
5.    Choose any option. [Shift cells left, shift cells up etc.]
6.    Click on Ok.

TO DELETE WORKSHEET:
1.    Select the required sheet name which you want to delete.
2.    Click on Edit Menu,
3.    Click on Delete sheet command.
4.    Then a message box will appear.
5.    click on ok

TO MOVE OR COPY SHEETS:
1.    Select the required sheet name.
2.    Click on Edit menu.
3.    Click on Move or Copy sheet command.
4.    Then a dialog box will appear
5.    Choose any option from before sheet list.
6.    [If you want to create a copy of the selected sheet click create a copy option]
7.    Click on OK.

USING FIND AND REPLACE COMMAND:
Find:
1.    Click on Edit menu.
2.    Click on Find Command
3.    Then a dialog box will appear.
4.    Type a required text or data in find what box.
5.    Click on Find next button.

Replace:
1.    Click on Edit menu
2.    Click on Replace command
3.    Then a dialog box will appear.
4.    Type the required text or data in find what box which you want to replace.
5.    Type the replacing text or data in Replace with box.
6.    Then click on Find next.
7.    Click on “Replace” or “Replace All” as required.

USING GOTO COMMAND:
1.    Click Edit menu.
2.    Click on Go to command.
3.    Then a dialog box will appear.
4.    Type the cell name in reference box.
5.    Click on OK.

BAR TO SHOW OR HIDE FORMULA:
1.    Click on View menu.
2.    Click on Formula bar Command to show or hide.

TO ADD HEADER AND FOOTER:
1.    Click on View menu.
2.    Click on Header & Footer command.
3.    Then a dialog box will appear.
4.    Click on Custom header.
5.    Put the cursor at the required section (left, center, right).
6.    Type the header Name.
7.    Click on Ok.
8.    Then click on Custom Footer button.
9.    Type the footer Name in the required section.
10.    [You can also insert page number, date, time, filename etc as header & footer]
11.    Click on OK.

TO VIEW THE WORKSHEET IN FULL SCREEN:
1.    Click on View menu.
2.    Click on Full screen command.
3.    Now your worksheet will appear in full screen.
4.    To close full screen, click on Close full screen tool.

TO CHANGE THE VIEW OF WORKSHEET:
1.    Click on View menu.
2.    Click on Zoom command.
3.    Then a dialog box will appear.
4.    Choose any one option. (200%, 100%, 50%, 75% etc.)
5.    Click on OK.

TO INSERT CELLS:
1.    Select the required cells where you want to insert new blank cells.
2.    Click on Insert menu.
3.    Click on Cells command.
4.    Then a dialog box will appear.
5.    Choose any one option. (Shift cells right, shift cells down & insert entire Rows, Columns).
6.    Click on Ok

TO INSERT ROWS:
1.    Select the required rows where you want to insert new rows.
2.    Click on Insert menu.
3.    Click on Rows command

TO INSERT COLUMNS:
1.    Select the required columns where you want to insert new columns.
2.    Click on Insert menu.
3.    Click on Columns command.

TO INSERT WORKSHEET:
1.    Select the sheet name where you want to insert new worksheet.
2.    Click on Insert menu.
3.    Click on Work sheet command.
4.    [Now a new worksheet will appear in the sheet tabs]

TO INSERT CHART:
1.    First type the data for chart.
2.    Select the data range.
3.    Click on insert menu.
4.    Click on Chart command.
5.    Then a chart wizard box will appear.
6.    Choose any chart type and chart subtype form standard type tab. [For more chart types click on Custom types tab]
7.    Click on Next button.
8.    Choose the required option from series in [Rows or Columns]
9.    Click on Next button.
10.    Type the chart title in Chart title box.
11.    Type the X and Y category titles.
12.    Click on Axes tab and choose the required options.
13.    Click on Gridlines tab and choose the required options.
14.    Click on Legend and choose any option.
15.    Click on Data labels and Data table tab and choose the required options.
16.    Click on Next button.
17.    Now choose the required location to place chart.
18.    Click on Finish button.
19.    [If you want to change the chart type, chart options, chart location etc then select the chart, click on Chart menu and choose the required options.]

Using Formula:
1.    Put the active cell at the required cell where you want to use formula.
2.    Type (=) equal sign, [Formula always begins with (=) sign]
3.    Enter the formula with cell references and operators
4.    Press Enter Key

Functions Operators:
1.     +           Addition
2.      -           Subtraction
3.     *           Multiplication.
4.     /           Division
5.     %           Percentage.
6.     =           Equal comparison.
7.     <           Less than
8.     >           Greater than.
9.     <=           Less than or equal to
10.     >=           Greater than or equal to
11.     <>           Is not equal to
12.     And/ Or/ Not    Logic.

Using Function wizard:
1.    Place the cursor in cell where you want to insert Function.
2.    Click on Insert menu.
3.    Click on Function Command.
4.    Then a function wizard box will appear.
5.    Select the required Function category.
6.    Choose any Function name. (Sum, average, min, max etc.)
7.    Click on Ok.
8.    Then a dialog box will appear.
9.    Type the cell references in Number box.
10.    Click on Ok button.

To insert comment:
1.    Select the required cells where you want to insert comment.
2.    Click on Insert menu.
3.    Click on Comment command.
4.    Then a comment box appears.
5.    Type the required comments.

To show or Hide comments:
1.    Select the required cells that contain comment.
2.    Press opposite mouse button.
3.    Choose show comment/Hide comment.

To Edit or Delete comment:
1.    Select the required cells that contain comments.
2.    Press opposite mouse button.
3.    Choose Edit comments or Delete comments.

To insert Clipart:
1.    Click on Insert menu.
2.    Click on Picture command.
3.    Then a Clipart box will appear.
4.    Click any category.
5.    Choose any picture and press the mouse button.
6.    Choose Insert clip
7.    Then close the clipart box.

To insert Auto shapes:
1.    Click on Insert menu.
2.    Click on picture command.
3.    Click on Auto shapes.
4.    Then an auto shapes toolbar will appear.
5.    Choose any shape from toolbar.
6.    Press the mouse button and drag it to draw auto shapes.

To insert word art:
1.    Click on Insert menu.
2.    Click on Picture command.
3.    Click on Word art.
4.    Then a word art style box will appear.
5.    Choose any style.
6.    Click on Ok.
7.    Now type the required text.
8.    Click on Ok.

To insert Object (Paint brush picture):
1.    Click on Insert menu.
2.    Click on Object command.
3.    Then a dialog box will appear.
4.    Choose Paint brush picture.
5.    Click on Ok.
6.    Now draw any picture you like.

Insert Hyperlink To:
1.    Select the required cells or object where you want to insert hyperlink.
2.    Click on Insert menu.
3.    Click on hyperlink command.
4.    Then a dialog box will appear.
5.    Click on File of Browser for option.
6.    Choose the required file.
7.    Click on Ok.
8.    Again click on Ok.

To format numbers:
1.    Select the required cells.
2.    Click on Format menu.
3.    Click on Cells command.
4.    Then a dialog box will appear.
5.    Click on Number tab.
6.    Choose Number category.
7.    Choose the required decimal places.
8.    If needed choose the Use thousand separators option. Click on Ok.

To change the number in currency format:
1.    Select the required cells.
2.    Click on Format menu.
3.    Click on Cells command.
4.    Then a dialog box will appear.
5.    Click on Number tab.
6.    Choose Currency tab.
7.    Choose the required decimal places.
8.    Choose any currency symbol.
9.    Click on OK.

To change the number in Percentage format:
1.    Select the required cells.
2.    Click on Format menu.
3.    Click on Cells command.
4.    Then a dialog box will appear.
5.    Click on Number tab.
6.    Click on Percentage tab.
7.    Choose the required decimal places.
8.    Click on OK.

To merge and center data:
1.    First type the long text in a single cell.
2.    Select the required cell range.
3.    Click on Format menu.
4.    Click on Cells command.
5.    Then a dialog box will appear.
6.    Click on Alignment tab.
7.    Choose center from Horizontal and Vertical alignment.
8.    Click the three options of text control criteria. (Wrap text, shrink  to fit, merge cells)
9.    Click on Ok.
10.    [Put the Cursor at the required text and op pressing spacebar unit the text comes to the next line.]

To change the data orientation:
1.    Select the required cells.
2.    Click on Format menu.
3.    Click on Cells command.
4.    Then click on Alignment tab.
5.    Choose the required degrees.
6.    Click on Ok.

To format font:
1.    Select the required cells.
2.    Click on Format menu.
3.    Click on Cells command.
4.    Then click on Font command.
5.    Choose the required font, font style size, font color, underline style, effects.
6.    Click on Ok.

To apply borders & patterns:
1.    Select the required cells.
2.    Click on Format menu.
3.    Click on Cells command.
4.    Then click on Borders tab.
5.    Choose any boarder style and Color.
6.    Click on Outline and inside option.
7.    Then click on Patterns tab.
8.    Choose any color.
9.    Click on OK

To format row:
1.    Select the required row.
2.    Click on Format menu.
3.    Click on Row command.
4.    Then choose the required options, (Height, Auto fit, hide, unhide)

To format column:
1.    Select the required columns.
2.    Click on Format menu.
3.    Click on column command.
4.    Then choose the required option. (Width Auto fit selection, hide, un hided)

To Rename Sheet:
1.    Select the required sheet name which you want to rename.
2.    Click on Format menu.
3.    Click on Sheet command.
4.    Click on rename command.
5.    Type the name for sheet.
6.    Press Enter key.
 To Hide/Unhide sheet:
1.    Select the required sheet name.
2.    Click on format menu.
3.    Click on Sheet command.
4.    Click on Hide/Unhide.

To change the background of sheet:
1.    Click on format menu.
2.    Click on Sheet command.
3.    Then click on Background.
4.    Now a dialog box will appear.
5.    Choose any background file.
6.    Click on Insert button

To delete background:
1.    Click on Format menu.
2.    Click on Sheet command.
3.    Click on Delete background.

To Auto format cells:
1.    Select the required cells.
2.    Click on Format menu.
3.    Click on Auto format command.
4.    Then a dialog box will appear.
5.    Choose any format style.
6.    Click on Ok.

Using Conditional formatting command:
1.    Select the required cells.
2.    Click on format menu.
3.    Click on Conditional formatting command.
4.    Then a dialog box will appear.
5.    Choose any condition. (Cell value is less than, greater than, equals to etc.)
6.    Type the value.
7.    Click on Format menu.
8.    Choose any Formatting.
9.    Click on Ok.
10.    If you want to add other conditions also click on add button and set the other condition.
11.    Click on Ok.
 Using Auto correct command:
1.    Click on Tools menu.
2.    Click on Auto correct command.
3.    Then a dialog box will appear.
4.    Click the required options.
5.    Type the common mistakes in Replace box.
6.    Click on Add button.
7.    Click on Ok.

To protect worksheet:
1.    Click the worksheet name which you want to protect.
2.    Click on tools menu.
3.    Click on protection Command.
4.    Click on Protect sheet.
5.    Then a dialog box will appear.
6.    Choose the required options, (Contents, Objects etc)
7.    Type a password.
8.    Click on Ok.
9.    Again type the same password.    
10.    Click on Ok.

To protect workbook:
1.    Click on Tools menu.
2.    Click on Protection command.
3.    Click on Protect workbook.
4.    Then a dialog box will appear.
5.    Choose the required options(Structure, Window)
6.    Type a password.
7.    Click n Ok.
8.    Again type the same password.
9.    Click on Ok.

Using Goal Seek command:
1.    On the Tools menu, click Goal seek.
2.    In the Set cell box, enter the reference for the cell that contains. The formula you want to resolve.
3.    In the two value box, type the result you want.
4.    In the by changing cell box, enter the reference for the cell that contains the value you want to adjust. This cell must be referenced by the formula in the cell you specified in the Set Cell box.
5.    Click on Ok button.
 Using Auditing command:
1.    Click on Tools menu.
2.    Click on Auditing command.
3.    Then click on the required options. (Trace precedents, trace dependents, trace errors)

To remove trace arrows:
1.    Click on Tools menu.
2.    Click on Auditing command.
3.    Click on Remove all arrows.

To Show/Hide gridlines, row & columns header, scrollbar, sheet tabs etc.:
1.    Click on tools menu.
2.    Click on Options command.
3.    Then a dialog box will appear.
4.    Click on View tab.
5.    Choose the required options to from windows options.
6.    [Gridlines, row & column headers, Horizontal scrollbar, and sheet tabs etc.]

To Sort Data:
1.    Select the required cells.
2.    Click on Data menu.
3.    Click on Sort command.
4.    Then a dialog box will appear.
5.    Choose the required column name for sort by option.
6.    Choose Ascending or Descending order. [If you want to sort multiple columns click on then by option and choose the required column name.
7.    Choose Header row or No header row from my list has option.
8.    Click on Ok.

To Auto filter data:
1.    Select the required columns.
2.    Click on Data menu.
3.    Click on Filter command.
4.    Then click on Auto filter.
5.    Now click on drop down arrow list of column and choose the required options. (All, Top 10, custom etc)

To remove Auto Filter:
1.    Click n Data menu.
2.    Click on Filter command.
3.    Click on Auto filter.

Creating Data form to edit data:
1.    Select the required cell.
2.    Click on Data menu.
3.    Click on Form command.
4.    Now a data form appears.
5.    Click new button to add new record.   Type the data.
6.    To move to the next field, press TAB key.
7.    When you finish typing data, press ENTER to add the record.
8.    Click on Find next button to find the next records a Find prev button to find the previous records.
9.    Click on Delete button to delete the displayed record.
10.    Click Close to close the data form.


Worked out examples:
1.    Mark – sheet
Name    English    Math    Science    Nepali    Account    Total    Percent    Result    Division    Remarks
Partha Chudal    78    56    82    76    85                       
Ajay Ku. Sah    89    65    78    68    90                       
Shristy Dhungel    78    98    89    75    89                       
Rajan Khadka    56    56    23    45    54                       
Samjhana Khakuel    65    65    78    68    90                       
Pradeep Budhathoki    98    89    75    89    90                       
Suju Payani    89    78    68    90    54                       
Kajal Pradhan    78    56    56    23    45                       
Nitu Yadav    89    54    23    45    36                       
Umesh Sujakhu    78    54    56    56    23                       
                                                 
Formulae:
Total:                                                
=Sum(English: Account)                                      
                                                 
Percent:                                                
=total/no. Of subjects                                      
                                                 
Condition for result                                      
All subjects>=32    Pass                                      
Otherwise         Fail                                      
=IF(AND(English>=32,Math>=32,Science>=32,Nepali>=32,Account>=32),"Pass","Fail")
                                                 
Condition for division                                      
Percent>=60         First                                 
Percent<60,Percent>=50    Second                                 
Percent<50,Percent>=40    Third                                 
Otherwise              ***                                 
=if(and(Percent>=60),"First",if(and(Percent<60,Percent>=50),"Second",if(and   
(Percent<50,Percent>=40),"Third","***")))                            
                                                 
Condition for Remarks:                                 
Percent>=80         A grade                                 
Percent<80,Percent>=60    B grade                                 
Otherwise              C grade                                 
Do yourself                                           


2.    Basic Salary Sheet
Name    B. Salary    Traveling allowance10
%    House rent allowance12
%    Medical allowance10
%    Gross salary    Income tax    Provident fund10
%    Net salary
Partha Chudal    7500                                 
Ajay Ku. Sah    6000                                 
Shristy Dhungel    3500                                 
Rajan Khadka    3000                                 
Samjhana Khakuel    2500                                 
Pradeep Budhathoki    4500                                 
Suju Payani    4000                                 
Kajal Pradhan    6500                                 
Nitu Yadav    12000                                 
Umesh Sujakhu    9000                                 
   

Formulae:                                      
                                       
Traveling All. 10%                                 
=10%*B=Salary                                 
                                       
House rent all.12%                                 
=12%*B=Salary                                 
                                       
Medical All. 10%                                 
=10%*B. Salary                                 
                                       
Gross Salary                                 
=sum (B. Salary: Medical all.)                            
                                       
Condition for Income tax:                            
B. Salary>=9000         10%*B. Salary                       
B. Salary<9000,B.Salary>=5000    5%*B. Salary                       
B. Salary<5000,B.Salary>=3000    2%*B. Salary                       
Otherwise              0                       

=if(and(B.Salary>=9000),10%*B.Salary,if(and(B.Salary<9000,B.Salary>=5000),5%*B.Salary,if(and   
(B. Salary<5000,B.Salary>=3000),2%*B.Salary,0)))                       
                                       
Provident Fund:                                 
=10%*B. Salary                                 
                                       
Net salary                                 
=Gross salary-Income tax-Provident fund                       
3.    Tele-Communication Sheet
Name    Total Calls    Rental Charge    Extra charge    Total charge    Vat 10%    Govt. tax10%    Net charge
Partha Chudal    250    150                       
Ajay Ku. Sah    300    150                       
Shristy Dhungel    90    150                       




Formulae:   
=if(and(total call<=100),0,2*(total call-100))
 
Condition for Extra charge
total calls<=100
0                       
otherwise    Per call Rs.*(total call-100)                  
Per call Rs. 2                            
        
Total charge   
=Rental charge+ Extra charge
         
Vat 10%   
=10%*Total charge   
         
Govt. tax10%   
=10%*Total charge   
         
Net charge   
=total charge+ Vat+ Govt. tax

Some Important Formulas:        
To calculate Average value             
=average(data range)                  
                        
To calculate Maximum Value             
=max(data range)                  
                        
To calculate minimum Value             
=min(data range)                  
                        
To calculate Total                  
=sum(data range)                  
                        
To calculate Standard deviation        
=stdev(data range)                  
                        
To calculate Square root of any number        
=sqrt(n)                       
                        
To calculate power of the value        
=power(X, n)                  
where X is main value, n is power        
e.g. =power(5,2)=25                  
                        
To insert current date             
=today()                       
                        
To insert current date and time        
=now()                       
                        
To calculate the value of sin, cos, tan, log etc   
=sin(n)                       
=cos(n)                       
=tan(n)                       
=log(n)                       
                        
To convert radians to angle             
=degrees(angle)                  
                        
To count the values or numbers        
=count(data range)                  
                       
Practical Portion:
Temperature Conversion of Yearly Temperature
Month    Celsius    Fahrenheit
January    -40    =9/5*Celsius + 32
February    20   
March    24   
April    28   
May    30   
June    0   
July    34   
August    32   
September    37   
October    24   
November    100   
December    37   

Overall Statement of a Factory
Sales         100000
Less : Manufacturing Cost        
Material    12000   
Labour        18000   
Total M Cost         =Material+ Labour
Contribution         =Sales-total M. Cost
Less : Sales and Administrative        
Advertisement    10000   
Administrative        15000   
Total S & A          =Advertisement+ Administrative
profit (Loss)             =contribution-Total S & A


Product Price    Rs.40        
Product Cost    Rs.25        
Overhead    15%        
    Quarter 1    Quarter 2    Quarter 3    Quarter 4
Units sold    Rs.10,000    Rs. 20,000    Rs.30,000    Rs.40,000    
Sales Revenue    Units sold * Product price
Cost of Sales    Units sold * Product cost
Gross Margin    Sales - Cost


Sales Force    Rs. 8,000    Rs. 8,000    Rs.8,000    Rs. 8,000
Advertisement    Rs. 10,000    Rs. 10,000    Rs.10,000    Rs.10,000
Corp. Overhead    Sales Revenue * Overhead
Total Costs    Sales Force + Adv. + Corp. Overhead   
Profit    Gross margin - Total Cost
Profit Margin    Profit / Sales Revenue

Income Statement of Gemini Trade Link

Income
Some Functions in excel:

CONCATENATE
Joins several text strings into one text string.
Syntax: CONCATENATE (text1, text2...)
DOLLAR:
This function converts a number to text using currency format, with the decimals rounded to the specified place.
Syntax: DOLLAR (number, decimals)
TRIM:
Removes all spaces from text except for single spaces between words
Syntax: TRIM (text)
EXACT
Syntax: EXACT (text1, text2)
Text1    is the first text string.
Text2    is the second text string.
LEFT
LEFT returns the first character or characters in a text string
Syntax: LEFT (text, num chars)
RIGHT
RIGHT returns the last character or characters in a text string
Syntax: RIGHT (text, num chars)
LOWER
Converts all uppercase letters in a text string to lowercase
Syntax: LOWER (text)
REPT
Repeats text a given number of times, Use REPT to fill a cell with a number of instances of a text string
Syntax: REPT (text, number times)
COUNTIF:
Counts the number of cells within a range that meet the given criteria
Syntax: COUNTIF (range, criteria)
PROPER:
Capitalizes the first letter in a text string and any other letters in text that follow any character other than a letter, converts all other letters to lowercase letters
Syntax: PROPER (text)
AVERAGE:
Returns the average (arithmetic mean) of the arguments
Syntax: AVERAGE (number1, number2...)
PERCENTRANK:
Returns the rank of a value in a data set as a percentage of the data set, this function can be used to evaluate the relative standing of a value within a data set. For example, you can use PERCENTRANK to evaluate the standing of an aptitude test score among all scores for the test
Syntax: PERCENTRANK (array, x, significance)
MOD:
Returns the remainder after number is divided by divisor. The result has the same sign as divisor
Syntax: MOD (number, divisor)
SUM
Adds all the numbers in a range of cells
Syntax: SUM (number1, number2 ...)
SUMIF:
Adds the cells specified by a given criteria
Syntax: SUMIF (range, criteria, sum_ range)
SIN:
Returns the Sine of the given angle
Syntax: SIN (number)
Number is the angle in radians for which you want the sine.
TRUE
Returns the logical value TRUE
Syntax: TRUE ( )
Log:
Returns the logarithm of a number to the base you specify
Syntax: LOG (number, base)
COS:
Returns the cosine of the given angle
Syntax: COS (number)
TAN:
Returns the tangent of the given angle
Syntax: TAN (number)
POWER:
Returns the result of a number raised to a power
Syntax: POWER (number, power)
PRODUCT:
Multiplies all the numbers given as arguments and returns the product
Syntax: PRODUCT (number1, number2...)

CONCLUSION:
Hence MS Excel is word processing software with complete flexibility of mathematical, logical and word operation. It also helps you to perform sting operation. It has been widely used in offices and other professional fields.