+ Reply to Thread
Results 1 to 8 of 8

vlookup error

  1. #1
    Registered User
    Join Date
    07-03-2012
    Location
    Hamilton
    MS-Off Ver
    Excel 2010
    Posts
    6

    vlookup error

    Hello Forum,

    I am new to this kind of function, not sure if i have posted in the right place. I am getting an #na error with the following, can anyone please explain where i am going wrong.

    =IF(B12>999,(VLOOKUP(C2,RATEMASTER!$C$2:$H$20,6,FALSE)+B12*VLOOKUP(C2,RATEMASTER!$C$2:$H$20,7,FALSE))*VLOOKUP(C2,RATEMASTER!C2:H20,8,FALSE),IF(B12=500,VLOOKUP(C2,RATEMASTER!$C$2:$H$20,5,FALSE)*VLOOKUP(C2,RATEMASTER!$C$2:$H$20,8,FALSE),IF(B12=250,VLOOKUP(C2,RATEMASTER!$C$2:$H$20,4,FALSE)*VLOOKUP(C2,RATEMASTER!$C$2:$H$20,8,FALSE),0)))

  2. #2
    Forum Contributor
    Join Date
    11-26-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    159

    Re: vlookup error

    Hi,
    Whatsoever BOLD , there is a proble C2:H20 .means, the table having 6 coloum but you are trying to retrieving data beyond the table which is not exist in range.


    =IF(B12>999,(VLOOKUP(C2,RATEMASTER!$C$2:$H$20,6,FALSE)+B12*VLOOKUP(C2,RATEMASTER!$C$2:$H$20,7,FALSE) )*VLOOKUP(C2,RATEMASTER!C2:H20,8,FALSE),IF(B12=500,VLOOKUP(C2,RATEMASTER!$C$2:$H$20,5,FALSE)*VLOOKUP (C2,RATEMASTER!$C$2:$H$20,8,FALSE),IF(B12=250,VLOOKUP(C2,RATEMASTER!$C$2:$H$20,4,FALSE)*VLOOKUP(C2,R ATEMASTER!$C$2:$H$20,8,FALSE),0)))

  3. #3
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: vlookup error

    Hi all,

    Well spotted mmmarks. Just to make it a little clearer.

    The range from C2 to H20 only covers 6 columns and as mmmarks rightly points out you are asking for 7 and 8 columns to be looked at.

    Cheers

    Russell
    If I helped, please don't forget to add to my reputation. (click on the star below the post)

    If the problem is solved, please: Select Thread Tools (on top of your 1st post) -> Mark this thread as Solved.

    Failure is not falling down but refusing to get up.

  4. #4
    Forum Contributor
    Join Date
    11-26-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    159

    Re: vlookup error

    Quote Originally Posted by Russell Dawson View Post
    Hi all,

    Well spotted mmmarks. Just to make it a little clearer.

    The range from C2 to H20 only covers 6 columns and as mmmarks rightly points out you are asking for 7 and 8 columns to be looked at.

    Cheers

    Russell

    Thank U Russeell .

  5. #5
    Registered User
    Join Date
    07-03-2012
    Location
    Hamilton
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: vlookup error

    Hi mmmarks,
    Thanks for picking up the error, I have tried to reduce each one by 2 but it still returns an error. I have attached the file i am working on if you have time would you look at it and tell me where i have gone wrong.
    Attached Files Attached Files

  6. #6
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: vlookup error

    Please Login or Register  to view this content.
    You had C2 instead of A12 in LOOKUP VALUE.
    Last edited by Russell Dawson; 07-03-2012 at 07:51 AM. Reason: Tags

  7. #7
    Registered User
    Join Date
    07-03-2012
    Location
    Hamilton
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: vlookup error

    Hello Russell,

    Many thanks for your help and everyone else as well.

    regards

    Keith

  8. #8
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: vlookup error

    A fine team effort. Don't forget to mark thread as solved please.

    Cheers

    Russell

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1