You are on page 1of 18

Data Validation Drop Do

SR Pro Jan Feb Mar 3 Criteria Summing Source Data


SR1 Pro2 0 1 0 SR Pro Month SR
SR2 Pro2 1 0 0 SR3 Pro2 Mar SR1
SR3 Pro1 0 1 0 SR2
SR1 Pro2 0 1 0 SR3
SR2 Pro1 0 1 0
SR3 Pro2 1 0 0
SR1 Pro1 0 0 1
SR2 Pro2 1 0 0
SR3 Pro1 0 0 1
SR1 Pro2 0 0 1
SR1 Pro1 0 1 0

In Excel 2003, Conditional Formatting can be found in the Format menu, then click in the
1) first textbox and point to "Formula is", then create a TRUE FALSE formula

In Excel 2007, Conditional Formatting can be found in the Styles group on the Home Ribbon,
then point to New Rule, then click on "Use a formula to determine what cells get
2) formatting", then create a TRUE FALSE formula

To highlight a row the key is to highlight column reference, but not the row reference. We
used this:
3) =AND($A1=$A$16,$B1=$B$16)

To highlight a column the key is to highlight row reference, but not the column reference.
We used this:
4) =A$1=$C$16

To highlight an intersection, we had to use a combination of mixed cell references. We used


this:
5) =AND($A1=$A$16,$B1=$B$16,A$1=$C$16)
6) For the basic of cell references, see these videos: Excel Basics #8: Cell Referenc
7) Excel Basics #9: Mixed Cell R
Data Validation Drop Down List
Source Data
Pro Month
Pro1 Jan
Pro2 Feb
Mar

Excel Basics #8: Cell References Relative & Absolute


Excel Basics #9: Mixed Cell References in Formulas
The formulas with the functions INDIRECT and OFFSET requires
recalculation every time the sheet recalculates, even if data has
1) not changed. This matters for big spreadsheets

0 in row or column number for INDEX can yield a whole column


or row, respectively, in place of using INDIRECT and OFFSET
2) functions.
3)
4)

Sum w Sum w Sum w Sum w


Month OFFSET INDIRECT array INDEX
Jun 4 4 4 4

Apr May Jun


0 2 1 Month
1 2 1 Jan
0 1 1 Feb
1 0 1 Mar
1) Sum Conditionally From Varying Columns

This formula is faster calculating and shorter to type:

=SUMPRODUCT(--(Sheet2!$M$2:$M$11=$B$3),--(Sheet2!
$N$2:$N$11=$B$4),INDEX(Sheet2!$A$2:$M$11,0,E2))

Than this formula:

=SUMPRODUCT((Sheet2!$M$2:$M$11=Sheet1!$B$3)*(Sheet2!
$N$2:$N$11=Sheet1!$B$4)*(Sheet2!$A$1:$B$1=MonthCell)*Sheet2!
$A$2:$B$ 11)
2)

The formulas with the functions INDIRECT and OFFSET requires


recalculation every time the sheet recalculates, even if data has not
3) changed. This matters for big spreadsheets
SUMIFS function is a lot faster than SUMPRODUCT when adding
4) conditionally

