You are on page 1of 45

UGBA2863

Computer Application for Construction

Note 2_Spreadsheet Application:


Building Basic Formula
BUILDING BASIC FORMULA

 Cell Locking
 Rounding Numbers
 SUMIF function
 LOOKUP function
 Range Names
 Data Validation
 Dates and Date function
 SUM function
BUILDING BASIC FORMULA

 IF function
 AND function
 MIN function
 MAX function
 GROUP function
 CONCATENATE function
CELL LOCKING

 Cell Locking

To assign a constant refer area for the cell.

By lock it for horizontal or vertical or both
together.

=$A$1 =$A1
Lock all direction Lock vertical direction

=A$1
Lock horizontal direction
CELL LOCKING


$A$1*$C$1

A$1*$C1

$A1*C$1
ROUNDING NUMBERS

 Rounding Number

Round

Round up

Round Down

 Round

To “bump it up” or “bump it down” the number
to the specific decimal point.

Number when it is ≥ 5 will be “bump it up” and
< 5 will “bump it down”.
ROUNDING NUMBERS

 Round

Round (number, number digit)

Round (A1, 2):123.8563 

Round (A1, 1):123.8563 

Round (A1, 0):123.8563 

Round (A1, -1):123.8563 

Round (A1, -2):123.8563 
 Roundup

Almost similar with ROUND but it is
always “bump it up” the number.

Roundup (A1, 2): 456.6789

Roundup (A1, 1): 456.6789

Roundup (A1, 0): 456.6789

Roundup (A1, -1): 456.6789

Roundup (A1, -2): 456.6789
ROUNDING NUMBERS

 RoundDown

Almost similar with ROUND but it is
always “bump it down” the number.

Rounddown (A1, 2): 369.7889

Rounddown (A1, 1): 369.7889

Rounddown (A1, 0): 369.7889

Rounddown (A1, -1): 369.7889

Rounddown (A1, -2): 369.7889
SUMIF

 SUMIF

Summation of the value that have matching
specification


Syntax
SUMIF (range, criteria, sum_range)
SUMIF

 SUMIF

The range of cells you want evaluate.

Criteria is the criteria in the form of a number,
or expression in text that defines which cells
will be added. e.g. criteria can be expressed
as cement, grade 30, etc.

Sum_range  are the actual cells to add.
SUMIF

SUMIF(range, criteria, sum_range)


SUMIF(A:A, Cement, B:B)
SUMIF


SUMIF(A2:A5,">160000",B2:B5)

A B
1 Property Value Commission
2 100,000 7,000
3 200,000 14,000
4 300,000 21,000
5 400,000 28,000

Description

Sum of the commissions for property values
over 160000
LOOKUP

 LOOKUP

Enable to “look up” values from worksheet
ranges.

Allows to perform both vertical lookups and
horizontal lookups.

In a vertical lookup, the lookup operation starts
in the first column of a worksheet range.

In a horizontal lookup, the operation starts in the
first row of a worksheet range.
LOOKUP

 LOOKUP

VLOOKUP (vertical lookup)
 Lookup value in the column

HLOOKUP (horizontal lookup)
 Lookup value in the row


Syntax
LOOKUP (lookup_value, table_array,
col_index_num, range_lookup)
LOOKUP

 LOOKUP

lookup_value is the value that we want to look
up in the first column/row of the table range

table_array is the range in table array that
contains the entire lookup value

col_index_num is the table range in column of
data from which the value of the lookup
function is obtained

range_lookup is an optional argument.
True = approximate match, False= exact match
VLOOKUP

 TRUE
 The lookup range should normally be in
ascending order from top to bottom.
Vlookup will return the last row where the
range value is <= the lookup value.
If no rows meet this criteria then #N/A is
returned.
VLOOKUP

 FALSE
The lookup range can be in any order.
Vlookup will return a value from
the first row where the lookup value
= range value.
If no rows meet this criteria then #N/A is
returned.
VLOOKUP

No. RANGE B RANGE A LOOKUP_VALUE VLOOKUP VLOOKUP


(…,2,TRUE) (…,2,FALSE)

