Cat Notes Final
Cat Notes Final
AUTOFILL FUNCTION
Auto-Fill Function:
- Extrapolation; Filling in next data point based on initial and current data point
- Best Fit Line
- Ignores X-values (Difference from trend, slope, intercept)
- Can be also used for Non-numbers
Drag across
To customize an autofill:
File Options (preferences) Advanced Custom List Add/Edit
Autofill
BASIC FUNCTIONS
Transpose
- To put a vertical role of numbers into horizontal role
Click right Paste Special Transpose
LOCK CELLS
Lock Cells
- Mixed Referencing:
1. Lock cell in Row: Put $ before Number (C$5)
Vertical Stays Prevents moving down
2. Lock cell in Column: Put $ before Alphabet ($C5)
Horizontal stays Prevents moving right
- Absolute Referencing:
Lock cell: $C$5
FORMULAS
Documentation:
- Description | Cell | Formula | Label (If any)
Annual Demand | B6 | <input> | Annual_Demand
#Orders/year | E6 | =B6/E6 |
Decimal Rounding
- Home
TREND FUNCTION
BLACK BOX
CONDITIONAL FORMATTING
See which is the profitable area
- Conditional Formatting Color Scales
SOLVER
Used to find MAX, MIN, BREAK EVEN
- Tools Solver
Set objectives = profit; Value of = 0, By Changing = Room Rate; Solve
GOAL SEEK
Find Optimal BREAK EVEN
- Set Target cell = Profit; To Value = 0; By Changing = Room Rate
IFERROR
IFERROR(Value, Value_if_error)
- Value The value, reference/formula to check for error
- Value_if_error The value to return if an error is found
TRADE-OFF-ANALYSIS
Used when decision variable values (prices) are changed to examine how
performance measures (profit) trade-off against each other
- To find: Optimal Price setting, Break-even Price
SENSITIVITY ANALYSIS
Used when uncontrollable parameter values (slope) are changed to examine how
sensitive performance measures (profit) are to parameter changes
- Highlight whole table Data What-if Analysis Data Table
- Row & Column Input cell: Cell you want to take reference from (Highlight)
Data Table
If change value is stacked in column then it will be column input, else is row
One-Variable DataTable
Two-Variable DataTable
IF(_ >/</=3, _, _)
- IF(Requirement, Value if True, Value if False)
- Logical test can be A1=“apple”, A1<=55, A1<C4
- Nested If: IF(Logical Test, IF(Logical Test 2, value if true, value if false), value if
false)
- If nested if too complicated:
AND(_=”_”, _ = “_”)
- Both requirements are met
- If both answers are correct, answer will be “TRUE”
- If both answers are wrong, answer will be “FALSE”
OR(_=”_”, _=”_”)
- One requirement is met
- If either one is correct, answer will be “TRUE”
- If both are wrong, answer will be “FALSE”
LOOKUP FUNCTIONS
- It will always search for the value in the leftmost column of the table
- 3 problems:
1. It is very vulnerable to data insertion
2. Lookup factor must occur before your return factor
3. Lookup will save unnecessary data
(Your RAM will be memory inefficient as all values would be copied)
- Always lock cells for VLookup
HLOOKUP(lookup_value, table_array, row_number, range_lookup)
- Always search for the lookup value in the top row
RANGE_LOOKUP
- Found in VLookup & HLookup Functions
- TRUE/Omitted Values must be in ascending order & the result is an
approximate value
- FALSE Values no need to be arranged in order, and the result is an exact
match. If not, it will be #NA
SUMIF FUNCTION
SUMIF(range, criteria, sum_range)
Range = Range of cells you want evaluated
Criteria = Selection criteria (MUST BE ENTERED AS TEXT STRING)
Sum_range = Actual cells to sum
- Returns the sum result
CONCATENATE() OR &
Concatenate text together to form longer text by using
CONCATENATE() or &
- Using concatenate: =CONCATENATE(“Michelle”,” “, “Cheong”)
- Using & sign: = “Michelle” & “ “ & “Cheong”
Excel automatically converts numbers to text when concatenating
SOLVER & LINEAR PROGRAMMING
Minimizing/Maximizing linear cost function subject to linear equality & inequality
constraints
4 possible results:
1. Unique optimal solution
2. Multiple optimal solution
3. Optimal cost is negative infinity for minimization / positive infinity for
maximization
4. No feasible solution
LP is made up of:
1. Decision Variables (Real, Binary, Integer)
2. Constraints (<=, =>, =) Capacity + Non-negativity constraints
3. Objective Function (Minimize/Maximize)
3. Highlight whole column Use (control + shift + enter) Array formula for:
# of Projects * Manpower Required automatically
4. Constraints Whole column of total needed <= Whole column of total
available
CAT WEEK 5
RAND()
- Returns a evenly distributed random real number between 0 & 1 (excluding 1)
- Represents a continuous uniform distribution where each number is likely to
occur
- To generate a random real number between continuous numbers A and B:
RAND()*(B-A)+A
- To generate a random real number between 2 non-continuous numbers A and B:
IF(RAND()<0.5, 1, 3)
RANDBETWEEEN(bottom, top)
- Same as =RAND()*(Max – Min) + Min
- Returns a random integer number defined between bottom and top (inclusive)
- Represents a discrete uniform distribution where each number is equally likely
LARGE(array, k)
- Large(Discrete)
- Returns the Kth largest value
SMALL(array, k)
- Small(Discrete)
- Returns Kth smallest value
PERCENTILE(array, k)
- Percentile(When dealing with cumulative raw data)
- Returns kth percentile in array (Interpolated value)
- Returns kth largest value
Exponential Distribution
- EXPONDIST(x, 1/mean, TRUE)
Cumulative: TRUE = CDF, FALSE = PMF
X = Value of interest
Mean = Average inter-arrival time
- Time between arrivals
Uniform Distribution
- Cumulative Relative Frequency = (x – min) / (max – min)
X = Data point
min, (max-min) are input parameters that are arbitrary values until solved by
solver
- Cumulative Uniform Distribution: (MAX-MIN)*RAND()+MIN
Poisson Distribution
- POISSONDIST(x, mean, TRUE)
x = No. of outcomes
mean = expected value
cumulative: TRUE = CDF, FALSE = PMF
- Possible outcomes UNLIMITED
Uniform Distribution
- Cumulative Relative Frequency = (x – min) / (max – min)
X = Data point
min, (max-min) are input parameters that are arbitrary values until solved by
solver
- Discrete Uniform Distribution: Old value*(1+ RANDBETWEEN(min,max)/100)
NOW()
- Returns the current date and time
YEAR(serial_number)
- Returns the year corresponding to the serial number
MONTH(serial_number)
- Returns the month corresponding to the serial number
DAY(serial_number)
- Returns the day corresponding to the serial number
HOUR(serial_number)
- Returns the hour corresponding to the seriel number
CAT WEEK 7
COUNTIF
COUNTIF(range, criteria)
Range = Range of cells from which you want to count cells
Criteria = input as text
- Returns the number of the cells that satisfy the evaluation criteria
Type 1
With reference to data fit*
Step one: sort data from smallest to largest using small function
Assign a value to each data using formula
If is empirical use: data point number/count of data points
Others use the Statistical formula
E.g.
# Data Sorted Empirical
=Small([Data array],[#]) =[#]/COUNT(Data array)
1 10 10 0.2
2 40 20 0.4
3 30 30 0.6
4 20 40 0.8
5 50 50 1
Type 2
Data array (can be randomly arranged)
1 1 1 1 1 2 2 2 3 3
3 3 3 4 4 5 6 6 6 6
Bin array
Bin Cumulative Frequency Cumulative Probability
=FREQUENCY([Data array], [Bin]) = Cumulative Frequency/total count
1 5 0.25
2 8 0.4
3 13 0.65
4 15 0.75
5 16 0.8
6 20 1
*Note: to use for lookup best to shift one down, I.e. bin 1 = 0, 2 = 0.25, 3 = 0.4, etc…