You are on page 1of 64

Excel Magic Trick 358: Part 1: Return Multiple Items From One Lookup

Value for Table


For more about Data Validation, see this video:
For More about the IF function, see this video series:
For more about Array Formulas, see this video series:
Use Ctrl + Shift + Enter for array formulas
For more about INDEX and MATCH, see these videos:

The ROW function tells you what row you are in


The ROWS function tells you how many rows there are
The COLUMN function tells you what column you are in
The COLUMNS function tells you how many columns there are
Small function gives the smallest kth value, for more, see this:
For more about Extarcting Data, see this video series:

Bet Team Opposing Team Week # Result


Florida Gators Troy 2 W
Florida Gators Tennessee 3 L
Florida Gators At Kentucky 4 W
Florida Gators Arkansas 7 L
Texas Longhorns At Wyoming 2 L
Texas Longhorns UTEP 4 L
Texas Longhorns Colorado 6 W
Texas Longhorns At Baylor 11 W
USC Trojans San Jose State 1 W
USC Trojans At Washington 3 L
USC Trojans Washington State 4 L
USC Trojans Stanford 11 L
Oklahoma Sooners Tulsa 3 W
Oklahoma Sooners Baylor 6 L
Oklahoma Sooners Kansas State 9 W
Oklahoma Sooners Texas A&M 11 W
LSU Tigers At Washington 1 W
LSU Tigers Vanderbilt 2 W
LSU Tigers UL Lafayette 3 L
LSU Tigers At Miss State 4 L
Ohio State Buckeyes Navy 1 W
Ohio State Buckeyes At Toledo 3 L
Ohio State Buckeyes Illinois 4 L
Ohio State Buckeyes At Indiana 5 W
Excel Magic Trick #5: Data Validation & VLOOKUP
Various Excel IF function Tricks
08 Excel Series: Array Formulas 1-14

Highline Excel Class 44: Basics of INDEX & MATCH functions


Highline Excel Class 45: INDEX & MATCH 12 Unusual Examples

Highline Excel Class 31: Histogram & LARGE SMALL functions


Various Excel Extract Records From Database Table / List
Crtieria #1: Week 11
Crtieria #2: W or L W
Count How Many 11 and W 2

Week 11 Data
Bet Team Opposing Team Week # Result
<<== must use CTRL = SHIFT + ENTER to put form

Excel Magic Trick 358: Part 1: Return Multiple Items From One Lookup Value for Table
Excel Magic Trick 359: Part 2: Return Multiple Items From One Lookup Value for Column
Excel Magic Trick 360: Part 3: Return Multiple Items From One Lookup Value for Row
SHIFT + ENTER to put formula in cell
Crtieria #1: Week 1
Crtieria #2: W or L W
Count How Many 1 and W 3 3

Week 1 Data
Bet Team Opposing Team Week # Result
USC Trojans San Jose State 1 W <<== must use CTRL = SHIFT + ENTER to put form
LSU Tigers At Washington 1 W
Ohio State Buckeyes Navy 1 W

Excel Magic Trick 358: Part 1: Return Multiple Items From One Lookup Value for Table
Excel Magic Trick 359: Part 2: Return Multiple Items From One Lookup Value for Column
Excel Magic Trick 360: Part 3: Return Multiple Items From One Lookup Value for Row
SHIFT + ENTER to put formula in cell
Crtieria #1: Week 2
Crtieria #2: W or L W
Count How Many 2 and W 2 2

Week 2 Data
Bet Team Opposing Team Week # Result
Florida Gators Troy 2W <<== must use CTRL = SHIFT + ENTER to put form
LSU Tigers Vanderbilt 2W

Excel Magic Trick 358: Part 1: Return Multiple Items From One Lookup Value for Table
Excel Magic Trick 359: Part 2: Return Multiple Items From One Lookup Value for Column
Excel Magic Trick 360: Part 3: Return Multiple Items From One Lookup Value for Row
SHIFT + ENTER to put formula in cell
Count of
Day1 Numbers Formula
None <<== must use CTRL = SHIFT + ENTER to put formula in cell
$6,520.00 see video playlist for more details about this typ
No Sale Various Excel Extract Records From Database Ta
$5,220.00
$955.00 Excel Magic Trick 358: Part 1: Return Multiple Ite
$4,344.00 Excel Magic Trick 359: Part 2: Return Multiple Ite
None Excel Magic Trick 360: Part 3: Return Multiple Ite
No Sale
Fail

For More about the IF function, see this video series: Various Excel IF function Tricks
For more about Array Formulas, see this video series: 08 Excel Series: Array Formulas 1-14
Use Ctrl + Shift + Enter for array formulas
For more about INDEX and MATCH, see these videos: Highline Excel Class 44: Basics of INDEX & MATC
Highline Excel Class 45: INDEX & MATCH 12 Unu
The ISNUMBER function returns TRUE when the cell has a number and
FALSE when it does not.
The ROW function tells you what row you are in
The ROWS function tells you how many rows there are
Small function gives the smallest kth value, for more, see this: Highline Excel Class 31: Histogram & LARGE SMA
For more about Extarcting Data, see this video series: Various Excel Extract Records From Database Ta
rmula in cell
more details about this type of array formula:
Records From Database Table / List

: Part 1: Return Multiple Items From One Lookup Value for Table
: Part 2: Return Multiple Items From One Lookup Value for Column
: Part 3: Return Multiple Items From One Lookup Value for Row

Formulas 1-14

4: Basics of INDEX & MATCH functions


5: INDEX & MATCH 12 Unusual Examples

1: Histogram & LARGE SMALL functions


