EXCEL EXPERT
92 Points
Joined March 2007
Bhuvana
Vlookup is a command thru which u can search a particular data from a list . The list should be in Row . (Account code will in anyway be in rows)
The syntax of Vlookup is as follows :
VLOOKUP(lookup_value,table_array,col_index_num,range_lookup)
Lookup_value The value to search in the first column of the table . Lookup_value can be a value or a reference.
These values can be text, numbers, or logical values.
Table_array : It is one or more columns of data. U can select the range to include data which u want to search and the data which u want to return .
Note : The values in the first column of table_array are the values searched by lookup_value.
Col_index_num : Column Index is the no. of columns (including the first column from which the value has to come
Example : Column A B C
Column A has Account code (This is what u have to search) Coumn B has Dr Balance & Column C has Credit balance
So ur Vlookup will be
= vlookup(Sheet1!A1,A:C,2,false)
If vlookup finds the value of Sheet1!A1 , in Column A , then it will put the value of B (2nd Column from A) as result.
The "false" is used so that there is an exact match of the value u r searching.
Note column Index No cant be negative &
Column index No cant be more than the no of columns u have selected like in the above example it cant be more than 3 .
Range_lookup A logical value that specifies whether you want VLOOKUP to find an exact match or an approximate match:
Regards
Abhishek
In case u are not able to understand then i will send u an example file . bye