You are on page 1of 62

Allowing Only Certain Values in a Cell

This involves creating one or more rules that dictates the type of data or range of values
can enter into a cell. If the user tries to enter something that breaks a rule you can confi
display an error message and reject the entry. This can be done by configuring the DATA
TOOL.

XYZA TRADING
652 University Homes Washington Drive Invoice Number:
Leagzpi City Invoice Date:

Sold To: Ship Tp:

Ship Via:

Quantity Description

Signed

Follow these steps to configure a data validation rule that allow only certain values in a cell:
1) Select the cell to which you want to apply the data validation rule.
2) Choose Data, Data Vlaidation. Excel displays the Data Validation dialog box, shown in Fig
3) In the setting tab, open the Allow list and then select List
4) In the Source box, you have two choices:
* If the list of allowable values exist in a worksheet, specify either the range or a range
that contains the list. (Precede the range or range name with an equal sign.)
* Type the allowable values directly into the Source box, separated by commas, as sho
Figure 2.

Figure 2
Use the Data
Validation dialog
box to set up a data
validation rule that
allows only certain
values in a cell or
range.

box to set up a data
validation rule that
allows only certain
values in a cell or
range.

5) If you want the user to be able to select from the allowable values using a drop-down list
leave the In-Cell dropdown check box activated.

6) To prevent blank entries, click to deactivate the Ignore Blank check box.

7) Click the Input Message tab

8) If you want a pop-up box to display when the user selects the restricted cell or any cell
within the restricted range, leave the Show Input Message When Is Selected check
box activated. Use the Title and Input Message boxes to specify the messagethat display
For example, you can use the message to tell the user that a value for the cell must
be chosen from the drop-down list.

9) Click OK to apply the data validation rule. See Figur 1 as example

type of data or range of values that a user
that breaks a rule you can configure Excel to
e done by configuring the DATA VALIDATION

INVOICE

LBC
Figure 1
When you set up
a list-based
Unit Price validation
Total rule,
Excel displays a
list of the
possible choices
for the cell.

Subtotal:
Tax / Vat:

Total:

only certain values in a cell:
tion rule.
lidation dialog box, shown in Figure 2

cify either the range or a range name
me with an equal sign.)
, separated by commas, as shown

at a value for the cell must example . ank check box. the restricted cell or any cell e When Is Selected check specify the messagethat displays.le values using a drop-down list.

.

GOBOLEO .

q1 /15 q2/20 5 8 15 QT/50 4 49 100 .

LEO Err:512 .