Records From Database Table / List
Count of
Day1 Numbers Formula
None 3 $6,520.00 <<== must use CTRL = SHIFT + ENTER to put formula in cell
$6,520.00 $5,220.00 see video playlist for more details about this typ
No Sale $955.00 Various Excel Extract Records From Database Ta
$5,220.00
$955.00 Excel Magic Trick 358: Part 1: Return Multiple Ite
p Excel Magic Trick 359: Part 2: Return Multiple Ite
p Excel Magic Trick 360: Part 3: Return Multiple Ite
p
p

For More about the IF function, see this video series: Various Excel IF function Tricks
For more about Array Formulas, see this video series: 08 Excel Series: Array Formulas 1-14
Use Ctrl + Shift + Enter for array formulas
For more about INDEX and MATCH, see these videos: Highline Excel Class 44: Basics of INDEX & MATC
Highline Excel Class 45: INDEX & MATCH 12 Unu
The ISNUMBER function returns TRUE when the cell has a number and
FALSE when it does not.
The ROW function tells you what row you are in
The ROWS function tells you how many rows there are
Small function gives the smallest kth value, for more, see this: Highline Excel Class 31: Histogram & LARGE SMA
For more about Extarcting Data, see this video series: Various Excel Extract Records From Database Ta
mula in cell
more details about this type of array formula:
Records From Database Table / List

Part 1: Return Multiple Items From One Lookup Value for Table
Part 2: Return Multiple Items From One Lookup Value for Column
Part 3: Return Multiple Items From One Lookup Value for Row

Formulas 1-14

4: Basics of INDEX & MATCH functions


5: INDEX & MATCH 12 Unusual Examples

1: Histogram & LARGE SMALL functions


Records From Database Table / List
Devive Type Type ID    Devive Type Type ID   1 Type ID   2 Type ID   3 Type ID   4 Type ID   5
SIP Device X1 Com 1
SIP Device X2
SIP Device X3 Count Com 1
Other Device Q1
Other Device Q2 <<== must use CTRL = SHIFT + ENTER to put formula in cell

<
<
<
<
<
Com 1 ZZ01 see video playlist for more details about this type of array form
Com 1 ZZ02 Various Excel Extract Records From Database Table / List
Com 1 ZZ03 Excel Magic Trick 358: Part 1: Return Multiple Items From One Lookup Value for Table
Excel Magic Trick 359: Part 2: Return Multiple Items From One Lookup Value for Column
Excel Magic Trick 360: Part 3: Return Multiple Items From One Lookup Value for Row

SIP Device
Other Device
Com 1

For more about Data Validation, see this video: Excel Magic Trick #5: Data Validation & VLOOKUP
For More about the IF function, see this video
series: Various Excel IF function Tricks
For more about Array Formulas, see this video
series: 08 Excel Series: Array Formulas 1-14
Use Ctrl + Shift + Enter for array formulas
For more about INDEX and MATCH, see these
videos: Highline Excel Class 44: Basics of INDEX & MATCH functions
Highline Excel Class 45: INDEX & MATCH 12 Unusual Examples

The ROW function tells you what row you are in


The ROWS function tells you how many rows
there are
The COLUMN function tells you what column
you are in
The COLUMNS function tells you how many
columns there are
Small function gives the smallest kth value, for
more, see this: Highline Excel Class 31: Histogram & LARGE SMALL functions
For more about Extarcting Data, see this video
series: Various Excel Extract Records From Database Table / List
For more about COUNTIF function, see this
video series: Excel Magic Trick #180: COUNTIF function formula 21 Examples
t this type of array formula:
abase Table / List

1 Examples
Devive Type Type ID    Devive Type Type ID   1 Type ID   2 Type ID   3 Type ID   4 Type ID   5
SIP Device X1 Com 1 ZZ01 ZZ02 ZZ03
SIP Device X2
SIP Device X3 Count Com 1
Other Device Q1 3
Other Device Q2 <<== must use CTRL = SHIFT + ENTER to put formula in cell

<
<
<
<
<
Com 1 ZZ01 see video playlist for more details about this type of array form
Com 1 ZZ02 Various Excel Extract Records From Database Table / List
Com 1 ZZ03 Excel Magic Trick 358: Part 1: Return Multiple Items From One Lookup Value for Table
Excel Magic Trick 359: Part 2: Return Multiple Items From One Lookup Value for Column
Excel Magic Trick 360: Part 3: Return Multiple Items From One Lookup Value for Row

SIP Device
Other Device
Com 1

For more about Data Validation, see this video: Excel Magic Trick #5: Data Validation & VLOOKUP
For More about the IF function, see this video
series: Various Excel IF function Tricks
For more about Array Formulas, see this video
series: 08 Excel Series: Array Formulas 1-14
Use Ctrl + Shift + Enter for array formulas
For more about INDEX and MATCH, see these
videos: Highline Excel Class 44: Basics of INDEX & MATCH functions
Highline Excel Class 45: INDEX & MATCH 12 Unusual Examples

The ROW function tells you what row you are in


The ROWS function tells you how many rows
there are
The COLUMN function tells you what column
you are in
The COLUMNS function tells you how many
columns there are
Small function gives the smallest kth value, for
more, see this: Highline Excel Class 31: Histogram & LARGE SMALL functions
For more about Extarcting Data, see this video
series: Various Excel Extract Records From Database Table / List
For more about COUNTIF function, see this
video series: Excel Magic Trick #180: COUNTIF function formula 21 Examples
t this type of array formula:
abase Table / List

1 Examples
Make sure that the database has filed names in first row and data in
subsequent rows, no blanks, and no data in cells next to the table
Convert Database to a Table (Ctrl + T in 2007 and Ctrl + L in 2003) so
that the ranges are dynamic
Line Chart: Insert menu, Chart group, Line Chart
Excel 2007 7 2010: Alt + F1 creates default chart on active Sheet
To Change Chart Type: Right-click column and point to "Change
Series Chart Type"
Ctrl + 1 allows you to format selected Chart Element

