Match Index Offset
Match Index Offset
***Data Validation allows you to limit the value that is input into a cell
Data Set
Revenue Gross Profit IOT IMT PTI Expense Cost Headcount
$465,841 $382,086 NA United States $359,805 $22,281 $83,755 1,250
$207,759 $130,060 NA Canada $116,491 $13,569 $77,700 560
$911,718 $877,906 SW Italy $853,721 $24,185 $33,812 293
$538,263 $397,842 NE UKI $376,188 $21,654 $140,421 586
$319,369 $305,627 NE Alps $277,139 $28,488 $13,742 185
$155,803 $100,582 SW SPGI $99,357 $1,226 $55,221 771
$838,436 $698,097 GMU Korea $679,780 $18,317 $140,340 957
$862,833 $839,479 GMU GCG $824,717 $14,762 $23,353 295
$941,491 $895,349 GMU ASEAN $892,888 $2,461 $46,142 682
1) Set up Data Validation in Cells C17 & C18 to limit the selection to only include IMTs in Cell C17 & Column Header in
Data Validation Solution
IMT -> IMT -> Italy
Column Header-> Column Header-> Expense
2) Set up two formulas (Cells C27:C28) to show in the Data set above what Row & Column the selected IMT (C17) & C
---Example) IMT-'Italy' & Column Header 'Expense' -would show up in Row-4 & Column-6
1c) Within the Data Validation box that pops up under the S
Allow "List"….make sure both boxes to the right are check
n Cell C17 & Column Header in Cell C18 When selecting your range you want to make sure you inc
in Match and select Go ->Select Match from the 'Select a function' box and click OK
up_array / Match_type
you want to lookup
ou want to lookup (must be a single column or row)
ns an exact match -used most of the time)
INDEX FORMULA
***An Index formula returns a single cell value within a table by going down 'x' amount of rows and over 'x' amount of column
Data Set
Revenue Gross Profit IOT IMT PTI Expense Cost Headcount
$465,841 $382,086 NA United States $359,805 $22,281 $83,755 1,250
$207,759 $130,060 NA Canada $116,491 $13,569 $77,700 560
$911,718 $877,906 SW Italy $853,721 $24,185 $33,812 293
$538,263 $397,842 NE UKI $376,188 $21,654 $140,421 586
$319,369 $305,627 NE Alps $277,139 $28,488 $13,742 185
$155,803 $100,582 SW SPGI $99,357 $1,226 $55,221 771
$838,436 $698,097 GMU Korea $679,780 $18,317 $140,340 957
$862,833 $839,479 GMU GCG $824,717 $14,762 $23,353 295
$941,491 $895,349 GMU ASEAN $892,888 $2,461 $46,142 682
1b) Type into Search "Index" and click Go --->Highlight INDEX in 'Select a function' and click 'O
1c) If the below box pops up -select the highlighted box and click 'OK'
Data Set
Revenue Gross Profit IOT IMT PTI Expense Cost Headcount
$465,841 $382,086 NA United States $359,805 $22,281 $83,755 1,250
$207,759 $130,060 NA Canada $116,491 $13,569 $77,700 560
$911,718 $877,906 SW Italy $853,721 $24,185 $33,812 293
$538,263 $397,842 NE UKI $376,188 $21,654 $140,421 586
$319,369 $305,627 NE Alps $277,139 $28,488 $13,742 185
$155,803 $100,582 SW SPGI $99,357 $1,226 $55,221 771
$838,436 $698,097 GMU Korea $679,780 $18,317 $140,340 957
$862,833 $839,479 GMU GCG $824,717 $14,762 $23,353 295
$941,491 $895,349 GMU ASEAN $892,888 $2,461 $46,142 682
1) Set up data Validation in Cell C19 (Column Headers) & Cell B20 (IMT)
2) In Cell C20 create a formula that will automatically return the value of the selected IMT/Column Header
Column Header
IMT =INDEX($B$5:$I$14,MATCH(B20,E5:E14,0),MATCH(C19,B5:I5,0))
PRACTICE PROBLEM
Update the yellow shaded cells with formulas that update based on the selected IMT/Column header
Expense Cost Revenue
IMT
IMT
IMT
SOLUTION
Expense Cost Revenue
Alps $28,488 $13,742 $319,369
Korea $18,317 $140,340 $838,436
GCG $14,762 $23,353 $862,833
***Must ensure locked cells ($$) are correct within formula to allow a single formula to be used
Step-by-Step Solution
1) Set up Data validation
Data->Data Validation
Column Headers
MT/Column Header
lumn header 2) In Cell C20 create a formula that will automatically return the value of the sele
For this formula we are combing the Index formula along with the MATCH formu
# of Rows to move
within index
# of Columns to move
within index
o you want to go
rom left to right do you want to go
Cost is the 7th column over
our Index Formula
PRACTICE PROBLEM -Using Match/Index
***Populate cells in yellow with Top 5 and Bottom 5
IOT Brand Territory Revenue Objective % Attain Attain Rank PRACTICE PROBLEM
GMU SWG 109 $1,349 $2,286 59% 25 Rank
NA STG 122 $768 $1,259 61% 23 x
SW SWG 128 $180 $249 72% 16 x
Top 5
NE STG 108 $1,354 $1,549 87% 3 x
NE STG 115 $1,473 $1,978 74% 14 x
NE SWG 101 $2,316 $2,702 86% 5 x
JP GBS 126 $1,587 $2,210 72% 17
SW SWG 123 $1,013 $1,850 55% 28
GMU GTS 114 $1,044 $1,762 59% 24 x
Bottom 5
JP SWG 124 $1,674 $2,156 78% 10 x
NE STG 119 $1,812 $2,387 76% 13 x
GMU GBS 127 $962 $1,255 77% 12 x
NA STG 121 $1,954 $2,484 79% 8 x
GMU STG 104 $2,426 $2,941 83% 7
NE GBS 111 $1,274 $2,497 51% 30
NA STG 116 $698 $1,109 63% 22
SW STG 120 $2,178 $2,801 78% 9
GMU SWG 102 $1,592 $2,786 57% 27
NE GBS 113 $322 $464 69% 19
GMU GBS 112 $1,598 $2,267 71% 18
GMU GBS 118 $1,873 $2,243 84% 6
SW GBS 105 $2,024 $2,762 73% 15
GMU GTS 125 $377 $438 86% 4
SW GTS 103 $417 $433 96% 1
SW GBS 129 $1,216 $1,575 77% 11
NE GTS 106 $1,354 $2,542 53% 29
GMU GBS 110 $2,698 $2,937 92% 2
JP SWG 107 $218 $325 67% 20
NA GBS 130 $708 $1,086 65% 21
JP GBS 117 $1,555 $2,656 59% 26
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
ACTICE PROBLEM SOLUTION
Territory IOT Brand Revenue Rank Territory IOT Brand
1 103 SW GTS
2 110 GMU GBS
Top 5
3 108 NE STG
4 125 GMU GTS
5 101 NE SWG
26 117 JP GBS
Bottom 5
27 102 GMU SWG
28 123 SW SWG
29 106 NE GTS
30 111 NE GBS
Revenue
417
2,698
1,354
377
2,316
1,555
1,592
1,013
1,354
1,274
OFFSET PRACTICE PROBLEM
EXAMPLE 1
12 =SUM(OFFSET(C5,2,1,3,4))
1 1 1 1
1 1 1 1
1 1 1 1
=SUM(OFFSET(C5,2,1,3,4))
# of columns
Starting Point
in new table
array
From Start Cell -move # of rows in
down ___ cells new table
array
From Start Cell -move
right ___ cells
EXAMPLE 2
3 =OFFSET(N6,3,-2,1,1)
<----Reference Cell
PRACTICE PROBLEM
Input an OFFSET Formula into cell K17, that returns the value in cell P17 with a Reference cell of M22
well done
***Once you Complete the above Practice Problem move onto 'PRACTICE #2' Tab
OFFSET Formula
Data Set
RevenueGross ProfitIOT IMT PTI Expense Cost Headcount
$465,841 $382,086 NA United Sta $359,805 $22,281 $83,755 1,250
$207,759 $130,060 NA Canada $116,491 $13,569 $77,700 560
$911,718 $877,906 SW Italy $853,721 $24,185 $33,812 293
$538,263 $397,842 NE UKI $376,188 $21,654 $140,421 586
$319,369 $305,627 NE Alps $277,139 $28,488 $13,742 185
$155,803 $100,582 SW SPGI $99,357 $1,226 $55,221 771
$838,436 $698,097 GMU Korea $679,780 $18,317 $140,340 957
$862,833 $839,479 GMU GCG $824,717 $14,762 $23,353 295
$941,491 $895,349 GMU ASEAN $892,888 $2,461 $46,142 682
From Starting Cell B5 you want to move down 1 rows & to the right 5 columns
From Starting Cell B5 you want to move down 9 rows & to the right 0 columns
***Note: With OFFSET formulas you do not count the cell you are in when determining how many cells to move
--->So if I want Gross Profit, even though it is the 2nd column in the table. From my starting cell of B5 I only want to move over 1 cell
want to move over 1 cell
Combining MATCH / OFFSET FORMULAS
Data Set
Revenue Gross Profit IOT IMT PTI Expense Cost Headcount
$465,841 $382,086 NA United States $359,805 $22,281 $83,755 1,250
$207,759 $130,060 NA Canada $116,491 $13,569 $77,700 560
$911,718 $877,906 SW Italy $853,721 $24,185 $33,812 293
$538,263 $397,842 NE UKI $376,188 $21,654 $140,421 586
$319,369 $305,627 NE Alps $277,139 $28,488 $13,742 185
$155,803 $100,582 SW SPGI $99,357 $1,226 $55,221 771
$838,436 $698,097 GMU Korea $679,780 $18,317 $140,340 957
$862,833 $839,479 GMU GCG $824,717 $14,762 $23,353 295
$941,491 $895,349 GMU ASEAN $892,888 $2,461 $46,142 682
1) In Cell C20 create an OFFSET formula that will automatically return the value of the selected IMT/Column Header
Revenue
Canada =OFFSET(B5,MATCH(B20,$E$5:$E$14,0)-1,MATCH(C19,$B$5:$I$5,0)-1,1,1)
PRACTICE PROBLEM
Update the yellow shaded cells with OFFSET formulas that update based on the selected IMT/Column header
Expense Cost Revenue
IMT
IMT
IMT
SOLUTION
Expense Cost Revenue
Alps $28,488 $13,742 $319,369
Korea $18,317 $140,340 $838,436
GCG $14,762 $23,353 $862,833
***Must ensure locked cells ($$) are correct within formula to allow a single formula to be used
Step-by-Step Solution
1) In Cell C20 create an OFFSET formula that will automatically return the value o
For this formula we are combing the Offset formula along with the MATCH form
***Since we do not count our starting cell we must subtract one from our MAT
I$5,0)-1,1,1)
IMT/Column header
tically return the value of the selected IMT/Column Header
g with the MATCH formula. By doing this the Match formula automates how many Rows/Columns to move within our Offset Formula
tract one from our MATCH Results
Data Set
Year Month Expense ($M) Year Month
2012 Jan $40 Prior Month
2012 Feb $30 Current Month
2012 Mar $98
2012 Apr $85
2012 May $86
2012 Jun $25
2012 Jul $66
2012 Aug $62
2012 Sep $11 SOLUTION #1 Year Month
Prior Month 2012 Aug
Current Month 2012 Sep
Expense ($M)
To Return the Year we want to move 0 cells to the right (1 to the right for Month) & 2 to
In Solution#2 we automate the number of cells to move to the right using the Match fun
Expense ($M) We are looking for a single cell value so end the Offset formula with 1,1
62.0
11.0
Expense ($M)
62.0
11.0
nt the number of Non-Blank cells to move down
to subtract one to get Current Month and subtract two to return Prior Month
Data Set
Lc Div Maj Minor Acctmo Hours Amtloc Deptnum Proj Serial
00 T2 750 8665 06 97 $ 5,820 G5D ABB
00 T2 750 8665 09 136 $ 8,148 G5D K9G
00 T2 806 9770 09 190 $ 11,407 4ST K9G
00 T2 806 9770 03 19 $ 1,164 4ST K9G
00 T2 806 0190 08 373 $ 22,358 GE5 K9G 381984
00 T2 806 9770 06 522 $ 31,301 4ST ABB
00 T2 750 0300 07 730 $ 43,822 G5D K9G 819246
00 T2 806 0100 05 75 $ 4,472 GEM K9G 160373
00 T2 806 0100 09 1,432 $ 85,891 X3G K9G 116668
If you created a Pivot table using the above range any time you added data to the right you would need to manually update the
A solution to this problem is creating a Named Range using an Offset formula ->Then reference that Named range in your Pivo
***This only works as long as there is no additional data in Row 4 -otherwise those addt'l rows would be picked up in your nam
This would cause an error in your pivot as a pivot table cannot be created with blank column headers
Voucher Nbr Cdate Fid Mnr Unit
D1H0604 20080625 990 RECOVERIES Step-by-Step Solution
D1H0908 20080930 990 RECOVERIES Create a Named Range using an OFFSET formula
F0U0918 20081001 990 IBM SUB-K 1a) Formulas ->Name Manager -> "NEW"
C5R0310 20080404 990 IBM SUB-K
BUR800 20080827 024 LABOR
F0U0640 20080702 990 IBM SUB-K
TEA0153 20080730 995 TRAVEL
BUR800 20080522 024 LABOR
BUR800 20080926 024 LABOR
- "Pivot_Range"
nnot contain spaces or begin with numeric
ula is counting the number of rows/columns in the data set starting with the beginning cell (A4)