Results 1 to 5 of 5

Thread: Need help for vlookup function

  1. #1
    Join Date
    May 2009
    Posts
    136

    Need help for vlookup function

    Hello Friends,

    I had given an assignment to do, which i need to complete it as soon as possible. I need to have a list of people who has the highest commission for a particular month by using vlookup function. Now, the problem is that i'm having more than one person and if try to add additional box to accomodate for the few of them, i'm getting teh same name in all the three boxes which list out the names on the Excel sheet. I would like to have the vlookup function listing out 3 different person with the same salary for a particular month. Can any body telll me that how can i do so? Kindly provide me the correct logical solution to resolve the above issue. Any kind of help on the above issue would be appreciated.

    Thanks a lot.

  2. #2
    Join Date
    Apr 2008
    Posts
    4,642

    Re: Need help for vlookup function

    The syntax of a VLookup includes a 'True' or 'False' parameter after the column offset indicator. If it's 'True' or BLANK, the VLookup will find an exact match, or if an exact match is not found, the next largest value that is less than the look_up value. And if 'False' it will return only an exact match if found, or 'N/A' if not found.

    Try out the following VLOOKUP code:- VLOOKUP('CC & WEB'!G:G,'CC & WEB'!1:1048576,7, FALSE)

    I don't think you need the 'N/A' at the end, and if an exact match is not found then the function will return automatically.

  3. #3
    Join Date
    May 2008
    Posts
    4,831

    Re: Need help for vlookup function

    Try out the following steps in order to resolve the above issue.

    The combination of MATCH and INDEX functions is better suited for this:

    =MATCH(lookupdate,lookup range,0)

    This locates the start date's location, returning it's position in the range. Looking for 6-Oct-04 in your list returns a value of 4. The "0" makes it look for an exact match regardless of how your dates are sorted.

    Using this result in an INDEX statement retrieves the date:

    =INDEX(lookup range,MATCH(lookupdate,lookup range,0),1)

    MATCH calculates the row for INDEX and the "1" at the end designates the column. To get subsequent values, increment the MATCH result:

    =INDEX(lookup range,MATCH(lookupdate,lookup range,0)+1,1)
    =INDEX(lookup range,MATCH(lookupdate,lookup range,0)+2,1)
    .
    .
    .
    =INDEX(lookup range,MATCH(lookupdate,lookup range,0)+7,1)

    Hope so it may help you out.

  4. #4
    Join Date
    Jan 2008
    Posts
    3,755

    Re: Need help for vlookup function

    To use the Function Wizard to insert a VLOOKUP function:

    1. Select the cell that will contain the answer to the VLOOKUP and select Insert --> Function.

    2. Under the Function Category, choose either All or Lookup & Reference.

    3. Under the Function Name, select VLOOKUP, and hit OK.

    4. The Function Wizard for VLOOKUP will then display. The 4 values talked about above (lookup_value, table_array, col_index_num, range_lookup) are required by the function. Each line for each value required. If you put the cursor into the first line for lookup_value, down below it explains what the lookup_value is for your reference. Similar information is displayed when the cursor is in any of the other fields.

    5. Enter in the lookup_value either by typing in the number for the cell, or, by selecting the cell on the worksheet.

    6. Enter in the table_array by typing in the numbers for the cells, or, by selecting the group of cells on the worksheet.

    7. Enter in the number for column which contains the data that you wish to obtain in the col_index_num area.

    8. Enter into the range_lookup field the value TRUE if the function should accept the closest value to your lookup_value without going over or FALSE if an exact match is required.

    9. Hit OK when ready.

  5. #5
    Join Date
    May 2008
    Posts
    3,316

    Re: Need help for vlookup function

    You can look at the Help files for VLOOKUP and compare the construction of your formula to both the text description and for the examples

Similar Threads

  1. How to get yes or no in Vlookup in Excel
    By Gurmeet in forum MS Office Support
    Replies: 2
    Last Post: 24-01-2012, 04:57 PM
  2. duplicate vlookup help
    By saif49 in forum Windows Software
    Replies: 1
    Last Post: 12-11-2010, 04:57 PM
  3. Use VLookup in vba
    By mellisahi in forum Software Development
    Replies: 3
    Last Post: 11-09-2009, 05:33 PM
  4. Using vlookup function Please help
    By CheckMeNot in forum Windows Software
    Replies: 3
    Last Post: 25-06-2009, 09:28 AM
  5. How to update columns using VLookup function in Excel
    By Faakhir in forum Windows Software
    Replies: 4
    Last Post: 10-06-2009, 08:03 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,444,530.59908 seconds with 17 queries