Diastolic Blood Systolic Blood


Date Pressure 2 Pressure 1
8/9/2009 77 155
8/10/2009 66 135
8/11/2009 70 140
8/12/2009 89 161
8/13/2009 81 179
8/14/2009 81 156
8/15/2009 77 154
8/16/2009 86 180
8/17/2009 78 135
8/18/2009 82 143
8/19/2009 83 174
8/20/2009 72 130
8/21/2009 70 148
8/22/2009 81 131
8/23/2009 74 135
8/24/2009 72 127
8/25/2009 85 122
8/26/2009 63 157
Make sure that the database has filed names in first row and data in
subsequent rows, no blanks, and no data in cells next to the table
Convert Database to a Table (Ctrl + T in 2007 and Ctrl + L in 2003) so
that the ranges are dynamic
Line Chart: Insert menu, Chart group, Line Chart
Excel 2007 7 2010: Alt + F1 creates default chart on active Sheet
To Change Chart Type: Right-click column and point to "Change Series
Chart Type"
Ctrl + 1 allows you to format selected Chart Element

Diastolic Blood Systolic Blood


Date Pressure 2 Pressure 1
8/9/2009 77 155
8/10/2009 66 135
8/11/2009 70 140
8/12/2009 Systolic
89 Blood Pressure 1161 Diastolic Blood Pressure 2
8/13/2009 300 81 179
8/14/2009 81 156
8/15/2009 250 77 154
8/16/2009 200 86 180
8/17/2009 78 135
150
8/18/2009 82 143
8/19/2009 100 83 174
8/20/2009 50 72 130
8/21/2009 70 148
0
8/22/2009 81 9 1319
0 09 0 09 0 0 09 0 09 09 09 09 09
8/23/2009 /2 /2 74/2 0
/2 /20
135 /20 /20 /20 /20 /20
9 11 13 15 17 19 21 23 25 27
8/24/20098/ 8/ 8/ 72 8/ 8/ 127 8/ 8/ 8/ 8/ 8/
8/25/2009 85 122
8/26/2009 63 157
8/27/2009 80 158
8/28/2009 60 120
Data ROWS (count cells in range) ROWS tells how many rows are in the range
No Entry 14
No Entry COUNTA (not empty) COUNTA counts cells that are not empty (counts cells with fo
$3.00 12
$3.00 Count non-blank Meaning of this SUMPRODUCT(--(A2:A15<>"")) ==>> 1) <> m
$3.00 11.00 11.00 3) double negative converts TRUEs and FALSEs to 1s and
$4.00 Count Words
$5.00 11 Aladin For COUNTIF(A2:A15,"?*") ==>> ? Is a wildcard for a single c
None Count Numbers
6 COUNT function counts numbers
$555.00 Count Unique
7 #ADDIN? This part yields a 1 for each cell with a non-blank --(A2:A15<>
Over Count Duplicates For this formula, 1/COUNTIF(A2:A15,A2:A15&"")) ==>> 1) be
Over 4.00 this is an array formula that returns 1/2, 1/2 when the tw
Count Unique Numbers to .5 + .5 = 1. 2) The &"" at the end of the range A2:A15
4 Domenic Ctrl + C + C opens Clipboard, which allows to gather formula
4 pgc01
COUNTDIFF and UNIQUEVALUES functions are both More F
0 excelisfun th

Mr Excel Post:
w many rows are in the range

nts cells that are not empty (counts cells with formula that report blank)

is SUMPRODUCT(--(A2:A15<>"")) ==>> 1) <> means not, 2) A2:A15<>"" delivers TRUEs and FALSEs,
negative converts TRUEs and FALSEs to 1s and 0s.

A2:A15,"?*") ==>> ? Is a wildcard for a single character and * is a wildcard for multiple characters

on counts numbers

s a 1 for each cell with a non-blank --(A2:A15<>""), where the double negative is converting TRUEs to 1s.
ula, 1/COUNTIF(A2:A15,A2:A15&"")) ==>> 1) because the criteria argument has a range of values,
array formula that returns 1/2, 1/2 when the two items "Over", "Over" are listed twice, which adds up
= 1. 2) The &"" at the end of the range A2:A15 prevents "Divide By Zero" errors.
ens Clipboard, which allows to gather formula elements and then paste the elements to create a mega formula.

and UNIQUEVALUES functions are both More Func Add-in Functions. To see how to get and install this add-in, see
this video:

http://www.mrexcel.com/forum/showthread.php?t=409218
Excel Magic Trick 276 MoreFunc Excel add-in 66 New functions
Data ROWS (count cells in range) ROWS tells how many rows are in the range
No Entry 14
No Entry COUNTA (not empty) COUNTA counts cells that are not empty (counts cells with fo
$3.00 12
$3.00 Count non-blank Meaning of this SUMPRODUCT(--(A2:A15<>"")) ==>> 1) <> m
$3.00 11.00 11.00 3) double negative converts TRUEs and FALSEs to 1s and
$4.00 Count Words
$5.00 11 Aladin For COUNTIF(A2:A15,"?*") ==>> ? Is a wildcard for a single c
None Count Numbers
6 COUNT function counts numbers
$555.00 Count Unique
7 #ADDIN? This part yields a 1 for each cell with a non-blank --(A2:A15<>
Over Count Duplicates For this formula, 1/COUNTIF(A2:A15,A2:A15&"")) ==>> 1) be
Over 4.00 this is an array formula that returns 1/2, 1/2 when the tw
Count Unique Numbers to .5 + .5 = 1. 2) The &"" at the end of the range A2:A15
4 Domenic Ctrl + C + C opens Clipboard, which allows to gather formula
4 pgc01
COUNTDIFF and UNIQUEVALUES functions are both More F
0 excelisfun th

