Vous êtes sur la page 1sur 30

# Count Numbers between Lower & Upper Bound

1)

2)

3)
4)

The formula,
=SUMPRODUCT((B13:B22>=E12)*(B13:B22<=E13)), has two
arrays that evaluate to a series of Trues and Falses that are
multiplied:
=SUMPRODUCT({TRUE;TRUE;TRUE;TRUE;TRUE;TRUE;TRUE;TRU
E;TRUE;TRUE}*{FALSE;FALSE;TRUE;TRUE;TRUE;FALSE;FALSE;TR
UE;FALSE;TRUE}). Note that TURE*TRUE = 1; FALSE*TRUE = 0
and FALSE*FALSE = 0. The formula then evaluates to:
=SUMPRODUCT({0;0;1;1;1;0;0;1;0;1}), and then finally to : 5.
This is becasue there are 5 ocurrances when there are two
TRUEs and thus 5 times that the two conditions (between the
upper and lower bound) are met.
The formula, =COUNTIF(B13:B22,"<="&E13)COUNTIF(B13:B22,"<"&E12), counta all the ones less than or
equal to the upper bound and then subtracts all the ones less
than the lowwer bound.
COUNTIFS is a new function in Excel 2007
Values
2
2
2
3
3
7
8
11
12
15
16

Lower Value
Upper Value
Count

3
7
3

=SUMPRODUCT((B7:B17>=E6)*(B7:B17<=E7))

=COUNTIF(B7:B17,"<="&E7)-COUNTIF(B7:B17,"<"&E6)

=COUNTIF(B7:B17,">="&E6)-COUNTIF(B7:B17,">"&E7)

## Use CTRL + SHIFT + ENTER to get: {=SUM(IF(B7:B17>=E6,IF(B7:B17<=E7,1,0)))}

=COUNTIFS(B7:B17,">="&E6,B7:B17,"<="&E7)

Count
Count
Count
Count
Count

B17>=E6)*(B7:B17<=E7))}

7:B17>=E6,IF(B7:B17<=E7,1,0)))}

3)
4)

## Get Last Item From Different Sheets

The LOOKUP function see note ==>>
For explination of why 9.99999999999999E+307 is used as the first
argument in LOOKUP see the link below

5)

The OFFSET function can be used to get the value in a cell, if you tell the
OFFSET function what cell is the starting point and how far from that
starting point (number of rows) you want to go to get the value.

1)
2)

6)

7)

## For more about Array Formulas, see this video series:

For the orgin of the formula for last numbers across sheets, see the link
below:
For more about the INDIRECT function, see this video:

8)
9)
10)

Excel Magic
Trick #78:
OFFSET
function
05 Excel
Series:
Array
Formulas 114

## Last Number from multiple Columns on a different

Sheet
Sales Pro 1 Sales Pro 2 Sales Pro 3 Sales Pro 4
19
19
34
24

=LOOKUP(9.99999999999999E+307,Items!A:A)

## Last Number or Word or Error or T/F from multiple

Columns on a different Sheet
Sales Pro 1 Sales Pro 2 Sales Pro 3 Sales Pro 4
None
#DIV/0!
TRUE
24

{=OFFSET(Items!F1,MAX(ROW(Items!F:F)*(Items!F:F<>"

## Last Number from Column A Across

Multiple Sheets
Jan
Feb
Mar
43
12
15

{=LOOKUP(9.99999999999999E+307,INDIRECT(B21&"!A

## Last Text from multiple Columns on a different

Sheet
Sales Pro 1 Sales Pro 2 Sales Pro 3 Sales Pro 4
None
Sales Pro 2 None
Sales Pro 4
Last Number or Word or T/F from multiple
Columns on a different Sheet
Sales Pro 1 Sales Pro 2 Sales Pro 3 Sales Pro 4

None
None

19
19

TRUE
TRUE

24
24

2007
2003

## ick #7: INDIRECT function, Names and LOOKUP

999E+307,Items!A:A)

OW(Items!F:F)*(Items!F:F<>""))-1,0)}

999E+307,INDIRECT(B21&"!A:A"))}

30
24
5
5
31
24
26
11
33
19
27
27
12
19
24
32
34
11
19
ww

30
24
5
5
31
24
26
11
33
19
27
27
12
19
24
32
None
11
None
#DIV/0!
TRUE

Sales
19
19
25
18
9
25
21
23
43

Sales
22
6
6
18
23
1
9
10
9
14
19
11
10
12

Sales
23
21

15

1)
2)
3)

