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

excel.training.course.london - sorting data

Forum home » Delegate support and help forum » Microsoft Excel Training and help » excel.training.course.london - Sorting Data

excel.training.course.london - Sorting Data

ResolvedVersion Standard

Sophie has attended:
Excel Intermediate course

Sorting Data

How do you use V look up?

RE: Sorting Data

Hi Sophie

Thank you for your question, and apologies for the delay in replying.

The idea of VLOOKUP is that you can get Excel to look for a value in the left most column of a table of data; and display a corresponding value in the same row of the table.

The value that Excel looks for in the left most column is called the lookup value.

The entire table/data area is called the table array.

Each column in the table array is assigned a number by Excel - the column containing the possible lookup values is column 1, then each of the other columns in the table array is numbered consecutively from left to right (2, 3, 4 etc).

You also need to specify if you want an exact match to the lookup value or an approximate match (where something that is close to the lookup value is sufficient). This is what is referred to as the range lookup where entering false means Excel needs to find an exact match; true means that Excel can find an approximate match.

The structure of the function is
=VLOOKUP(lookup value, table array, column number, range lookup) and it will display the value from the column number that you specify.

I've also attached an example where you can change the formula in the colour cell. At the moment the lookup value is 100, which gives the value of 1 from the table. If you change the lookup value to 200, the yellow cell will display 2; if you change the lookup value to 300, the yellow cell will display 3.

I hope this helps.
Amanda

Excel tip:

Calculate difference between two times

For presenting the result in the standard time format (hours : minutes : seconds . Use the subtraction operator (-) to find the difference between times, and the TEXT function to format the returned value to text in a specific number format.

Hours never exceed 24, minutes never exceed 60, and seconds never exceed 60.

=TEXT(B2-A2,"h")
Hours between two times (4)

=TEXT(B2-A2,"h:mm")
Hours and minutes between two times (4:55)

=TEXT(B2-A2,"h:mm:ss")
Hours and seconds between two times (4:55:00)

Where B2 and A2 must hold the end time and start time respectively formatted as a time format

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.