Mr Excel Post:
w many rows are in the range

nts cells that are not empty (counts cells with formula that report blank)

is SUMPRODUCT(--(A2:A15<>"")) ==>> 1) <> means not, 2) A2:A15<>"" delivers TRUEs and FALSEs,
negative converts TRUEs and FALSEs to 1s and 0s.

A2:A15,"?*") ==>> ? Is a wildcard for a single character and * is a wildcard for multiple characters

on counts numbers

s a 1 for each cell with a non-blank --(A2:A15<>""), where the double negative is converting TRUEs to 1s.
ula, 1/COUNTIF(A2:A15,A2:A15&"")) ==>> 1) because the criteria argument has a range of values,
array formula that returns 1/2, 1/2 when the two items "Over", "Over" are listed twice, which adds up
= 1. 2) The &"" at the end of the range A2:A15 prevents "Divide By Zero" errors.
ens Clipboard, which allows to gather formula elements and then paste the elements to create a mega formula.

and UNIQUEVALUES functions are both More Func Add-in Functions. To see how to get and install this add-in, see
this video:

http://www.mrexcel.com/forum/showthread.php?t=409218
Excel Magic Trick 276 MoreFunc Excel add-in 66 New functions
Return Address of First Non-Blank
Aladin at Mr Excel Message Board link: http://www.mrexcel.com/forum/showthread
ADDRESS function will yield a cell address if you give it row number, column
number and 4 for relative cell reference.
ROW function reports what row the function is in. COLUMN function reports
what column the function is in
B9:F9<>"" reports an array of TRUEs and FALSEs, TRUE for not blank (<> means
not)
MIN retrieves the smallest value from an array of values

Address of first non-blank

7
6
3

2 2 2 2
1 2 2 2

Array Formula Requires Ctrl + Shift + Enter


com/forum/showthread.php?t=53223
Return Address of First Non-Blank
Aladin at Mr Excel Message Board link: http://www.mrexcel.com/forum/showthrea
ADDRESS function will yield a cell address if you give it row number, column
number and 4 for relative cell reference.
ROW function reports what row the function is in. COLUMN function reports
what column the function is in
B9:F9<>"" reports an array of TRUEs and FALSEs, TRUE for not blank (<> means
not)
MIN retrieves the smallest value from an array of values

Address of first non-blank Formula for Excel 2003 or earlier

B10 3 B10

E12 7 E12
D13 6 D13
C14 3 C14

C17 2 2 2 2 C17
C18 1 2 2 2 C18

B20 5 B20

Array Formula Requires Ctrl + Shift + Enter


w.mrexcel.com/forum/showthread.php?t=53223

Formula for Excel 2003 or earlier


Return First Non-Blank Array Formula
Aladin at Mr Excel Message Board link: http://www.mrexcel.com/forum/showthre
For more about INDEX and MATCH, see these videos: Highline Excel Class 44: Basics of INDEX & M
Highline Excel Class 45: INDEX & MATCH 12
B9:F9<>"" reports an array of TRUEs and FALSEs, TRUE for not blank (<> means
not)

Array Formula Requires Ctrl + Shift + Enter


First Non-Blank ="" Formula for Excel 2003 or earlier

3 3

5 7 5
6 6
3 3

2 2 2 2 2
1 2 2 2 1

5 5
w.mrexcel.com/forum/showthread.php?t=53223
xcel Class 44: Basics of INDEX & MATCH functions
xcel Class 45: INDEX & MATCH 12 Unusual Examples

Formula for Excel 2003 or earlier


Return First Non-Blank Array Formula
Aladin at Mr Excel Message Board link: http://www.mrexcel.com/forum/showthre
For more about INDEX and MATCH, see these videos: Highline Excel Class 44: Basics of INDEX & M
Highline Excel Class 45: INDEX & MATCH 1
B9:F9<>"" reports an array of TRUEs and FALSEs, TRUE for not blank (<> means
not)

Array Formula Requires Ctrl + Shift + Enter


First Non-Blank ="" Formula for Excel 2003 or earli

3 3 3

5 5 7 5
6 6 6
3 3 3

2 2 2 2 2 2
1 1 2 2 2 1

5 5 5
w.mrexcel.com/forum/showthread.php?t=53223
xcel Class 44: Basics of INDEX & MATCH functions
xcel Class 45: INDEX & MATCH 12 Unusual Examples

Formula for Excel 2003 or earlier


Return First Non-Blank Non-Array Formula
Aladin at Mr Excel Message Board link: http://www.mrexcel.com/
For more about INDEX and MATCH, see these videos: Highline Excel Class 44: Bas
Highline Excel Class 45: IND
B9:F9<>"" reports an array of TRUEs and FALSEs, TRUE for not blank (<> means not)
Not an Array formula because we house the B9:F9<>"" in the INDEX function

First Non-Blank =""

7
6
3

2 2 2 2
1 2 2 2

5
http://www.mrexcel.com/forum/showthread.php?t=53223
Highline Excel Class 44: Basics of INDEX & MATCH functions
Highline Excel Class 45: INDEX & MATCH 12 Unusual Examples

Formula for Excel 2003 or earlier


Return First Non-Blank Non-Array Formula
Aladin at Mr Excel Message Board link: http://www.mrexcel.com/
For more about INDEX and MATCH, see these videos: Highline Excel Class 44: Bas
Highline Excel Class 45: IND
B9:F9<>"" reports an array of TRUEs and FALSEs, TRUE for not blank (<> means not)
Not an Array formula because we house the B9:F9<>"" in the INDEX function

First Non-Blank =""

7
6
3

2 2 2 2
1 2 2 2

