The Index function in Excel: Formulas and usage.

The Index function in Excel is widely used in spreadsheets today. Below is a detailed guide on how to use the Index function in Microsoft Excel.

The Index function in Excel is widely used in spreadsheets today. Below is a detailed guide on how to use the Index function in Microsoft Excel .

 

Excel is currently the most widely used spreadsheet software. It offers users many great features, most notably its intelligent data calculation functions. Indexes are one of them.

Network administration has compiled for readers the most basic functions in Excel , as well as instructions on how to use a series of functions: searching for data with the Vlookup function , the IF conditional function , the SUM function . These are the most basic functions you will encounter when working with Excel files, helping us complete statistical tables and calculate data.

Today, we'll introduce you to the Index function, also commonly used in Excel. The Index function returns an array, allowing you to retrieve values ​​from a cell at the intersection of a column and a row. To better understand how to use the Index function in Excel, please read our article below.

The Index function in Excel returns the value at the given position within a range or array. You can use INDEX to retrieve individual values ​​or entire rows and columns. The MATCH function is often used with INDEX to provide row and column numbers.

  • Purpose : To have a value in a list or table based on position.
  • Return value : The value at the provided position.
  • Argument :
    • Array - A range of cells or array constants.
    • Row_num: The position of the cell in the reference or array.
    • col_num - (optional): Column position in the reference or array.
    • area_num - [optional]: The range in which the reference can be used.
  • General formula:=INDEX(array, row_num, [col_num], [area_num])

 

1. The Index function in an array in Excel

The array-based INDEX function is used when the first argument of the function is an array constant. The syntax of the array-based INDEX function is as follows:

=INDEX(Array,Row_num,[Column_num])

In there:

  • Array : a range of cells or a specific array of numbers is required.
  • Row_num : Selects the row in the array from which to return a value.
  • Column_num : selects the column in the array from which to return a value.

Please note that at least one of the two arguments, Row_num and Column_num, is required.

Excel Table 1 : We have a list of fabric types. Find the name of the fabric type knowing that it is in row 2, column 2.

In cell C7, enter the formula above using the syntax below, and then press Enter to execute the Index function.

=INDEX(B2:C6,2,2)

 

Immediately afterwards, we will be returned the value of position A2 corresponding to the item type Raw Fabric.

2. Excel Index function by reference

The Index by Reference function returns a reference to the cell located at the intersection of a specific row and column. The formula for Index by Reference is as follows:

=INDEX(Reference,Row_num,[Column_num],[Area_num])

In there:

  • Reference : a required reference area.
  • Row_num : the row index from which to return a reference, required.
  • Column_num : the column index from which to return a reference, optionally.
  • Area_num : the number of the cell range to which the value in Reference will be returned. If Area_num is omitted, the INDEX function uses range 1, optionally.

Using the same Excel data table as above, we enter the formula as below. Then press Enter. Click on cell C7 and enter the following formula:

=INDEX(B2:C6,2,1,1)

The result will be the name of the item type "Raw Fabric" in line B2.

 

Things to note

  • After the reference and area_num have selected a specific range, row_num and column_num select a specific cell: row_num 1 is the first row in the range, column_num 1 is the first column, etc. The reference returned by INDEX is the intersection of row_num and column_num.
  • If row_num or column_num is set to 0, INDEX returns a reference to the entire column or row, respectively.
  • Row_num, column_num, and area_num must point to a cell in the reference; otherwise, INDEX returns a #REF error. If row_num and column_num are omitted, INDEX returns the area in the reference specified by area_num.
  • The result of the INDEX function is a reference and is interpreted as such by other formulas. Depending on the formula, the return value of INDEX can be used as a reference or a value. For example, the formula CELL("width",INDEX(A1:B2,1,2)) is equivalent to CELL("width",B1). The CELL function uses the return value of INDEX as a cell reference. In other words, a formula like 2*INDEX(A1:B2,1,2) converts the return value of INDEX into a number in cell B1.

In summary, we have guided you on how to use the INDEX function in both array and reference form. The INDEX function can reference any cell in Excel, and the process is not too difficult. You can use this function in combination with other Excel functions for more efficient use in spreadsheet data.

To perform data calculations and create statistical tables in Excel more easily and quickly, you should also know Excel shortcuts or how to handle Excel files when problems arise .

Please refer to the following articles for more information:

  • A compilation of valuable keyboard shortcuts in Microsoft Excel.
  • You want to print text and data from Microsoft Excel. It's not as simple as Word or PDF! Read on!
  • 10 ways to recover corrupted Excel files

Good luck with your project!

Related posts
  • Index function in Excel

    the index function is a function that can refer to any cell on an excel worksheet, it is combined with many other functions and brings a significant effect.
  • How to use the INDEX function in excel?

    along with vlookup and hlookup, an extremely interesting search function that you should not ignore is the index function. how to use it? is it difficult or not?
Other Program articles
Category

System

Windows XP

Windows Server 2012

Windows 8

Windows 7

Windows 10

Wifi tips

Virus Removal - Spyware

Speed ​​up the computer

Server

Security solution

Mail Server

LAN - WAN

Ghost - Install Win

Fix computer error

Configure Router Switch

Computer wallpaper

Computer security

Mac OS X

Mac OS System software

Mac OS Security

Mac OS Office application

Mac OS Email Management

Mac OS Data - File

Mac hardware

Hardware

USB - Flash Drive

Speaker headset

Printer

PC hardware

Network equipment

Laptop hardware

Computer components

Advice Computer

Game

PC game

Online game

Mobile Game

Pokemon GO

information

Technology story

Technology comments

Quiz technology

New technology

British talent technology

Attack the network

Artificial intelligence

Technology

Smart watches

Raspberry Pi

Linux

Camera

Basic knowledge

Banking services

SEO tips

Science

Strange story

Space Science

Scientific invention

Science Story

Science photo

Science and technology

Medicine

Health Care

Fun science

Environment

Discover science

Discover nature

Archeology

Life

Travel Experience

Tips

Raise up child

Make up

Life skills

Home Care

Entertainment

DIY Handmade

Cuisine

Christmas

Application

Web Email

Website - Blog

Web browser

Support Download - Upload

Software conversion

Social Network

Simulator software

Online payment

Office information

Music Software

Map and Positioning

Installation - Uninstall

Graphic design

Free - Discount

Email reader

Edit video

Edit photo

Compress and Decompress

Chat, Text, Call

Archive - Share

Electric

Water heater

Washing machine

Television

Machine tool

Fridge

Fans

Air conditioning

Program

Unix and Linux

SQL Server

SQL

Python

Programming C

PHP

NodeJS

MongoDB

jQuery

JavaScript

HTTP

HTML

Git

Database

Data structure and algorithm

CSS and CSS3

C ++

C #

AngularJS

Mobile

Wallpapers and Ringtones

Tricks application

Take and process photos

Storage - Sync

Security and Virus Removal

Personalized

Online Social Network

Map

Manage and edit Video

Data

Chat - Call - Text

Browser and Add-on

Basic setup