4)
5)
6)
7)

## The keyboard shortcut for Data Validation is Alt + D + L (2003)

or Alt A + V + V (2007)
Excel interprets 10-8895 as the date Oct, 8895
Excel interprets 0856 (if there is no custom format to allow
So if you have data validation based on those values, you can
only use the drop down arrow to enter the values; you
CANNOT type the values in
You can type the values in if you format the column as Text.
To apply Text Format: Ctrl + 1 opens the Format Cells Dialog
Box, Number tab, then select Text

Pro ID
10-8895
10-2281
0856

Data
Validation
10-8895
10-2281
0856

Data
Validation
10-8895
0856

1)
2)

statistical
value
SV

dollar value
assigned
DVA

DVA/SV

## \$66,667 DVA for every

66,667 one unit of SV
\$130,435 DVA for every
46 \$ 6,000,000 \$ 130,435 one unit of SV
\$200,000 DVA for every
25 \$ 5,000,000 \$ 200,000 one unit of SV
\$22,222 DVA for every
45 \$ 1,000,000 \$ 22,222 one unit of SV
45 \$ 3,000,000 \$

1)
2)
3)
4)
5)
6)

For more about the IF and AND functions, see these videos:

## For more about the EXACT function, see this video:

For more about Array Formulas, see this video series:

Word
Word 1
Word 2
Word 3
Word 4

Word

The Same?
Same
Same

## Excel Magic Trick #31 Part 1: IF AND OR functions, log

Excel Magic Trick #31 Part 2: IF AND OR functions, log
Excel Magic Trick 167p1 IF function formula: 12 Exam
Excel Magic Trick #96: EXACT function
05 Excel Series: Array Formulas 1-14

=IF(AND(EXACT(C14,C15),EXACT(C15,C16),EXACT(C16,C17)),"Sa
Ctrl + Shift + Enter: {=IF(AND(EXACT(C14,C14:C17)),"Same","Prob

## Part 1: IF AND OR functions, logical

Part 2: IF AND OR functions, logical
1 IF function formula: 12 Examples!
EXACT function
Formulas 1-14

C15,C16),EXACT(C16,C17)),"Same","Problem")
CT(C14,C14:C17)),"Same","Problem")}

1)
2)

3)
4)

COUNTIF function
=COUNTIF(Range of values to be counted,Criteria)
The criteria is considered text by Excel. For example, counting how many 75s there are in a range of cells, the criteria is "75", even if it is a number. Another
example: the criteria for greater than 75 is ">75"; this is still true even if you construct the critera in various ways such as: ">75" or a cell reference where >75
is in that cell (below it would be the cell reference F11) or if the criteria was ">"&F12. The three formulas would look like this: 1) =COUNTIF(C7:C19,">75") or
2) =COUNTIF(C7:C19,">"&F12) or 3) =COUNTIF(C7:C19,F11)
=COUNTIF(Range of values to be counted, Criteria)
Data1
apples
orange
peaches
Apples
apples

Apples
oranges
peaches
apple
Apples

Data2

Apples
32
apples
54
Apples
75 oranges apples
86
50
100
>75
57
75
TRUE
75
#DIV/0!
<>75
NO
<50
<80
No
*es
YeS
*es
*
YeS
*
Yes
yeS
<>*
<>*
""

5
5
3
6
0
2
2
2
12
3
8
8
10
10
0.4
0.5
3
3
4
6
22