5
http://www.mrexcel.com/forum/showthread.php?t=53223
Highline Excel Class 44: Basics of INDEX & MATCH functions
Highline Excel Class 45: INDEX & MATCH 12 Unusual Examples

Formula for Excel 2003 or earlier


% of Allocation
Account Income Amount $25,000.00
Account1 3.00%
Account2 2.00% Allocation For 3 Accounts
Account3 10.00%
Account4 6.50%
Account5 8.00% Account1
Account6 15.00% Account4
Account7 22.00% Account6
Account8 4.00%
Account9 3.50%
Account10 5.00%
Account11 3.00%
Account12 2.00%
Account13 0.50%
Account14 4.00%
Account15 3.00%
Account16 8.50%
100%
% of Allocation
Account Income Amount $25,000.00
Account1 3.00%
Account2 2.00% Allocation For 4 Accounts
Account3 10.00% $9,875.00
Account4 6.50%
Account5 8.00% Account3
Account6 15.00% Account4
Account7 22.00% Account6
Account8 4.00% Account5
Account9 3.50%
Account10 5.00%
Account11 3.00%
Account12 2.00%
Account13 0.50%
Account14 4.00%
Account15 3.00%
Account16 8.50%
100%
0 = FALSE
Any other number besides 0 is TRUE
0.000000004
Amount Category
-9 Up or Down

Seattle
Olympia
Kent
0 = FALSE
Any other number besides 0 is TRUE
0.000000004 T
Amount Category
-9 Up or Down

Seattle
Olympia
Kent
Excel Magic Trick 368: Count Unique Items With More Than One Criteria
For the IF function, 0 = FALSE
For the IF function, any number besides 0 is TRUE
FEQUENCY function counts given data_bins (upper limits for the class)
MATCH function will return position of first item when there are dulpicates
For more about the FREQUENCY function, see this video: Excel Array Formula Series #8: FREQUENCY function
For more about the MATCH function, see this video: Highline Excel Class 43: MATCH function
For more about the IF function and arrays, see this video Excel Magic Trick #145 p1 MEDIAN IF

Sample Data Sample Data


Measure
Site ment Site Y/N Voter Y/N
Olympia 0.25 Seattle Yes Chin Yes
Seattle 0.2 Unique Records No Jo Unique Records
Seattle 0.2 No Fran
Olympia 0.16 #N/A Yes Chin #N/A
Tumwater 0.28 No Sioux
Federal W 0.25 No Tina
Kent 0.15 Yes Sue
Seattle 0.16 Yes Sue
Seattle 0.13 No Fred
Seattle 0.2 Yes Sue
Olympia 0.2 No Jo

