You are on page 1of 18

Copyright Notice

The content in this file was created by Mynda Treacy from My Online Training Hub.
Individual users are permitted to recreate the examples for personal practice only.
Recreating the examples for training or demonstration to others is not permitted, unless writt

The workbook and any sheets within must be accompanied by the following copyright notice:

This sheet must remain in any file that uses this data and or these techniques.
Any uses of this workbook and/or data must include the above attribution.
mitted, unless written consent is granted by Mynda Treacy.

g copyright notice: My Online Training Hub ©.


INDEX Function click here to read tutorial

The Excel INDEX function has two syntax options:

The first version takes an array of values, and the other takes a reference to a cell, or range of cells. You don’t
which syntax to use, Excel will decide that based on the inputs.

The output can be a single value, an array of values or a reference to a cell or range of cells. The output will d
the context of the formula. For example, whether the formula is entered in a single cell, nested inside anothe
array entered etc.
r range of cells. You don’t choose

of cells. The output will depend on


cell, nested inside another function,
INDEX - Single Row click here to read tutorial

Q1 Q2 Q3 Q4 Total

South 849 912 797 711 3,269

Row_Num argument can take Col_Num when Array is a single row

Q2 Formula
South 912 =INDEX(C7:F7,2)
=INDEX(array, row_num, column_num)

Q2 Use MATCH to return column number


South 912 =INDEX(C7:F7,MATCH(C20,C5:F5,0))
INDEX - Return a Reference click here to read tutorial

1 2 3 4
Q1 Q2 Q3 Q4 Total
1 North 870 830 783 546 3,029
2 South 849 912 797 711 3,269
3 East 817 937 531 873 3,158
4 West 952 560 517 663 2,692
Total 3,488 3,239 2,628 2,793 12,148

INDEX - Return a single value

Q2 Formula
West 560 =INDEX(C6:F9, 4, 2)

INDEX - Return a Reference

Q2 Formula
North 830 {=D6:INDEX(C6:F9, 4, 2)}
South 912 Returns D6:D9
East 937
West 560

Q2 Formula
Total 3,239 =SUM( D6:INDEX(C6:F9, 4, 2) )
read tutorial

Non DA Method (CTRL+SHIFT+ENTER)


830 {=D6:INDEX(C6:F9, 4, 2)}
912
937
560
INDEX - Return Whole Column or Row click here to read
tutorial

Q1 Q2 Q3 Q4 Total
North 870 830 783 546 3,029
South 849 912 797 711 3,269
East 817 937 531 873 3,158
West 952 560 517 663 2,692
Total 3,488 3,239 2,628 2,793 12,148

INDEX Zero or Skip Col/Row Argument

Q2 Formula
830 {=INDEX(C6:F9, 0, 2)}
912 Zero in the row argument will return all
rows in the specified column.
937
560

Total Q2 Formula
3,239 =SUM( INDEX(C6:F9, ,2) )
Omitting the row argument will
also return all rows in the
specified column.

Q1 Q2 Q3 Q4 Formula
East 817 937 531 873 {=INDEX(C6:F9,3, )}

Omitting the column argument


will also return all columns in
the specified row.

All Qtrs Formula


Total East 3,158 =SUM( INDEX(C6:F9,3,0) )

Zero in the column argument


will return all columns in the
specified row.

All Data Q1 Q2 Q3 Q4 Formula


North 870 830 783 546 {=INDEX(C6:F9,0,0)}
South 849 912 797 711
East 817 937 531 873
West 952 560 517 663
click here to read
tutorial

l return all

e column argument
urn all columns in
d row.
INDEX - Either side of Operators
click here to
read tutorial

Q1 Q2 Q3 Q4 Total
North 870 830 783 546 3,029
South 849 912 797 711 3,269
East 817 937 531 873 3,158
West 952 560 517 663 2,692
Total 3,488 3,239 2,628 2,793 12,148

Range Operator (colon)

From Q1
To Q3 Formula
East & West 4,314 =SUM( INDEX(C6:F9,3,MATCH(C15,C5:F5,0)) : INDEX(C6:F9,4,MATCH(C16,C5:F5,0))

Union Operator (comma)

This Q1
And this Q3 Formula
6,116 =SUM(INDEX(C6:F9,0,MATCH(C24,C5:F5,0)),INDEX(C6:F9,0,MATCH(C25,C5:F5,0)))

Intersect Operator (space)

Q3 Formula
South Err:509 {=INDEX(C6:F9,2,0) INDEX(C6:F9,0,3)}
click here to
read tutorial

EX(C6:F9,4,MATCH(C16,C5:F5,0)) )

(C6:F9,0,MATCH(C25,C5:F5,0)))
INDEX - Non-contiguous References
click here to
read tutorial

Product 1 Product 2

Q1 Q2 Q3 Q4 Q1 Q2
North 870 830 783 546 559 494
South 849 912 797 711 421 633
East 817 937 531 873 509 444
West 952 560 517 663 883 403
Total 3,488 3,239 2,628 2,793 2,372 1,974

Product number is a custom number format that displays 'Product' in front of the number. If you prefer to enter text, you
can use CHOOSE or SWITCH to convert the text to the corresponding area_num for INDEX.
Note: the 'areas' must all be on the same sheet, otherwise INDEX will return a #VALUE! error.

Product 2 Q3 Formula
North 837 =INDEX((Product1~Product2),MATCH(B20,B6:B9,0),MATCH(C19,C5:F5,0),B19)
click here to
read tutorial

Product 2

Q3 Q4
837 720
836 428
628 892
388 375
2,689 2,415

you prefer to enter text, you


r.

TCH(C19,C5:F5,0),B19)
More Resources
Tutorials
Excel Functions.............................................................
Charting Blog Posts.......................................................
Excel Dashboard Blog Posts..........................................

Webinars
Excel Dashboards & Power BI.......................................

Courses
Advanced Excel.............................................................
Advanced Excel Formulas...........................................
Power Query.................................................................
PivotTable Quick Start..................................................
Xtreme PivotTables.......................................................
Power Pivot...................................................................
Excel Dashboards..........................................................
Power BI.......................................................................
Excel for Decision Making Under Uncertainty..............
Excel for Finance Professionals.....................................
Excel Analysis ToolPak..................................................
Excel for Customer Service Professionals.....................
Excel for Operations Management...............................
Financial Modelling.......................................................

Support
Excel Forum..................................................................
https://www.myonlinetraininghub.com/excel-functions
http://www.myonlinetraininghub.com/category/excel-charts
http://www.myonlinetraininghub.com/category/excel-dashboard

http://www.myonlinetraininghub.com/excel-webinars

https://www.myonlinetraininghub.com/excel-expert-upgrade
https://www.myonlinetraininghub.com/advanced-excel-formulas-course
https://www.myonlinetraininghub.com/excel-power-query-course
https://www.myonlinetraininghub.com/excel-pivottable-course-quick-start
https://www.myonlinetraininghub.com/excel-pivottable-course
https://www.myonlinetraininghub.com/power-pivot-course
http://www.myonlinetraininghub.com/excel-dashboard-course
http://www.myonlinetraininghub.com/power-bi-course
https://www.myonlinetraininghub.com/excel-for-decision-making-course
https://www.myonlinetraininghub.com/excel-for-finance-course
https://www.myonlinetraininghub.com/excel-analysis-toolpak-course
https://www.myonlinetraininghub.com/excel-for-customer-service-professionals
https://www.myonlinetraininghub.com/excel-operations-management-course
https://www.myonlinetraininghub.com/financial-modelling-course

https://www.myonlinetraininghub.com/excel-forum

You might also like