COUNTIF function
=COUNTIF(Range of values to be counted,Criteria)
example, counting how many 75s there are in a range of cells, the criteria is "75", even if it
ria for greater than 75 is ">75"; this is still true even if you construct the critera in various
where >75 is in that cell (below it would be the cell reference F11) or if the criteria was
d look like this: 1) =COUNTIF(C7:C19,">75") or 2) =COUNTIF(C7:C19,">"&F12) or 3)
=COUNTIF(Range of values to be counted, Criteria)
Count Apples not case sensitive
Count apples not case sensitive
Count Apples case sensitive
Count oranges apples not case sensitive
Count values equal to 50
Count values above 75 using the comparative operator in cell with value
Count values above 75 using the comparative operator in quotes
Count values greater than 75 with criteria hard coded in formula (not efficient in long run)
Count Values not 75
Count values Less than 80 and greater than or equal to 50
Number of words ending in "es" with criteria in cell
Number of words ending in "es" with criteria not in cell
Count words (or text) criteria in cell
Count words (or text) criteria not in cell
Count % of Yes Votes (blanks included)
Count % of Yes Votes (blanks not included)
Count Not Words criteria not in cell
Count Not Words criteria in cell
Count Blanks with criteria in formula
Count Numbers
Count everything except Blanks

## For more about array formulas, see this video series:

For more about the EXACT function, see this video:

1)
2)
Data1
apples

Data2

Apples
apples

32

orange
peaches
Apples

54
Apples
75 oranges apples
86
50

apples

100

>75

57

Apples
oranges
peaches
apple

TRUE
#DIV/0!
NO
No
YeS

Apples

YeS

<50

<>75
<80
*es
*es
*
*
Yes
yeS
<>*
<>*
""

5
5

3
6
0
2

75

75

2
12
3
8
8
10
10
0.4
0.5
12
12
4
6
22

## Excel Magic Trick #96: EXACT function

05 Excel Series: Array Formulas 1-14
Count Apples not case sensitive
Count apples not case sensitive
Count Apples case sensitive. Use the array formula:
=SUM(EXACT(B7:B19,F8)*1) and use the keyboard shortdut Ctrl +
Shift + Enter to put formula in cell
Count oranges apples not case sensitive
Count values equal to 50
Count values above 75 using the comparative operator in cell with
value
Count values above 75 using the comparative operator in quotes
Count values greater than 75 with criteria hard coded in formula
(not efficient in long run)
Count Values not 75
Count values Less than 80 and greater than or equal to 50
Number of words ending in "es" with criteria in cell
Number of words ending in "es" with criteria not in cell
Count words (or text) criteria in cell
Count words (or text) criteria not in cell
Count % of Yes Votes (blanks included)
Count % of Yes Votes (blanks not included)
Count Not Words criteria not in cell
Count Not Words criteria in cell
Count Blanks with criteria in formula
Count Numbers
Count everything except Blanks

1)
2)
3)

4)

5)

6)

7)
8)

## For more about SUMPRODUCT, see this video:

Excel Magic Trick #122: Sum With More Than 1 Criter
Workbook References allow you to have formulas that look at cell
references in other workbooks.
An example of w workbook reference is:
'[EMT175-.xls]T(182)'!\$C\$10:\$C\$235
The square brackets, [ and ], are what Excel puts around the
workbook name. The apostrophes, ' and ', are what Excel puts
around the workbook name and worksheet name. The
explanation point, !, always comes after the worksheet name.
By default, when you use a workbook reference, the cell reference
is absolute (with two dollar signs). You can change it with the F4
key.
When using workbook references save the two files in a
permanent location so that the workbook with the workbook
reference can be updates if necessary.
Excel 2007, go to the Office Button, Prepare, Edit Links.

Date
4/28/2008
8/30/2008
6/22/2008
3/27/2008
12/14/2008
12/17/2008
6/4/2008
10/23/2008
2/2/2008
10/22/2008
3/3/2008
3/9/2008
4/7/2008
7/10/2008
11/22/2008
7/26/2008
10/21/2008
9/17/2008
9/18/2008
4/27/2008
4/1/2008
12/24/2008
2/29/2008
12/28/2008
7/16/2008

SalesRep
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01

Store
Sales
Store01
\$5,000.00
Store02
\$500.00
Store01
\$222.00
Store02
\$440.00
Store01
\$404.00
Store02
\$217.00
Store01
\$238.00
Store02
\$128.00
Store01
\$210.00
Store02
\$348.00
Store01
\$364.00
Store02
\$201.00
Store01
\$279.00
Store02
\$450.00
Store01
\$480.00
Store02
\$109.00
Store01
\$395.00
Store02
\$467.00
Store01
\$805.00
Store02
\$900.00
Store01
\$343.00
Store02
\$619.00
Store01
\$108.00
Store02
\$372.00
Store01
\$116.00