Tumwater 0.09
Kent 0.15
Federal W 0.13
Tumwater 0.26
Federal W 0.08
Olympia 0.25
Lacey 0.12
Lacey 0.16
Kent 0.16
Tukwilla 0.28
Federal W 0.2
Lacey 0.1
Tacoma 0.25
Lacey 0.24
Kent 0.2
Seattle 0.14
Tumwater 0.2
Seattle 0.22
Olympia 0.28
Tukwilla 0.15
Kent 0.17
Tumwater 0.23
Olympia 0.09
Lacey 0.13
Olympia 0.11
Tukwilla 0.11
Seattle 0.23
Kent 0.25
Tukwilla 0.13
Tukwilla 0.13
Tacoma 0.1
Tumwater 0.11
Tumwater 0.18
Tukwilla 0.12
Tumwater 0.08
Seattle 0.15
Seattle 0.13
Kent 0.1
Tumwater 0.1
Kent 0.2
Kent 0.26
Seattle 0.2
Kent 0.26
Federal W 0.17
Tumwater 0.24
Federal W 0.16
Lacey 0.28
Kent 0.17
Kent 0.12
Tacoma 0.21
Lacey 0.2
Olympia 0.25
Olympia 0.12
Tukwilla 0.27
Seattle 0.1
Olympia 0.17
Tumwater 0.19
Lacey 0.13
Lacey 0.18
Tukwilla 0.14
Tumwater 0.17
Kent 0.28
Tukwilla 0.14
Seattle 0.14
Seattle 0.12
Tumwater 0.12
Tacoma 0.16
Tukwilla 0.21
Olympia 0.1
Federal W 0.14
Kent 0.23
Tumwater 0.23
Federal W 0.2
Tumwater 0.12
Lacey 0.19
Kent 0.13
Olympia 0.24
Tumwater 0.16
Kent 0.23
Tukwilla 0.27
Olympia 0.13
Olympia 0.27
Tumwater 0.21
Seattle 0.1
Lacey 0.23
Tacoma 0.26
Kent 0.2
Tumwater 0.27
Tukwilla 0.09
Olympia 0.15
Tukwilla 0.22
Seattle 0.23
Tacoma 0.17
Lacey 0.12
Tukwilla 0.25
Tumwater 0.14
Tumwater 0.16
Kent 0.08
Olympia 0.16
Seattle 0.2
Tumwater 0.22
Tumwater 0.18
Tukwilla 0.17
Seattle 0.16
Olympia 0.08
Tumwater 0.2
Tukwilla 0.13
Olympia 0.12
Lacey 0.23
Tukwilla 0.28
Tumwater 0.08
Seattle 0.26
Kent 0.19
Tacoma 0.16
Seattle 0.17
Kent 0.28
Tukwilla 0.15
Seattle 0.25
Lacey 0.15
Tacoma 0.08
Tukwilla 0.17
Federal W 0.13
Seattle 0.2
Tacoma 0.13
Seattle 0.15
Federal W 0.14
Seattle 0.2
Kent 0.11
Seattle 0.08
Federal W 0.22
Kent 0.15
Kent 0.14
Lacey 0.22
Tukwilla 0.16
Tukwilla 0.19
Federal W 0.11
Federal W 0.25
Lacey 0.22
Olympia 0.21
Tumwater 0.15
Seattle 0.11
Lacey 0.15
Seattle 0.12
Federal W 0.12
Kent 0.08
Tacoma 0.09
Tumwater 0.16
Tukwilla 0.26
Kent 0.1
Seattle 0.1
Olympia 0.19
Olympia 0.18
Seattle 0.13
Federal W 0.28
Tukwilla 0.08
Olympia 0.13
Seattle 0.17
Lacey 0.23
Tumwater 0.19
Tumwater 0.17
Tumwater 0.27
Lacey 0.22
Federal W 0.24
Lacey 0.23
Seattle 0.17
Tacoma 0.09
Olympia 0.13
Tacoma 0.17
Kent 0.15
Olympia 0.12
Tumwater 0.16
Kent 0.22
Olympia 0.18
Olympia 0.21
Lacey 0.22
Federal W 0.16
Tukwilla 0.2
Tacoma 0.1
Seattle 0.17
Seattle 0.17
Tacoma 0.18
Seattle 0.22
Kent 0.28
Tumwater 0.14
Tukwilla 0.2
Tacoma 0.2
Tacoma 0.23
Tacoma 0.23
Tukwilla 0.13
Lacey 0.2
Seattle 0.2
Federal W 0.14
Tukwilla 0.14
Federal W 0.2
Olympia 0.17
Lacey 0.23
Seattle 0.15
Olympia 0.26
Tumwater 0.08
Olympia 0.23
Tumwater 0.12
Lacey 0.12
Seattle 0.25
Kent 0.09
Seattle 0.12
Seattle 0.12
Tumwater 0.25
Tukwilla 0.09
Kent 0.19
Tacoma 0.23
Kent 0.13
Kent 0.19
Seattle 0.13
Olympia 0.26
Lacey 0.13
Federal W 0.21
Seattle 0.27
Kent 0.1
Kent 0.08
Tacoma 0.26
Olympia 0.27
Olympia 0.21
Tukwilla 0.21
Federal W 0.14
Federal W 0.25
Tumwater 0.16
Federal W 0.15
Lacey 0.09
Tacoma 0.13
Tukwilla 0.13
Olympia 0.17
Seattle 0.13
Kent 0.24
Federal W 0.08
Seattle 0.08
Tumwater 0.25
Tacoma 0.23
Tumwater 0.13
Federal W 0.26
Seattle 0.09
Kent 0.25
Olympia 0.26
Olympia 0.1
Federal W 0.23
Federal W 0.23
Tumwater 0.18
Tacoma 0.22
Olympia 0.15
Tacoma 0.16
Seattle 0.14
Seattle 0.18
Tacoma 0.2
Federal W 0.13
Olympia 0.1
Olympia 0.27
Tacoma 0.28
Tukwilla 0.17
Tacoma 0.19
Tukwilla 0.11
Tumwater 0.26
Tacoma 0.22
Federal W 0.23
Seattle 0.14
Tukwilla 0.13
Lacey 0.08
Federal W 0.22
Kent 0.2
Lacey 0.12
Kent 0.19
Lacey 0.2
Seattle 0.22
Tukwilla 0.16
Lacey 0.09
Federal W 0.16
Seattle 0.12
Federal W 0.14
Kent 0.19
Kent 0.28
Kent 0.2
Olympia 0.17
Olympia 0.21
Tumwater 0.17
Olympia 0.1
Seattle 0.21
Tukwilla 0.21
Kent 0.11
Tacoma 0.28
Seattle 0.17
Tacoma 0.2
Tukwilla 0.09
Tumwater 0.14
Tumwater 0.15
Tumwater 0.2
Kent 0.19
Kent 0.1
Seattle 0.2
Tukwilla 0.21
Lacey 0.2
Federal W 0.2
Kent 0.09
Lacey 0.09
Kent 0.11
Federal W 0.27
Lacey 0.27
Seattle 0.21
Olympia 0.28
Tukwilla 0.17
Federal W 0.12
Seattle 0.28
Seattle 0.1
Tukwilla 0.15
Tukwilla 0.08
Tumwater 0.22
Seattle 0.16
Federal W 0.15
Tumwater 0.14
Federal W 0.08
Lacey 0.21
Tukwilla 0.21
Seattle 0.11
Tacoma 0.24
Tumwater 0.1
Lacey 0.19
Tumwater 0.15
Federal W 0.25
Olympia 0.16
Tukwilla 0.16
Olympia 0.17
Tumwater 0.21
Seattle 0.22
Tukwilla 0.28
Tumwater 0.23
Olympia 0.21
Tumwater 0.2
Federal W 0.27
Tumwater 0.22
Seattle 0.08
Tukwilla 0.17
Olympia 0.12
Tukwilla 0.23
Seattle 0.14
Federal W 0.19
Federal W 0.12
Tacoma 0.24
Tukwilla 0.25
Lacey 0.18
Lacey 0.24
Sites
Olympia

Tacoma
Lacey
Tumwater
Federal Way
Tukwilla
Seattle
Kent
Excel Magic Trick 368: Count Unique Items With More Than One Criteria
For the IF function, 0 = FALSE
For the IF function, any number besides 0 is TRUE
FEQUENCY function counts given data_bins (upper limits for the class)
MATCH function will return position of first item when there are dulpicates
For more about the FREQUENCY function, see this video: Excel Array Formula Series #8: FREQUENCY function
For more about the MATCH function, see this video: Highline Excel Class 43: MATCH function
For more about the IF function and arrays, see this video Excel Magic Trick #145 p1 MEDIAN IF

Sample Data Sample Data