40 26 B-047 6.95 50% 19. VLOOKUP( ) searches the first column (I38:J45) for the largest value that is les equal to 20. in this case. and so on) range_lookup This is the Boolean value that determines how Excel searches fo lookup_value in the first column. the function looks for the largest valu less that look_value (this is the default). or a reference .00 50 B-111 27. col_index_num is the column numbe table that contains the data you want returned (the first column the lookup column -.26 --. Units Code List Price 40% Net Price TOTAL Ordered 20 D-178 17. the second column is is 2.is 1. 20 is the value in ce which represents the number of ubnits purchased. a string. LOOKUP FUNCTION 1 VLOOKUP(lookup_value.50 5 D-017 17. table_array.VLOOKUP ( ) searches for the first exact match for loo If no exact match is found. col_index_num) The range_lookup argument is omitted.70 108.is greater tha VLOOKUP ( ) therefore moves to the second column (because we specified col_num t of the table (cell J41) and grabs the valu there (40%). FALSE --. You can use a range refer col_index_num If VLOOKUP ( ) finds a match.75 149.00 215. The first such cell is I41 (because the value in I41 --. and the range (I39:J45) is the disc table.25 .95 40% 359.950. TRUE --.95 42% 180.VLOOKUP ( ) searches only for the first exact match NOTE: If range_lookup is TRUE or OMITTED.95 42% 1.00 11. you must sort the values in the first column in 2 VLOOKUP(lookup_value.95 20% 89. which means VLOOKUP ( ) searches for the la value that is less than or equal to the lookup value.75 53. Table_array This is the table to use for the lookup.95 40% 248.397. col_index_num [range_lookup]) lookup_value This is the value you want to find in the first column of table_arr you can enter a number.85 25 D-178 9. table_array.42 1000 C-098 19.50 838.970.

83 Generating Identification Code in the Worksheet UPPER(LEFT(A2.95 46% 353. while random cent values numbers between 0 and 100. not all integers of random numbers begin at 0. Below is the expression to use for this case: 2) INT (RAND ( ) * ( n .82 232. use the following expression: 1) INT (RAND( ) * n) INT ( ) Function rounds a number down to the nearest integer n generate random numbers greater than or equal to 0 and less th INT(RAND()*24 Application: 1 0 8 12 16 16 Of course.05 211.95 44% 695.00 250 B-047 2.5) LEFT extracts characters from the left of the value in A2 UPPER ( ) function converts themto uppercase 5 refers to the first 5 charaters from the left of the value in A2 beringuela.50 131. The more general scenario is when you numbers greater than or equal to some number m and less than some number n. When you need to generate random numbers greater than or equ and less than n. Rey Belir Generating Random Numbers in the Worksheet RAND FUNCTION For example.50 442.95 46% 737. the following formula produces random test scores greater than or equal to 40 and INT (RAND ( ) * ( 100 . random hour values requires numbers between 0 and 23.46429 2.00 417.67857 2.69 119.40) + 40) Application: 49 55 40 44 .m) + m) For example.95 46% 387. 100 A-182 6.

if you want to sort the data on last name. CALLEJA Michael DAWAL Jobert D. 78 41 77 87 60 70 52 85 3) RANDBETWEEN FUNCTION Excel offers a much easier way to generate random numbers between two values : the RANDBET which lets you specify a lower bound and an upper bound and then returns a random integer betw RANDBETWEEN (bottom. Excel henerates a random greater than or equal to bottom) top the largest possible random integer. You can do that using the FIND FUNCTION LEFT(C131. top). The first step is to lo space that separates the first and last names. (That is. BRAVO Jovelyn B. which means 2 you recalculate or reopen the worksheet. you might want to extract the first and last name into separate c Similarly. you would need to extract the last name into The method for extracting the first names or last names requires two steps. If you're preparing the data for a database or for a mail merge. To enter a static random n 28 RANDBETWEEN(bottom.60) Note: Application: 45 RAND() and (RANDBETWEEN() are volatile functions. Excel henerates a random n less than or equal to top) RANDBETWEEN(0.C131)-1) Application BANARES Dennis M BITOON Jordan B. (That is. top) bottom the smallest possible random integer. press F9 to evaluate the function a 45 press Enterb to place the random number into the cell as numeric l 6 15 Extracting a Person's First Name or Last Name Your worksheet might contain a column with people's full names.FIND(" ". ILAO Jay Allan LOZARES Madelyn MARTINEZ Arvin Clark .

column of table_array. an use a range reference or a name.26 --. specified col_num to be 2) Discount Schedule Units Discount 0 20% 6 40% 26 42% 51 44% 101 46% . ow Excel searches for t exact match for lookup_value. (I39:J45) is the discount schedule gest value that is less than or . in the first column in ascending order ) searches for the largest 20 is the value in cell B36. s the column number in the ed (the first column --. and so on).that is n is is 2. s for the largest value that is he first exact match for lookup_value.is greater than 20).

251 48% 501 50% the value in A2 Jmae Bernabe Jmae berin random cent values require greater than or equal to 0 qual to 0 and less than n. Below is the or equal to 40 and less than 100 . scenario is when you want er n.

type =RAND() or aluate the function and return a random number. which means that their value changes each time er a static random number in a cell. then he cell as numeric literal eparing the data for export to ame into separate columns.alues : the RANDBETWEEN FUNCTION. random integer between them henerates a random number that is enerates a random number that is tions. t the last name into its own column. The first step is to locate the D FUNCTION .

