hlook up and vlookup

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Hlook up and Vlookup

Hlook up and Vlookup

resolvedResolved · High Priority · Version 2019

Agnieszka has attended:
Excel Advanced course

Hlook up and Vlookup

Which formula is better to use when looking for specific information in the spreadsheet for example specific amount or invoice reference?

What is the main difference between those two Formulas and how can I be sure I am using the correct one

RE: Hlook up and Vlookup

Hi Aga,

I hope you are fine.

Thank you for the forum question.

The Vlookup is for vertical lists and the Hlookup for horizontal lists.

All the lists we worked with today were vertical and most lists are vertical.

In vertical lists you have a header row and the records organised down. One record in each row.

In horizontal lists you have the headings in the first column and you have a record in each column across.

The only difference between the Vlookup and Hlookup is that the Vlookup need the Column index number (from which column from the table array want we to get the data from) and Hlookup the Row index number (from which row in the table array want we to get the data from).

=Vlookup(Lookup value, Table array, column index number, range lookup)

=Hlookup(Lookup value, Table array, Row index number, range lookup)

If you select C5 on the worksheet Hlookup in the course Excel file and type the function:

=HLOOKUP(A5,$A$8:$P$13,6,0)

And the type 11158 in A5. Then the function will return the postcode for the first client (row 6 in the table array).

I hope all this makes sense.



Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

Wed 2 Sep 2020: Automatically marked as resolved.


 

Excel tip:

Difference between Two Dates

The DATEDIF function computes the difference between two dates. The DATEDIF function is as follows:

=DATEDIF (Date1,Date2,Interval)

Please note that Date1 must be less than (earlier) or equal to Date2

Please note that Interval must be one of the following codes: "d" (in days), "m" (in months), "y" (in years) expressed in quotes


View all Excel hints and tips


Server loaded in 0.06 secs.