Conclusion:
1) Try to avoid volatile functions such as INDIRECT and OFFSET.
2) Double negative to convert TRUEs and FALSEs to 1s and 0s is faster
than multiplying
3) 0 in row or column number for INDEX can yield a whole column or row,
respectively, in place of using INDIRECT and OFFSET functions.
4) When possible, use SUMIFS because it is much faster than other
5) options
6) For more about the SUMPRODUCT function, see this video: Excel Formula Efficiency 1: SUMPRODUCT function 12 E
7) For more about the SUMIF function, see this video: Excel Magic Trick #203: SUMIF function formula 21 Exam
8) For more about the SUMIFS function, see this video: Excel Formula Efficiency 4: SUMIFS & COUNTIFS Are Fas
9) For more about the INDIRECT function, see this video: Excel Name Trick #7: INDIRECT function, Names and LOO
10) For more about the OFFSET function, see this video: Excel Magic Trick #78: OFFSET function
8) For link at the Mr Excel Message Board: http://www.mrexcel.com/forum/showthread.php?t=37
y 1: SUMPRODUCT function 12 Examples
SUMIF function formula 21 Examples
y 4: SUMIFS & COUNTIFS Are Fast
DIRECT function, Names and LOOKUP
OFFSET function
m/forum/showthread.php?t=375267
SUMPRODUCT
SUMIF
SUMIFS
INDIRECT
OFFSET
SR Pro Month Sales SR Pro Jan Feb Mar
SR1 Pro2 Feb 1 SR1 Pro2 0 1 0
SR2 Pro2 Jan 1 SR2 Pro2 1 0 0
SR3 Pro1 Feb 1 SR3 Pro1 0 1 0
SR1 Pro2 Feb 1 SR1 Pro2 0 1 0
SR2 Pro1 Feb 1 SR2 Pro1 0 1 0
SR3 Pro2 Jan 1 SR3 Pro2 1 0 0
SR1 Pro1 Mar 1 SR1 Pro1 0 0 1
SR2 Pro2 Jan 1 SR2 Pro2 1 0 0
SR3 Pro1 Mar 1 SR3 Pro1 0 0 1
SR1 Pro2 Mar 1 SR1 Pro2 0 0 1
SR1 Pro1 Feb 1 SR1 Pro1 0 1 0

Database Setup SR Pro Month Not Set Up As a Database


Method 1 1 Fast 1 SR2 Pro1 Feb Method 1 1 Fast 1
Method 2 1 Fast 2 Method 2 1 Fast 2
Method 3 1 Fast 3 Method 3 1 Fast 3
Method 4 1 volatile function
Method 5 1 volatile function
Data Validation
Drop Down List
Source Data
SR Pro Month
SR1 Pro1 Jan
SR2 Pro2 Feb
SR3 Mar
1) SUM Hours Worked In 1 Formula (Payroll & Time)
2) For more about array formula basics, see this video series: 05 Excel Series: Array Formulas
3) Use the key strokes Ctrl + Shift + Enter to put array formulas in cells
4) For more about MOD and time calculations, see this video: Excel Magic Trick 286: MOD function & Time Calculatio
Excel Magic Trick 286: MOD function & Time Calculations
Name Time In Time Out Time Worked
Sioux 12:57 PM 5:56 PM 4.99
Red 1:18 AM 8:38 PM 19.33
Chin 8:02 PM 3:54 AM 7.88
Phil 5:02 PM 9:21 PM 4.32
Shelia 10:27 AM 11:41 AM 1.23
Bat 11:20 AM 12:47 PM 1.45
Gip 8:09 AM 12:17 AM 16.14
Mr Excel 9:33 AM 5:32 PM 7.99
Mrs Excel 1:19 AM 2:06 PM 12.77

Total Hours Worked 76.09 76.09


76.09
MOD function & Time Calculations
1) Calculate Total Days & Hours from Date/Time number

2) When you enter "1/20/2001 9:00:00 PM" into a cell, the serial number "36911.875" gets put in the cell
The 36911 in the above serial number represents days since Dec 31, 1899, and the .875 represents (PM
3) (.875 of one 24 hour day)
4) For more about serial numbers, see this video:
5) The TEXT function formats numbers with number format and converts it to text
6) For more about the TEXT function, see this video:
The custom number format [h] allows you to show time when there is more than a 24 hour day for the
7) total
The formula =TEXT(C13-C12,"[h]") creates text. By adding a zero to the end, you can convert a number
8) stored as text back to a number: =TEXT(C13-C12,"[h]")+0
9) The INT function takes just the integer part of the Date/Time number so we can do Date Math
10) For more about Date Math and the INT function, see these videos:

Start Day & Time 1/20/2001 09:00:00 PM


End Day & Time 2/10/2001 01:00:33 AM
Days 21
Hours 484
Days & Hours 21 : 484
Excel Basics #15: Date & Time Format & Calculations

