Mathematical Functions .: For Example
Mathematical Functions .: For Example
For example –
Logical function…..
A LOGICAL FUNCTION is a function that evaluates conditions and
returns a Boolean value: TRUE(1) OR FALSE (0). These functions
are commonly used in programming, mathematics, and
spreadsheets for decision-making.
Financial functions…..
1. Accrint - This function returns the accrued interest for a
security that pays periodic interest.
The syntax of this is as follows:
ACCRINT (issue, first_interest, settlement, rate, par, frequency,
basis, calc_method
Dates should be entered by using the DATE function, or as
results of other formulas or functions.
For example –
2. Cumipmt - CUMIPMT helps in calculating the cumulative
interest paid on a loan taken out, or earned on an investment
made.
The syntax of the function is:
CUMIPMT (rate, nper, pv, start_period, end_period, type)
rate: The interest rate per payment period (required).
nper: The total number of payment periods in the loan
(required).
pv: The present value of the loan (required).
start_period: The first period for which you want to calculate
cumulative interest (required).
end_period: The last period for which you want to calculate
cumulative interest (required).
type: Indicates whether payments are made at the beginning (1)
or end (0) of the period (optional, defaults to 0).
For example –
3. PV - calculates the present value of a series of future
payments.
The syntax of the function is :
= PV (rate, nper, pmt, fv, type)
For example –
4. FV - calculates the future value of an investment or series of
cash flows.
The syntax of the function is :
FV (rate, nper, pmt, pv, type)
For example –
For example –
For example –
Data entry, text management and
cell formatting….
Option - 2 fill the active cell with the contents of an adjacent cell
1. Select an empty cell and enter the value 10.
2. Go to the Home tab, click Fill in the Editing group, and choose
Series.
3. In the Series window, select the direction (row or column), set
the Step Value (e.g., 10) for incremental increases, and define
the Stop Value (e.g., 100).
4. Click OK to fill the series from 10 to 100 in steps of 10.
Import/Copy Data from other sources:
Another easy method for data entry is by copying or importing
data into Excel. This can be done using text files (e.g., .txt or .csv
files), which can be read with a text editor like Notepad in
Windows and easily imported into Excel.
To import the data from a text file following steps are important:
1. Create a data file in Notepad (Start > All Programs >
Accessories > Notepad).
2. Enter comma-separated values (CSV) in one line for each row,
with commas separating the columns.
3. The first line should have column names.
4. Enter data in subsequent lines, ensuring each value is
separated by a comma, even if it's blank.
5. Open a new Excel worksheet.
6. Go to the Data tab, click "From Text" under Get External Data.
7. Select the Notepad file (.csv) to import data into Excel, and it
will fill the respective rows and columns.
8. The data from Notepad can be saved as an Excel file, which
includes labels, values, dates, formulas, and data validation.
2. Data validation
Data validation ensures that only valid data is entered into a cell
by setting restrictions and displaying warning messages when
incorrect data is entered. These messages guide users on the
correct input, helping maintain data accuracy and
consistency.The different methods for data validation are as
follows:
Create a drop down list - A drop-down list allows users to
select from predefined options, preventing incorrect data
entry. For example, in an organization, you can limit
department names to Sales, Finance, R&D, Operations, HR,
and IT, or restrict qualifications to MBA, PhD, CA, MCA,
Architect, and MBBS. The Sex Code can be limited to "Male" or
"Female." Drop-down lists can be created in three different
ways for data validation.
58.
o For text length, you can limit the number of characters (e.g., a
invalid ones.
Some examples:
o Prevent duplicate entries (e.g., employee number or product
code).
o Limit the sum of values in a range (e.g., budget exceeding the
total amount).
o Prevent spaces before or after text using the TRIM function.
o Block dates falling on weekends or holidays using the
WEEKDAY function.
These techniques help ensure that data entered is consistent and
meets the specified criteria.
3. Data validation form
Data validation simplifies data entry by allowing users to select
values from drop-down lists or use a data input form. The data
input form is especially useful for large datasets, as it avoids
having to move between columns. To create a data input form,
ensure that all data names are entered in the first row of the
worksheet, as the form refers to these names.
To create an input data form in Excel, add the Form button to
the Quick Access Toolbar:
1. Click the arrow next to the Quick Access Toolbar and choose
More Commands.
2. Select All Commands, then find and add the Form button.
The data form displays column headers as labels in a dialog box
with text boxes for entering data. It supports up to 32 columns
and allows for adding, finding, updating, or deleting rows.
However, formulas cannot be modified through the data form.