+ Reply to Thread
Results 1 to 4 of 4

VLookup with condition

  1. #1
    Registered User
    Join Date
    07-20-2010
    Location
    london, england
    MS-Off Ver
    Excel 2007
    Posts
    67

    VLookup with condition

    Hi Guys,

    I have a spreadsheet that works out an area from a postcode and then gives a rate based on the area and a age. I have attached the spreadsheet. now it works on the red test sheet, using the red postcodes and rates, but it wont work for the blue test sheet using the blue postcodes and rates.

    could anyone help work out the problem and also explain why it hasnt worked?

    Thanks

    Clare
    Attached Files Attached Files
    Last edited by toclare84; 08-27-2010 at 04:35 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: VLookup

    In this sheet you have a space and number in your SERPOSTCODES sheet... so it is not finding exact matches.... How are those supposed to be handled?

    Maybe you want?:

    Please Login or Register  to view this content.
    and your formula in B10 can be simplified to:

    Please Login or Register  to view this content.
    since now you list the actual specific ages in consecutive manner in column A instead of ranges...
    Last edited by NBVC; 08-19-2010 at 01:15 PM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    07-20-2010
    Location
    london, england
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: VLookup

    Hi,

    Thanks for the quickl reponse. I have tried this and the area works beautifully, but the rate keeps coming up as 25 when i enter a ex36 postcode. i cannot think what i could be doing wrong?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: VLookup with condition

    I should have tested it more thoroughly.. apologies.

    Try:

    Please Login or Register  to view this content.

+ 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