SalesRep01
SalesRep02
SalesRep03
SalesRep04

Store01 Store02
\$31,906
\$0
\$30,410
\$0
\$0 \$29,132
\$0 \$28,757

11/15/2008
10/2/2008
3/21/2008
11/9/2008
3/10/2008
2/1/2008
12/14/2008
6/24/2008
11/3/2008
2/2/2008
5/9/2008
6/28/2008
6/15/2008
10/15/2008
2/28/2008
11/20/2008
11/25/2008
8/20/2008
1/14/2008
9/28/2008
1/6/2008
6/8/2008
12/17/2008
10/31/2008
4/15/2008
2/16/2008
10/25/2008
12/28/2008
4/16/2008
8/15/2008
10/15/2008
3/21/2008
3/22/2008
3/31/2008
6/22/2008
11/18/2008
1/30/2008
10/7/2008
8/29/2008
4/15/2008
5/7/2008
10/12/2008
2/2/2008
4/10/2008
3/17/2008
10/2/2008
6/12/2008

SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04

Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02

\$621.00
\$845.00
\$739.00
\$736.00
\$740.00
\$629.00
\$793.00
\$207.00
\$551.00
\$466.00
\$236.00
\$503.00
\$110.00
\$224.00
\$575.00
\$821.00
\$465.00
\$802.00
\$260.00
\$788.00
\$331.00
\$785.00
\$692.00
\$688.00
\$706.00
\$389.00
\$458.00
\$215.00
\$572.00
\$560.00
\$194.00
\$849.00
\$864.00
\$781.00
\$563.00
\$260.00
\$766.00
\$201.00
\$297.00
\$263.00
\$463.00
\$711.00
\$803.00
\$451.00
\$729.00
\$787.00
\$856.00

9/22/2008
4/28/2008
2/17/2008
10/5/2008
4/3/2008
4/20/2008
5/11/2008
11/6/2008
6/19/2008
8/18/2008
10/9/2008
6/4/2008
1/30/2008
10/9/2008
9/23/2008
11/23/2008
10/30/2008
1/27/2008
3/2/2008
5/29/2008
11/21/2008
7/19/2008
7/31/2008
6/14/2008
9/18/2008
8/13/2008
6/8/2008
2/14/2008
8/6/2008
11/5/2008
6/9/2008
3/14/2008
12/3/2008
2/25/2008
7/24/2008
8/16/2008
12/27/2008
11/27/2008
11/18/2008
5/19/2008
10/17/2008
5/29/2008
2/11/2008
4/19/2008
5/6/2008
8/16/2008
8/2/2008

SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02

Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01

\$245.00
\$898.00
\$537.00
\$627.00
\$290.00
\$187.00
\$585.00
\$764.00
\$355.00
\$245.00
\$600.00
\$887.00
\$516.00
\$539.00
\$675.00
\$282.00
\$404.00
\$832.00
\$145.00
\$573.00
\$814.00
\$308.00
\$786.00
\$241.00
\$612.00
\$682.00
\$659.00
\$770.00
\$452.00
\$575.00
\$847.00
\$496.00
\$224.00
\$354.00
\$667.00
\$538.00
\$799.00
\$261.00
\$686.00
\$241.00
\$893.00
\$518.00
\$322.00
\$379.00
\$417.00
\$699.00
\$668.00

12/10/2008
5/14/2008
6/3/2008
10/31/2008
6/10/2008
4/5/2008
9/23/2008
11/27/2008
7/24/2008
3/18/2008
6/8/2008
11/19/2008
1/12/2008
3/17/2008
2/20/2008
3/2/2008
11/26/2008
6/11/2008
9/2/2008
10/20/2008
1/23/2008
3/30/2008
10/22/2008
8/30/2008
3/23/2008
9/8/2008
4/24/2008
8/18/2008
8/28/2008
2/13/2008
7/28/2008
4/11/2008
12/11/2008
1/11/2008
6/8/2008
12/27/2008
1/28/2008
9/25/2008
1/11/2008
5/17/2008
3/18/2008
8/13/2008
2/17/2008
12/24/2008
6/4/2008
8/21/2008
4/12/2008

SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03

Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02