col_index_n . table_array.IFERROR(VLOOKUP(lookup_value.

.

.

table_array. Sarah Jane CARUL COLUSO. Richelle ebuenga CARRA CARULLO.FERROR(VLOOKUP(lookup_value. Regine ABEJU ARIVE. Julie Anne Bilason BUNAO CARRANZA. col_index_num [range_lookup])) ABEJURO. Mary Grace Ascano ARIVE BERINGUELA. Erika Cotara COLUS . John Edward BUENO BUNAO. Rey Belir BERIN BUENO.

.

.

Erika Cotara COLUS .COLUSO.

Calculating the Principal and Interest for a Loan

Any loan payment has two components: principal payment and interest
Interest charges are almost front-loaded, which means that the interest
is highest at the beginning of the loan and gradually decreases with eac
This means, conversely, that the principal component increases gradual
payment. How can you tell what the principal and interest components
given period of a loan? You can use the PPMT ( ) and IPMT ( ) FUNCTION

PPMT ( rate, per, nper, pv [ , fv] [ , type])

IPMT ( rate, per, nper, pv [ , fv] [ , type])

rate The fixed rate of interest over the term of the loan.
per The number of the payment period (where the fisrt pay
the last payment is the same as nper.
nper The number of payments over the term of the loan.
pv The loan principal
fv The future value of the loan(the default is 0.)
type The type of payment. Use 0 (the default) for end-of-pe
use 1 for beginning-of-period payments.
NOTE:
When working with loan and investment formulas, always remember t
out -- such as loan payments and deposit to investments --- are negat
amount you receive --- such as loan principal amount and investment

CAUTION:
To ensure that your loan and investment models return accurate results, be sure
when dealing with the interest and term. For example, if you have an annual in
expressed in years and you want to calculate the monthly principal and interest
interest rate by 12, as shown in figure 3.

LOAN DATA
Interest Rate (Annual) 0.18

000.41) Figure 3 this worksheet uses the PPMT ( ) and IPMT( ) functions to break out the principal and interest components of a loan payment Figure 5 shows a worksheet that applies these functions to a loan.$B$39*12. The d (column E) and interest (Column F) components of the loan for the first period.0 Principal 100. the principal portion increases.00 Monthly Payment (4.992.$B$40) .D67. Note that with each periuod. and PPMT($B$38/12. Periods(Years) 2.

pmt The amount deposited in the investment each period (t pv The loan principal type The type of payment. Use 0 (the default) for end-of-pe use 1 for beginning-of-period payments. To calculate the future value of an inv rate The fixed rate of interest over the term of the loan. purpose o money (the present value) in an instrument of time. nper The number of payments over the term of the loan. To figure this out. For example.) type The type of payment. You do that in Excel by using the PV function: rate The fixed rate of interest over the term of the loan.25. After all. table below shows a worksheet maximum amount that you can borrow -.Determining How Much You Can Borrow If you know the current interest rate that your bank offers for loans. pmt the periodic payment fv The future value of the loan(the default is 0. nper The number of payments in the term of the loan. you need t present the value. you might then is that you can borrow under those terms. you want t you afford payments of 500 per month.862. you m values in the FV ( ) Function. suppose that the current loan rate is 6 percent. Note: Becasue both the amount deposited per period (the deposit (the pv argument) are sums that you pay out.using the followin A Loan Data Interest Rate (Annual) Periodic (Years) Payment (Monthly) Maximum Principal Calculating the Future Value of An Investment Just as payment is usually the most important value for a loan calculatio most important value for an investment calculation. Use 0 (the default) for end-of-pe use 1 for beginning-of-period payments. .78 -. after which you end greater) amount the future value. whe how much you can afford each month for the payments.

FV (rate. you use the FV Function with t FV (rate. In this case. Note: Becasue both the amount deposited per period (the deposit (the pv argument) are sums that you pay out. pmy. nper. you invest a lumpsum and let it gr rate and term.000 invested at 5 A The Future Value of a Lump Sum Interest Rate (Annual) Term (Years) Deposit per Period Initial Deposit Deposit Type Future Value Another common investment scenario is to make a series of deposits ov depositing an initial sum. you m values in the FV ( ) Function. In this case. type) For example. table below shows the future value of 10. In the simplest future value scenario. 0 . pv. type) . nper. 0 . without adding any deposits along the way. pmt argument set to 0.

you plug in a value that represents either a curren rate. you should invest an intial amount and the this scenario. you need to specify all the FV ( ) function arguments (exce shows the future value of an investment with a 10. the function as the rate argument. In this case. if you could invest the lease payment and get.For example.000 initial deposit an over 10 years. . th option is simply the purchase price.) Assume for now that the purchased equipment has no market value at t equipment has no residual value at the end of the lease. lease payme For the discount rate. you determine the form of the PV ( ) function: =PV(discount.00 invested eac that the interest rate and term are both converted to monthly amounts A The Future Value of a Series of Deposits Interest Rate (Annual) Term (Years) Deposit per Month Initial Deposit Deposit Type Future Value For best investments results. say. table below shows the future value of 100. A The Future Value of a Lump Sum Plus a Series of Deposits Interest Rate (Annual) Term (Years) Deposit per Month Initial Deposit Deposit Type Future Value Deciding Whether to Buy or Lease Another common business trend is whether to purchase equipment outr decision. you figure the present value of both options and then compare option being the one that provides the lower present value. For example . For lease option. lease term. (ignore com depreciation and taxes.

415. Assuming a discount rate value of the present value of the leasing option? Table below shows a w 5.00 a month over 2 years. A Buying Versus Leasing Discount Rate Term (Years) Lease Payment (Monthly) Future Value of Equipment Purchase Price Present Value of Leasing Option Present Value of Buying Option . include the residual value as Table below shows the worksheet with a future value added. H present value for the purchase option: = purchase price + PV(discou That is.09. the present value of the purchase option is the price plus the pre future market value.For example. suppose that you can either purchase a piece of equipmen equipment for 240. (For the lease option. This means that purchasing the equipment is the less costly A Buying Versus Leasing Discount Rate Term (Years) Lease Payment (Monthly) Future Value of Equipment Purchase Price Present Value of Leasing Option Present Value of Buying Option What if the equipment has a future market value (on the purchase side) side)? This wont make much difference in terms of which option is bette equipment raises the two present values by about the same amount.

.

.

respectively.41) (1. els return accurate results.$B$40) over the term of the loan. for a Loan principal payment and interest charged. t formulas.D38.are negative values.00) . be sure to use consistent units example. if you have an annual interest rate and a term the monthly principal and interest.$B$39*12. always remember that amounts you pay it to investments --. eriod payments. you need divide the Period Principal Interest 1 (3. PPMT($B$38/12. and ncipal amount and investment payouts. which means that the interest component d gradually decreases with each payment. ent period (where the fisrt paymwent is 1 and ame as nper.500. component increases gradually with each cipal and interest components are for any PMT ( ) and IPMT ( ) FUNCTIONS. s over the term of the loan. oan(the default is 0.492.) se 0 (the default) for end-of-period payments.

63) (73.09) 17 (4.47) 24 (4.61) 3 (3. The data table shows the principal onents of the loan for the first ten periods And for the final principal portion increases.44) 4 (3.762.$B$40) .230.32) (1.64) 22 (4.94) (146.447.173.15) 21 (4.64) 20 (4.22) (754.113.053.09) 7 (3.706.774.69) 6 (3.33) 12 (4.845.544.53) 13 (4.285.08) (939.59) 18 (4.82) 14 (4. 2 (3.11) 19 (4. and the interest portion decreases.934.993.366.058.94) (1.32) (626.66) 8 (3.82) (560.08) 23 (4.651.394.80) (690.26) (358.61) 16 (4.72) (1.597.38) 9 (3.80) (1.33) (218.59) (816.19) 15 (4.703.175.D70.301.498.000.565.238.47) 5 (3. IPMT($B$38/12.78) (100.17) (1.22) 11 (4.77) (288.116.918.03) (1.97) (1.30) (494.340.818.431.88) (878.634.00) (19.75) (1.$B$39*12.84) hese functions to a loan.24) 10 (3.77) (426.817.19) (999.876.

and the payments.00) 25. use the FV ( ) Function: over the term of the loan. the investment each period (the default is 0). you want the loan paid off in 5 years. after which you end up with a new (and. s in the term of the loan. given a fixed interest 0. term. s over the term of the loan. and monthly paymnet. ulate the future value of an investment. you might then wonder what the maximum amount To figure this out. n rate is 6 percent.78 =PV(B2/12.B3*12.that is.using the following formula: =PV(B2/12. and you able below shows a worksheet that calculates the maximum 25. eriod payments. 5 (500. purpose of an investment is to place a sum of nt of time. using the PV function: over the term of the loan.78 -. you need to solve for the principal -. oan(the default is 0.) se 0 (the default) for end-of-period payments. the future value is usually the alculation.B4) Note: B You can use the PV ( ) function to calculate the maximum principal that you can borrow.06 rate. hopefully. eriod payments. se 0 (the default) for end-of-period payments.B3*12.your bank offers for loans.B4) the formula used vestment tant value for a loan calculation. when you want to have the paid off. After all.862. t deposited per period (the pmt argument) and the initila ms that you pay out. you must enter these as negative .862.

without u use the FV Function with the pv argument set to 0.00 0.05 functiuon's pmt argument to 0.B5.288.95 =FV(B2.00 (10.000 invested at 5% over 10 years B Note: When calculating the future value of an initila lump sum deposit.00 16. set the FV ( ) 0. you must enter these as negative invest a lumpsum and let it grow according to the specified interest ts along the way.B6) the formula used o make a series of deposits over the term of the investment. In this case.000. you use the FV ( ) function with the ype) e value of 10. 10.t deposited per period (the pmt argument) and the initila ms that you pay out. type) .B3.B4.00) 0.

B4. Notice onverted to monthly amounts because the deposits occurs monthly. In V ( ) function arguments (except type).32 =FV(B2/12.00 31. 0. To make such a oth options and then compare the results.00 series of deposits.B6) the formula used er to purchase equipment outright or to lease it. 6% per year.000.B4.528. lease term.998.000 initial deposit and 100 in montly deposits at 5% Note: B The table uses the full FV ( ) a Series of Deposits function syntax to calculate the 0. the present value of the purchase ease option. In this case. For example. lease payment) that represents either a current investment rate or a current loan e lease payment and get.00 function's pv argumnet to (100.00) 0. with the preferable wer present value. (100.B5. you would plug 6% into .00 15.B5. table below with a 10.23 =FV(B2/12. you determine the present value using the following nt.00 invested each month at 5% over 10 years. say.05 value of a lumpsum plus a 10.00) (10.B3*12. set the FV ( ) 10.B6) the formula used nvest an intial amount and then add to it with regular deposits. B Note: sits When calculating the future value of a series of 0.00) 0.05 deposits. (ignore complicating factors such as ment has no market value at the end of the term and that the leased nd of the lease.B3*12.00 0.e value of 100.

00 buying versus leasing (240.19 =B5+PV(B2/12.00) 5.000.00) equipment 0.0. note how you calculate the purchase price + PV(discount rate.000.B4.00 5.00 6.00 now or lease the rs.00 a future market or residual (240.887.000.) uture value added.000. what is the present option? Table below shows a worksheet that calculates the answer: e equipment is the less costly choice.06 compare buying versus leasing equipment that has 2. Assuming a discount rate of 6% percent.00 5.B3*12.00 t value (on the purchase side) or a residual value (on the lease terms of which option is better because the future value of the by about the same amount. (1.415. B Note: Using the PV ( ) 0.B5) the formula used 5.09 =PV(B2/12.B3*12.00) value.000. include the residual value as the PV ( ) function's fv argument.27 5.06 Function to compare 2. B Note: Using the PV ( ) function to 0.302. purchase a piece of equipment for 5.B4) the formula use . 0. However. future value) option is the price plus the present value of the equipment's n. term.

.

.

41) .992.$40) Total (4.

992. .41) (4.41) (4.41) (4.41) (4.992.41) (4.992.41) (4.992.992.992. (4.41) (4.41) (4.41) (4.41) (4.992.41) (4.41) (4.992.41) (4.41) (4.41) (4.992.992.41) (4.992.41) (4.992.992.817.84) ases.41) (4.41) (4.992.992.992.992.992.992.41) (4.992.992.41) (4.992.992.41) (119.41) (4.

and m amount hat is.id off.B4) at st sed ly the a sum of ully. unction: e initila ative . and you B3*12.

without .e initila ative ed interest on with the of an () formula used ent.

In ble below t 5% ) e the the formula used e such a rable t the leased chase ollowing ent loan ug 6% into .ars. Notice rs monthly. the formula used posits.

) ) the formula used .e the present e answer: the formula used lease of the ulate the value) ument.

.

.

.

.

26 .00) Maximum Principal 6.Number 5 B Loan Data Interest Rate (Annual) 0.501.00 Payment (Monthly) (300.10 Periodic (Years) 2.

00) Deposit Type 0.00 Deposit per Period 0. Number 4 B The Future Value of a Lump Sum Interest Rate (Annual) 0.00 Future Value 115.927.03 Term (Years) 5.00 Initial Deposit (100.41 .000.

140.01 Number 2 The Future Value of a Lump Sum Plus a Series of Deposits Interest Rate (Annual) 0. Number 3 B The Future Value of a Series of Deposits Interest Rate (Annual) 0.05 Term (Years) 5.000.00 Future Value 16.00 Future Value 93.00) Initial Deposit 0.50 Deposit per Month (500.00) Deposit Type 0.00 Deposit Type 0.06 Term (Years) 2.00 Deposit per Month (1.26 .000.673.00) Initial Deposit (20.

00 Present Value of Leasing Option 17.948.00) Purchase Price 25.000.00 Number 1b Buying Versus Leasing Discount Rate 0. Number 1a Buying Versus Leasing Discount Rate 0.10 Term (Years) 3.593.00) Future Value of Equipment (800.00 Present Value of Leasing Option 17.00 Lease Payment (Monthly) (560.00) Future Value of Equipment 0.00 Purchase Price 25.00 Lease Payment (Monthly) (560.355.39 .09 Present Value of Buying Option 25.000.10 Term (Years) 3.48 Present Value of Buying Option 25.000.

.

.

2 6 8 2 6 8 2 6 8 15 10 4 15 10 34 4 12 8 5 3 32 5 2 4 13 11 30 .

1 FILL HANDLE 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 .

FILL HANDLE .

1 1 2 123456 3 2 4 5 3 6 7 4 8 76.00 9 5 10 11 6 12 13 7 14 15 8 16 17 9 18 19 10 20 21 23 25 27 29 31 33 35 37 39 .900.

95 737.95 89.00 19.95 248.50 1.95 1.75 100 A-182 6.75 248.70 1000 C-098 19.95 353.950.05 .00 695.82 387.95 19.50 5 D-017 17.00 50 B-111 27.6785714 2.950.4642857 2.50 737.00 26 B-047 6.95 695.Units Ordered Code List Price 40% Net Price TOTAL 20 D-178 17.397.397.00 359.70 180.82 119.05 353.95 359.95 180.00 250 B-047 2.95 387.75 89.50 131.75 25 D-178 9.

Discount Schedule Units Discount 0 20% 6 40% 26 42% 51 44% 101 46% 251 48% 501 50% .

16 5 20 22 11 19 3 7 .