Exam study Flashcards
Simple IF statements
IF (x,y,z)…
- x: criteria
- y: output if true
- z: output if false
Nested IF statements (2016+)
=IFS(logical_test1, value_if_true1, [logical_test2, value_if_true2], [logical_test3, value_if_true3])
If error
=IFERROR(value, value_if_error): returns a value you specify if a formula evaluates to an error. If the formula does not result in an error, IFERROR returns the result of the formula.
EOMONTH vs. EDATE
-EOMONTH(start_date, months): outputs the last day starting from a specified month
-EDATE(start_date, months): outputs a specific day starting from specified month
YEARFRAC
Returns proportion of year between two given dates, start_date and end_date.
HLOOKUP
- H means horizontal, searches HORIZONTALLY for look-up value
=HLOOKUP(lookupvalue, table range, row #) : searches for lookup value across, then returns the # row you specify
VLOOKUP
- V means vertical, searches UP AND DOWN for look-up value
=VLOOKUP(lookupvalue, table range, column #): searches for lookup value up and down, then returns the # column you specify
OFFSET
Give a reference point, # of columns to go across, # of rows to go down
MATCH
Combine with HLOOKUP and VLOOKUP and OFFSET to change static references to non-static
COLUMN/ROW (3 functions)
-ROW()/COLUMN(): outputs row/column # of cell you’re typing in
-ROW(reference)/COLUMN(reference) :row/column # of selected cell
-ROW(array)/COLUMN(array): # of rows/columns in an array
Need to do data tables and XLOOKUP
SUMPRODUCT
=SUMPRODUCT(array1, array2…): multiplies corresponding components in two or more arrays, and returns the sum of these products.
TRUE/FALSE
-TRUE: not a number
-TRUE * 1.0: a number (1 * 1 = 1)
- TRUE * TRUE: a number (1 * 1 = 1)
SUMPRODUCT + TRUE FALSE
Only will sum up the columns that match the criteria (ex: SUMPRODUCT(A1:A8=C8,
SUMIF/SUMIFS
SUMIF(range, criteria, sum_range)
SUMIFS(sum_range, criteria_range1, criteria1, criteria_range2, criteria2…)
- Allows for multiple criteria