\$824.00
\$431.00
\$883.00
\$852.00
\$868.00
\$681.00
\$248.00
\$113.00
\$493.00
\$583.00
\$661.00
\$196.00
\$822.00
\$625.00
\$174.00
\$218.00
\$851.00
\$441.00
\$368.00
\$900.00
\$803.00
\$868.00
\$867.00
\$398.00
\$859.00
\$491.00
\$244.00
\$240.00
\$427.00
\$889.00
\$372.00
\$790.00
\$134.00
\$842.00
\$857.00
\$466.00
\$218.00
\$352.00
\$562.00
\$191.00
\$728.00
\$296.00
\$738.00
\$312.00
\$141.00
\$183.00
\$865.00

11/14/2008
4/14/2008
7/5/2008
10/23/2008
5/8/2008
9/19/2008
7/24/2008
3/22/2008
12/14/2008
7/14/2008
12/27/2008
8/23/2008
6/3/2008
10/26/2008
1/24/2008
12/12/2008
11/13/2008
1/23/2008
10/18/2008
6/24/2008
2/6/2008
4/21/2008
12/30/2008
3/2/2008
2/3/2008
1/5/2008
7/10/2008
8/19/2008
5/24/2008
6/29/2008
7/17/2008
11/29/2008
8/1/2008
2/5/2008
8/17/2008
1/21/2008
6/6/2008
4/29/2008
4/29/2008
11/6/2008
8/5/2008
10/10/2008
6/3/2008
1/7/2008
4/27/2008
12/10/2008
2/12/2008

SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01

Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01

\$744.00
\$510.00
\$426.00
\$554.00
\$196.00
\$196.00
\$178.00
\$265.00
\$651.00
\$624.00
\$149.00
\$309.00
\$871.00
\$173.00
\$159.00
\$477.00
\$795.00
\$779.00
\$474.00
\$291.00
\$793.00
\$377.00
\$749.00
\$779.00
\$759.00
\$500.00
\$874.00
\$330.00
\$646.00
\$619.00
\$781.00
\$398.00
\$180.00
\$354.00
\$248.00
\$119.00
\$526.00
\$769.00
\$610.00
\$179.00
\$385.00
\$886.00
\$706.00
\$597.00
\$779.00
\$560.00
\$405.00

4/10/2008
4/2/2008
12/10/2008
1/12/2008
12/11/2008
10/1/2008
8/31/2008
10/9/2008
1/23/2008
1/12/2008
7/15/2008
9/3/2008
7/29/2008

SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03
SalesRep02
SalesRep04
SalesRep01
SalesRep03

Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02
Store01
Store02

\$883.00
\$410.00
\$154.00
\$366.00
\$259.00
\$799.00
\$249.00
\$141.00
\$766.00
\$626.00
\$425.00
\$409.00
\$470.00

1)

2)

3)
4)

5)

6)

7)

8)
9)
10)
11)
12)

13)

## To set up an Excel Lists/Tables/Database format, field names must be at the top of

each column, field (variable) data must be in column, records must be in rows and
there should be no blanks in table, no blank rows or columns between the data, and
at least one blank row and column between Table/List/Database and any other data
in the spreadsheet. For more detail about data analysis see this video:
Excel Basics #12: Data Analysis!
In Excel 2003, the term for an Excel Lists/Tables/Database format is "List", and the
keyboard shortcut to create one is Ctrl + L. In Excel 2007, the term for an Excel
Lists/Tables/Database format is "Table", and the keyboard shortcut to create one is
Ctrl + T.

If you have your data in the Excel Lists/Tables/Database format, you can use the
data analysis features such as Sort, Filter, PivotTables, Subtotals, etc. If you data is in
this format your field tables and table range are dynamic
Dynamic ranges will automatically update as you add new Records!!!!
When you create an array formula you must use the keyboard shortcut; Ctrl + Shift
series:
Playlist: 08 Excel Series: Array Fo

