Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

index functions

ResolvedVersion 2007

Stephen has attended:
Excel Advanced course

Index functions

Under what circumsatnces might it be better to use the index function rather than vlookups?

RE: Index functions

Hi Stephen

A VLOOKUP function searches for value in the left-most column of a table array and returns the value in the same row based on the index number of the column.

The syntax for the VLookup function is:

VLookup( value, table_array, index_number, not_exact_match )

In contrast a INDEX function returns an item from a specific position in a list.

The syntax for the Index function is:

Index(array, row_num, [column_num])

The Index function is used when you know the position of the information required (Row 23, Column 10).

Hope this helps

Carlos

Thu 27 Nov 2008: Automatically marked as resolved.

Excel tip:

Stop Formula Returning A "#DIV/0" Error

If a formula returns a #DIV/0 error message there is a way to avoid such results.

For example the formula =A1/B1 will return a #DIV/0 if B1 is empty or a zero.

If you protect your formulas with the ISERROR function, the formula will then look like this:

=IF(ISERROR(A1/B1),0,A1/B1)

In plain English: should the result of A1 divided by B1 be an error change the result to 0 else show the result of A1/B1.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.