Measure
Site ment Site Y/N Voter Y/N
Olympia 0.25 Seattle Yes Chin Yes 1 1
Seattle 0.2 Unique Records No Jo Unique Records 0 2
Seattle 0.2 3 No Fran 2 0 3
Olympia 0.16 #N/A Yes Chin #N/A 1 4
Tumwater 0.28 No Sioux 0 5
Federal W 0.25 No Tina 0 6
Kent 0.15 Yes Sue 7 7
Seattle 0.16 Yes Sue 7 8
Seattle 0.13 No Fred 0 9
Seattle 0.2 Yes Sue 7 10
Olympia 0.2 No Jo 0 11

Tumwater 0.09
Kent 0.15
Federal W 0.13
Tumwater 0.26
Federal W 0.08
Olympia 0.25
Lacey 0.12
Lacey 0.16
Kent 0.16
Tukwilla 0.28
Federal W 0.2
Lacey 0.1
Tacoma 0.25
Lacey 0.24
Kent 0.2
Seattle 0.14
Tumwater 0.2
Seattle 0.22
Olympia 0.28
Tukwilla 0.15
Kent 0.17
Tumwater 0.23
Olympia 0.09
Lacey 0.13
Olympia 0.11
Tukwilla 0.11
Seattle 0.23
Kent 0.25
Tukwilla 0.13
Tukwilla 0.13
Tacoma 0.1
Tumwater 0.11
Tumwater 0.18
Tukwilla 0.12
Tumwater 0.08
Seattle 0.15
Seattle 0.13
Kent 0.1
Tumwater 0.1
Kent 0.2
Kent 0.26
Seattle 0.2
Kent 0.26
Federal W 0.17
Tumwater 0.24
Federal W 0.16
Lacey 0.28
Kent 0.17
Kent 0.12
Tacoma 0.21
Lacey 0.2
Olympia 0.25
Olympia 0.12
Tukwilla 0.27
Seattle 0.1
Olympia 0.17
Tumwater 0.19
Lacey 0.13
Lacey 0.18
Tukwilla 0.14
Tumwater 0.17
Kent 0.28
Tukwilla 0.14
Seattle 0.14
Seattle 0.12
Tumwater 0.12
Tacoma 0.16
Tukwilla 0.21
Olympia 0.1
Federal W 0.14
Kent 0.23
Tumwater 0.23
Federal W 0.2
Tumwater 0.12
Lacey 0.19
Kent 0.13
Olympia 0.24
Tumwater 0.16
Kent 0.23
Tukwilla 0.27
Olympia 0.13
Olympia 0.27
Tumwater 0.21
Seattle 0.1
Lacey 0.23
Tacoma 0.26
Kent 0.2
Tumwater 0.27
Tukwilla 0.09
Olympia 0.15
Tukwilla 0.22
Seattle 0.23
Tacoma 0.17
Lacey 0.12
Tukwilla 0.25
Tumwater 0.14
Tumwater 0.16
Kent 0.08
Olympia 0.16
Seattle 0.2
Tumwater 0.22
Tumwater 0.18
Tukwilla 0.17
Seattle 0.16
Olympia 0.08
Tumwater 0.2
Tukwilla 0.13
Olympia 0.12
Lacey 0.23
Tukwilla 0.28
Tumwater 0.08
Seattle 0.26
Kent 0.19
Tacoma 0.16
Seattle 0.17
Kent 0.28
Tukwilla 0.15
Seattle 0.25
Lacey 0.15
Tacoma 0.08
Tukwilla 0.17
Federal W 0.13
Seattle 0.2
Tacoma 0.13
Seattle 0.15
Federal W 0.14
Seattle 0.2
Kent 0.11
Seattle 0.08
Federal W 0.22
Kent 0.15
Kent 0.14
Lacey 0.22
Tukwilla 0.16
Tukwilla 0.19
Federal W 0.11
Federal W 0.25
Lacey 0.22
Olympia 0.21
Tumwater 0.15
Seattle 0.11
Lacey 0.15
Seattle 0.12
Federal W 0.12
Kent 0.08
Tacoma 0.09
Tumwater 0.16
Tukwilla 0.26
Kent 0.1
Seattle 0.1
Olympia 0.19
Olympia 0.18
Seattle 0.13
Federal W 0.28
Tukwilla 0.08
Olympia 0.13
Seattle 0.17
Lacey 0.23
Tumwater 0.19
Tumwater 0.17
Tumwater 0.27
Lacey 0.22
Federal W 0.24
Lacey 0.23
Seattle 0.17
Tacoma 0.09
Olympia 0.13
Tacoma 0.17
Kent 0.15
Olympia 0.12
Tumwater 0.16
Kent 0.22
Olympia 0.18
Olympia 0.21
Lacey 0.22
Federal W 0.16
Tukwilla 0.2
Tacoma 0.1
Seattle 0.17
Seattle 0.17
Tacoma 0.18
Seattle 0.22
Kent 0.28
Tumwater 0.14
Tukwilla 0.2
Tacoma 0.2
Tacoma 0.23
Tacoma 0.23
Tukwilla 0.13
Lacey 0.2
Seattle 0.2
Federal W 0.14
Tukwilla 0.14
Federal W 0.2
Olympia 0.17
Lacey 0.23
Seattle 0.15
Olympia 0.26
Tumwater 0.08
Olympia 0.23
Tumwater 0.12
Lacey 0.12
Seattle 0.25
Kent 0.09
Seattle 0.12
Seattle 0.12
Tumwater 0.25
Tukwilla 0.09
Kent 0.19
Tacoma 0.23
Kent 0.13
Kent 0.19
Seattle 0.13
Olympia 0.26
Lacey 0.13
Federal W 0.21
Seattle 0.27
Kent 0.1
Kent 0.08
Tacoma 0.26
Olympia 0.27
Olympia 0.21
Tukwilla 0.21
Federal W 0.14
Federal W 0.25
Tumwater 0.16
Federal W 0.15
Lacey 0.09
Tacoma 0.13
Tukwilla 0.13
Olympia 0.17
Seattle 0.13
Kent 0.24
Federal W 0.08
Seattle 0.08
Tumwater 0.25
Tacoma 0.23
Tumwater 0.13
Federal W 0.26
Seattle 0.09
Kent 0.25
Olympia 0.26
Olympia 0.1
Federal W 0.23
Federal W 0.23
Tumwater 0.18
Tacoma 0.22
Olympia 0.15
Tacoma 0.16
Seattle 0.14
Seattle 0.18
Tacoma 0.2
Federal W 0.13
Olympia 0.1
Olympia 0.27
Tacoma 0.28
Tukwilla 0.17
Tacoma 0.19
Tukwilla 0.11
Tumwater 0.26
Tacoma 0.22
Federal W 0.23
Seattle 0.14
Tukwilla 0.13
Lacey 0.08
Federal W 0.22
Kent 0.2
Lacey 0.12
Kent 0.19
Lacey 0.2
Seattle 0.22
Tukwilla 0.16
Lacey 0.09
Federal W 0.16
Seattle 0.12
Federal W 0.14
Kent 0.19
Kent 0.28
Kent 0.2
Olympia 0.17
Olympia 0.21
Tumwater 0.17
Olympia 0.1
Seattle 0.21
Tukwilla 0.21
Kent 0.11
Tacoma 0.28
Seattle 0.17
Tacoma 0.2
Tukwilla 0.09
Tumwater 0.14
Tumwater 0.15
Tumwater 0.2
Kent 0.19
Kent 0.1
Seattle 0.2
Tukwilla 0.21
Lacey 0.2
Federal W 0.2
Kent 0.09
Lacey 0.09
Kent 0.11
Federal W 0.27
Lacey 0.27
Seattle 0.21
Olympia 0.28
Tukwilla 0.17
Federal W 0.12
Seattle 0.28
Seattle 0.1
Tukwilla 0.15
Tukwilla 0.08
Tumwater 0.22
Seattle 0.16
Federal W 0.15
Tumwater 0.14
Federal W 0.08
Lacey 0.21
Tukwilla 0.21
Seattle 0.11
Tacoma 0.24
Tumwater 0.1
Lacey 0.19
Tumwater 0.15
Federal W 0.25
Olympia 0.16
Tukwilla 0.16
Olympia 0.17
Tumwater 0.21
Seattle 0.22
Tukwilla 0.28
Tumwater 0.23
Olympia 0.21
Tumwater 0.2
Federal W 0.27
Tumwater 0.22
Seattle 0.08
Tukwilla 0.17
Olympia 0.12
Tukwilla 0.23
Seattle 0.14
Federal W 0.19
Federal W 0.12
Tacoma 0.24
Tukwilla 0.25
Lacey 0.18
Lacey 0.24
Sites
Olympia