The MONTH function figures out what month a date is. For example
=MONTH(2/1/2008) will return the number 2 because February is the 2 month.
To add a Custom Number format, use Ctrl + 1 to open the Format Cells Dialog box,
then click on the Number tab, then click on Custom, then type mmm to show the
first three letters of the month. For more about custom Number formatting, see this
video:
Excel Magic Trick #74: Custom N
The array formula,
=SUM((MONTH(\$D\$14:\$D\$37)=MONTH(J\$12))*(\$E\$14:\$E\$37=LEFT(\$I13,1))*IF(LEF
T(\$I13,1)="R",\$G\$14:\$G\$37,\$F\$14:\$F\$37)), will add the expenses or revenues for
the correct month.
For more on CUSTOM Number Formatting, watch this video:
Excel Magic Trick #74: Custom N
The TEXT function takes a number and converts it to text with the custom number
format that you specify.
For more about the TEXT function, see this video:
This video is in response to this video:
YTL Excel #130: Income Statement
The array formula,
=SUMPRODUCT((TEXT(\$D\$16:\$D\$41,"ym")=TEXT(J\$21,"ym"))*(\$E\$16:\$E\$41=LEFT(
\$I22,1))*IF(LEFT(\$I22,1)="R",\$G\$16:\$G\$41,\$F\$16:\$F\$41))
,will add the expenses or revenues for the correct month and year.
Customer/Supplier
SCE
CKQ
SCE
CDD
SPA
CAS

Account
Rent
Hair Cut
Rent
Perm
Supply
Color

Date
5/2/2007
5/29/2007
6/2/2007
6/10/2007
6/12/2007
6/16/2007

R/E
E
R
E
R
E
R

Expense
Revenue
\$625.00
\$87.00
\$625.00
\$150.00
\$66.00
\$100.00

2007
Revenue
Expense
Net Income
2007

CAS
CFY
SFT
SMN
SCE
CAP
CVB
CVB
CRQ
CHL
CTY
CLG
SZW
CDT
SCE
SPO
CAS
CMN
CVB
CDD

Trim
Hair Cut
Rent
Hair Cut
Perm
Color
Color
Perm
Hair Cut
Hair Cut
Utility
Nails
Rent
Rent
Perm
Perm
Hair Cut
Hair Cut

6/17/2007
6/22/2007
6/23/2007
6/26/2007
7/2/2007
7/3/2007
7/3/2007
7/3/2007
7/9/2007
7/10/2007
7/15/2007
7/27/2007
7/29/2007
7/31/2007
8/2/2007
8/15/2007
8/24/2007
8/26/2007
9/1/2007
9/2/2008

R
R
E
E
E
R
R
R
R
R
R
R
E
R
E
E
R
R
R
R

\$126.00
\$65.00
\$99.00
\$51.00
\$625.00
\$35.00
\$95.00
\$140.00
\$125.00
\$135.00
\$112.00
\$50.00
\$42.00
\$50.00
\$625.00
\$92.00
\$148.00
\$95.00
\$30.00
\$100.00

Revenue
Expense
Net Income

## Excel #130: Income Statement from Excel Table: Array For

Jan
0
0
0

Feb
0
0
0

Mar
0
0
0

Apr
0
0
0

May
87
625
-538

Jun
441
841
-400

Jul
742
667
75

Aug
243
717
-474

Sep
130
0
130

Oct
0
0
0

Nov
0
0
0

Dec
0
0
0

Jan

Feb

Mar

Apr

May

Jun

Jul

Aug

Sep

Oct

Nov

Dec

0
0
0

0
0
0

0
0
0

0
0
0

87
625
-538

441
841
-400

742
667
75

243
717
-474

30
0
30

0
0
0

0
0
0

0
0
0

1)
2)
3)
4)
5)
6)
7)
8)

A simple database can be created in Excel using the Excel 2003 "List" feature or the Excel 2007 "Table" feature.
Fields names must be in first row (no blanks).
Records are in rows (no blanks).
Other data in the sheet cannot be next to the Table/List (at least one blank row or column between other data
and the Table/List
Keyboard shortcuts: Excel 2003 List: Ctrl + L. Excel 2007 Table: Ctrl + T.
The ranges are dynamic: formulas, pivot tables, charts will all automatically update
We will use the field names:
Date Contribution FName Lname Phone

Date
Contribution
Fname
1/1/2009
\$45.00 Sioux
1/2/2009
\$600.00 Ray
3/2/2009
\$1,000.00 Joy
3/2/2009
\$500.00 gff

Lname
Cool
Ed
gff

Phone
(206) 895-4545
(453) 987-5896
(569) 874-5236
(598) 741-2365

Total
\$2,145.00

Contribution
1
2
3