Excel Magic Trick #40: TEXT Function Formula: Dynamic Label

Excel Magic Trick #12: Date Math!


Excel Magic Trick #41: ROUNDDOWN/UP CEILING/FLOOR functions
1) Join Year & Days in Year To Create Label
2) The YEAR function tells you what year a date represents

The DATE function constructs dates given year, month and day
inputs. For example, DATE(2009,1,1) yields 1/1/2009. But date
can handle odd values like 0 for a day or even 32 for a day ==>
3) DATE(2009,1,0) = 12/31/2008 and DATE(2009,1,32) = 2/1/2009.
4) For more about the VLOOKUP, see this video series: 02 Excel Series: Lookup functions
5) For more about array syntax, see this video series: Excel Lookup Series #5: VLOOKUP Function 5th Example
6)

Date Method 1 Method 2 DATE


4/11/2009 2009101 2009101 2/1/2009
1/2/2009 2009002 2009002

DATE(2009,1,1) yields 1/1/2009


DATE(2009,1,0) = 12/31/2008
DATE(2009,1,32) = 2/1/2009

Date Method 1 ### 00


4/11/2009 2009101 ### 0
1/2/2009 2009002 ###
unction 5th Example
1) 1900 Dates Problems and Fixes
2) Message Posted at the Mr Excel Message Board: http://www.mrexcel.com/forum/showthread.php?p=18758

If you type 1/1/30, Excel puts: 1/1/1930


If you type 1/1/29, Excel puts 1/1/2029
You can change this setting: Start, Control Panel, Regional Options,
3) Regional Options tab, Customize button, Date tab
4)

If you type 1/1/30, Excel


puts: 1/1/1930
Date Date
2/2/1930 2/2/2029 2/2/1929

If you type 1/1/29, Excel puts


1/1/2029
Date Date 2/2/2030 2/2/2029
2/2/1930 2/2/2029 ###

excelisfun
Dates Formula =(LEFT(B16,LEN(B16)-2)&"19"&RIGHT(B16,2))+0
1/15/30 1/15/2030 DATEVALUE converts dates as text back to dates
1/1/29 LEN counts how many characters there are
1/01/30 LEFT can grab a certain number of characters from the left
1/30/29 RIGHT can grab a certain number of characters from the right
Andrew
Poulsom
Dates Formula
1/15/30 SUBSTITUTE can find parts of a text string, take that part out, and put a new
1/1/29 =SUBSTITUTE(B22,"/","/19",2)+0
1/01/30
1/30/29
barry Houdini
Dates Formula
1/15/30 If third argument of REPLACE (num_chars) is zero, the function inserts text!
1/1/29 =REPLACE(B28,LEN(B28)-1,0,19)+0
1/01/30
1/30/29
m/forum/showthread.php?p=1875881#post1875881

2/2/2019

###

from the left


rs from the right

ke that part out, and put a new part in

zero, the function inserts text!


Compatibility Report for EMT296-301Finished.xls
Run on 09-01-2019 2:07
T(297)'!B7

If the workbook is saved in an earlier file format or opened in an earlier


version of Microsoft Excel, the listed features will not be available.

Significant loss of functionality # of occurrences

One or more functions in this workbook are not available in versions prior to 2
Excel 2007. When recalculated in earlier versions, these functions will return a
#NAME? error instead of their current results.
VaryingColumns'!B15

Some cells contain conditional formatting with the 'Stop if True' option 5
cleared. Earlier versions of Excel do not recognize this option and will stop
after the first true condition.
T(297)'!D9:F13
VaryingColumns'!F1:J12

Some cells in this workbook contain data validation rules, which refer to values 5
on other worksheets. These rules won't be saved.
T(297)'!J11:J13
VaryingColumns'!E15:G15

Minor loss of fidelity

Some cells or styles in this workbook contain formatting that is not supported 16
by the selected file format. These formats will be converted to the closest
format available.
Version

Excel 97-2003

Excel 97-2003
Excel 97-2003

Excel 97-2003
Excel 97-2003

Excel 97-2003

You might also like