Tacoma
8 Lacey
0 Tumwater
0 Federal Way
0 Tukwilla
0 Seattle
0 Kent
3
0
0
0
0
2
how many non-matching
values
Set-1 Set-2
Field 1 Field 2 Field 1 Field 2 NonMatching records
8/10/2009 $1,212.00 8/10/2009 $1,212.00 Field 1 Field 2
8/11/2009 $528.00 8/13/2009 $1,527.00 <<== Be sure to Ctrl + Shift + Ente
8/12/2009 $1,053.00 8/16/2009 $1,088.00
8/13/2009 $1,527.00 8/17/2009 $809.00
8/14/2009 $1,074.00 8/18/2009 $1,325.00
8/15/2009 $1,689.00
8/16/2009 $1,088.00
8/17/2009 $809.00
8/18/2009 $1,325.00
8/19/2009 $699.00
8/20/2009 $1,316.00
<<== Be sure to Ctrl + Shift + Enter
how many non-matching
values
Set-1 Set-2 6
Field 1 Field 2 Field 1 Field 2 NonMatching records
8/10/2009 $1,212.00 8/10/2009 $1,212.00 Field 1 Field 2
8/11/2009 $528.00 8/13/2009 $1,527.00 8/11/2009 $528.00
8/12/2009 $1,053.00 8/16/2009 $1,088.00 8/12/2009 $1,053.00
8/13/2009 $1,527.00 8/17/2009 $809.00 8/14/2009 $1,074.00
8/14/2009 $1,074.00 8/18/2009 $1,325.00 8/15/2009 $1,689.00
8/15/2009 $1,689.00 8/19/2009 $699.00
8/16/2009 $1,088.00 1 8/20/2009 $1,316.00
8/17/2009 $809.00
8/18/2009 $1,325.00
8/19/2009 $699.00
8/20/2009 $1,316.00
how many non-matching
values
Set-1 Set-2 6
Field 1 Field 2 Field 1 Field 2 NonMatching records
8/10/2009 $1,212.00 8/10/2009 $1,212.00 Row Position Field 1 Field 2
8/11/2009 $528.00 8/13/2009 $1,527.00 2 8/11/2009 $528.00
8/12/2009 $1,053.00 8/16/2009 $1,088.00 3 8/12/2009 $1,053.00
8/13/2009 $1,527.00 8/17/2009 $809.00 5 8/14/2009 $1,074.00
8/14/2009 $1,074.00 8/18/2009 $1,325.00 6 8/15/2009 $1,689.00
8/15/2009 $1,689.00 10 8/19/2009 $699.00
8/16/2009 $1,088.00 11 8/20/2009 $1,316.00
8/17/2009 $809.00
8/18/2009 $1,325.00
8/19/2009 $699.00
8/20/2009 $1,316.00

You might also like