1 1 A 0 #N/A #N/A
2 3 B 2 A #N/A
3 3 C 2 A #N/A
4 5 D 5 E D
5 5 E 5 E D
6 7 F 8 G #N/A
7 7 G 8 G #N/A
VLOOKUP

A B
1 Diameter Weight (kg/m)
2 Y10 0.616
3 Y12 0.888
4 Y16 1.579
5 Y20 2.466
6 Y22 2.984
8 Y25 3.854
9 Y28 4.834
10 Y32 6.313
RANGE NAMES

 RANGE NAMES

To simply the cell range names be easily
understand.

It is convenient to select named cell range.
e.g. if cell for (A5000:A5049) contain the sale
information, wouldn’t the formula change to
name of (Sale Information).
RANGE NAMES

 Three ways to create named ranges:-


1. By entering a range name in the Name Box
2. By clicking Create From Selection in the
Defined Names group on the Formula tab
3. By clicking Name Manager or Define Name in
the Defined Names group on the Formulas
tab
RANGE NAMES

1. Using the Name Box



Simply select the cell or range of cells that you
want to name, click in the Name Box
RANGE NAMES


Name the following information as “site_data”


Find out the average of site data as named
RANGE NAMES

2. Using the Create from Selection Option


 Excel now knows to associate the names in
the first column of the selected range with the
cells in the second column.
RANGE NAMES

3. Using the Define Name Option


 Click Defined Names on the Formulas tab
RANGE NAMES

The Name Manager


 Is an easy way to edit or delete your range
names
 See a list of all range names
DATA VALIDATION

 DATA VALIDATION

Entering a lot of information may make an error.

Set up data validation by creating a
predetermined valid entries list.

Flag any invalid data that’s entered.

To make an easy entry for commonly use item.

To reduce the risk for error.
DATA VALIDATION

DROP-DOWN LIST
DATE

 DATE FUNCTION

Most commonly used month-day-year formats in
Microsoft Office Excel.
e.g. 7/16/2012, July 16, 2012

Microsoft Excel stores dates as sequential serial
numbers so they can be used in calculations. By
default, January 1, 1900 is serial number 1, and
January 1, 2008 is serial number 39448 because it is
39,448 days after January 1, 1900.
DATE

 WORKDAY

To work up the working day schedule by adding the
start day and total working day.

Default workday is five working days, from Monday
to Friday.


Syntax
WORKDAY (start_date, days, holidays)
DATE

 WORKDAY

start_date is a beginning date

days is the number of workdays indicated after
a given start date

holidays is an optional argument for the
function that allows you to exclude from the
calculation of any dates that are listed in a cell
range.
DATE FUNCTION

 WORKDAY
SUM

 SUM

Summation of all the value that had selected.


Syntax
SUM (number 1, number 2, ….)


Number 1 and Number 2 is the selected numeric
value.
SUM
IF

 IF

Logical test function to form an entry when a
condition is match and vice versa.


Syntax
IF(logical_test, value_if_true, value_if_false)
IF


logical_test is the numeric value that use as
the condition or test

value_if_true is the numeric value to display
when the condition is match

value_if_false is the numeric value to display
when the condition is not match

=IF(A1<5,”small”,”big”)
IF

=IF(F2<=cut1,price1,IF(F2<=cut2,price2,IF(
F2<=cut3,price3,price4)))
AND

 AND

Logical test function to form an entry when all
conditions are match and vice versa


Syntax
AND(logical 1,logical 2,…)


logical 1 and logical 2 is the numeric value or
item
AND

=IF(AND(value1<10,value2>20),"YES","NO")
MAX

 MAX

To find the maximum value in the selected cell
area.


Syntax
MAX(number 1,number 2,…)


number 1 and number 2 is the numeric value
MIN

 MIN

To find the minimum value in the selected cell
area.


Syntax
MIN(number 1,number 2,…)


number 1 and number 2 is the numeric value
GROUP

 GROUP

To group the tasks into a smaller and more
organized tasks that under a summary task.


Data -> Group


Data -> Ungroup
CONCATENATE

 CONCATENATE

To join more words together


Syntax
CONCATENATE(text 1,text 2,…)


text 1 and text 2 is the words, numeric numbers
or description
THANK YOU

You might also like