+ Reply to Thread
Results 1 to 87 of 87

Help with VLookup function

  1. #1
    Registered User
    Join Date
    08-21-2005
    Posts
    3

    Help with VLookup function

    Hi
    I'm struggling with a VLOOKUP function where I'm referencing a particular postal code to a table and the VLOOKUP is returning inconsistent results.

    The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)

    Where the postal code is located in C8, the lookup range is fromAZ1 to BB1578, and the returned value should be from a cell in the 3rd column of that range corresponding to (across from) the looked up postal code. What is happening, is that certain postal codes are not looking up the corresponding value in the 3rd column, but rather are looking up a totally unrelated postal code and returning the value from the 3rd column corresponding to that (incorrect) postal code.

    I have tried changing the returned column value to the first column just to see what I would get back. In one example I typed in the postal code 4161, and the VLOOKUP went to the first column, where all of the postal codes are located and returned the postal code of 3996. Whereas 4161 should have looked itself up and returned 4161.

    I have tried putting in the TRUE and FALSE arguments in the syntax but with no change to the result. Maybe I'm making some simple mistake here. I would be grateful for any suggestions.

    John from Oz

  2. #2
    Registered User
    Join Date
    07-03-2004
    Posts
    49
    Dear JohnK

    What is happening is that it is returning the value corresponding to the approximate match and not the exact match.

    Specify the last parameter as FALSE and it will return the value corresponding to the exact match. Should an exact match not be found, an error value shall be returned.

    The default value is TRUE (when not specified) indicating an inexact search - this returns the largest value less than the search or lookup value.

    Hence, you are getting what you are getting.

    Hope this helps!


    Best regards


    Deepak Agarwal

  3. #3
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Is your table in AZ1:BB1578 sorted. If not please sort them and check the
    results again.

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  4. #4
    Registered User
    Join Date
    08-21-2005
    Posts
    3

    Talking VLOOKUP Problem solved

    Thanks for that. I know there'd be a simple explanation. I'm grateful for your help.

    JohnK

  5. #5
    Max
    Guest

    Re: Help with VLookup function

    > > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)

    Another possible cause of "strange" errors could be due to the table_array
    not being fixed (i.e. "AZ1:BB1578" instead of "$AZ$1:$BB$1578") as the
    formula is copied down from the starting cell

    If the above formula is used in the starting cell, say in D8, which is then
    copied down, take the precaution to put in D8 as:
    =VLOOKUP(C8,$AZ$1:$BB$1578,3)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  6. #6
    Arvi Laanemets
    Guest

    Re: Help with VLookup function

    Hi

    The formula as you typed it, is searching for nearest match for search
    value, and is meaned for use with sorted source table. When you need to find
    exact match, then the formula will be
    =VLOOKUP(C8,$AZ$1:$BB$1578,3,0)
    (Almost always it will be wise to use absolute references for lookup range
    in this formula)
    This formula search for exact match - when there is none, it returns an #NA
    error


    --
    Arvi Laanemets
    ( My real mail address: arvil<at>tarkon.ee )


    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:
    > http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  7. #7
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Hi JohnK

    I assume that your table was not sorted (which indeed was your problem), and
    appreciate the feedback

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Thanks for that. I know there'd be a simple explanation. I'm grateful
    > for your help.
    >
    > JohnK
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  8. #8
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Hi JohnK

    I assume that your table was not sorted (which indeed was your problem), and
    appreciate the feedback

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Thanks for that. I know there'd be a simple explanation. I'm grateful
    > for your help.
    >
    > JohnK
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  9. #9
    Arvi Laanemets
    Guest

    Re: Help with VLookup function

    Hi

    The formula as you typed it, is searching for nearest match for search
    value, and is meaned for use with sorted source table. When you need to find
    exact match, then the formula will be
    =VLOOKUP(C8,$AZ$1:$BB$1578,3,0)
    (Almost always it will be wise to use absolute references for lookup range
    in this formula)
    This formula search for exact match - when there is none, it returns an #NA
    error


    --
    Arvi Laanemets
    ( My real mail address: arvil<at>tarkon.ee )


    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:
    > http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  10. #10
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Is your table in AZ1:BB1578 sorted. If not please sort them and check the
    results again.

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  11. #11
    Max
    Guest

    Re: Help with VLookup function

    > > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)

    Another possible cause of "strange" errors could be due to the table_array
    not being fixed (i.e. "AZ1:BB1578" instead of "$AZ$1:$BB$1578") as the
    formula is copied down from the starting cell

    If the above formula is used in the starting cell, say in D8, which is then
    copied down, take the precaution to put in D8 as:
    =VLOOKUP(C8,$AZ$1:$BB$1578,3)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  12. #12
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Hi JohnK

    I assume that your table was not sorted (which indeed was your problem), and
    appreciate the feedback

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Thanks for that. I know there'd be a simple explanation. I'm grateful
    > for your help.
    >
    > JohnK
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  13. #13
    Arvi Laanemets
    Guest

    Re: Help with VLookup function

    Hi

    The formula as you typed it, is searching for nearest match for search
    value, and is meaned for use with sorted source table. When you need to find
    exact match, then the formula will be
    =VLOOKUP(C8,$AZ$1:$BB$1578,3,0)
    (Almost always it will be wise to use absolute references for lookup range
    in this formula)
    This formula search for exact match - when there is none, it returns an #NA
    error


    --
    Arvi Laanemets
    ( My real mail address: arvil<at>tarkon.ee )


    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:
    > http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  14. #14
    Max
    Guest

    Re: Help with VLookup function

    > > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)

    Another possible cause of "strange" errors could be due to the table_array
    not being fixed (i.e. "AZ1:BB1578" instead of "$AZ$1:$BB$1578") as the
    formula is copied down from the starting cell

    If the above formula is used in the starting cell, say in D8, which is then
    copied down, take the precaution to put in D8 as:
    =VLOOKUP(C8,$AZ$1:$BB$1578,3)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  15. #15
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Is your table in AZ1:BB1578 sorted. If not please sort them and check the
    results again.

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  16. #16
    Arvi Laanemets
    Guest

    Re: Help with VLookup function

    Hi

    The formula as you typed it, is searching for nearest match for search
    value, and is meaned for use with sorted source table. When you need to find
    exact match, then the formula will be
    =VLOOKUP(C8,$AZ$1:$BB$1578,3,0)
    (Almost always it will be wise to use absolute references for lookup range
    in this formula)
    This formula search for exact match - when there is none, it returns an #NA
    error


    --
    Arvi Laanemets
    ( My real mail address: arvil<at>tarkon.ee )


    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:
    > http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  17. #17
    Max
    Guest

    Re: Help with VLookup function

    > > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)

    Another possible cause of "strange" errors could be due to the table_array
    not being fixed (i.e. "AZ1:BB1578" instead of "$AZ$1:$BB$1578") as the
    formula is copied down from the starting cell

    If the above formula is used in the starting cell, say in D8, which is then
    copied down, take the precaution to put in D8 as:
    =VLOOKUP(C8,$AZ$1:$BB$1578,3)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  18. #18
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Hi JohnK

    I assume that your table was not sorted (which indeed was your problem), and
    appreciate the feedback

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Thanks for that. I know there'd be a simple explanation. I'm grateful
    > for your help.
    >
    > JohnK
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  19. #19
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Is your table in AZ1:BB1578 sorted. If not please sort them and check the
    results again.

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  20. #20
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Is your table in AZ1:BB1578 sorted. If not please sort them and check the
    results again.

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  21. #21
    Max
    Guest

    Re: Help with VLookup function

    > > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)

    Another possible cause of "strange" errors could be due to the table_array
    not being fixed (i.e. "AZ1:BB1578" instead of "$AZ$1:$BB$1578") as the
    formula is copied down from the starting cell

    If the above formula is used in the starting cell, say in D8, which is then
    copied down, take the precaution to put in D8 as:
    =VLOOKUP(C8,$AZ$1:$BB$1578,3)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  22. #22
    Arvi Laanemets
    Guest

    Re: Help with VLookup function

    Hi

    The formula as you typed it, is searching for nearest match for search
    value, and is meaned for use with sorted source table. When you need to find
    exact match, then the formula will be
    =VLOOKUP(C8,$AZ$1:$BB$1578,3,0)
    (Almost always it will be wise to use absolute references for lookup range
    in this formula)
    This formula search for exact match - when there is none, it returns an #NA
    error


    --
    Arvi Laanemets
    ( My real mail address: arvil<at>tarkon.ee )


    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:
    > http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  23. #23
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Hi JohnK

    I assume that your table was not sorted (which indeed was your problem), and
    appreciate the feedback

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Thanks for that. I know there'd be a simple explanation. I'm grateful
    > for your help.
    >
    > JohnK
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  24. #24
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Hi JohnK

    I assume that your table was not sorted (which indeed was your problem), and
    appreciate the feedback

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Thanks for that. I know there'd be a simple explanation. I'm grateful
    > for your help.
    >
    > JohnK
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  25. #25
    Arvi Laanemets
    Guest

    Re: Help with VLookup function

    Hi

    The formula as you typed it, is searching for nearest match for search
    value, and is meaned for use with sorted source table. When you need to find
    exact match, then the formula will be
    =VLOOKUP(C8,$AZ$1:$BB$1578,3,0)
    (Almost always it will be wise to use absolute references for lookup range
    in this formula)
    This formula search for exact match - when there is none, it returns an #NA
    error


    --
    Arvi Laanemets
    ( My real mail address: arvil<at>tarkon.ee )


    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:
    > http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  26. #26
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Is your table in AZ1:BB1578 sorted. If not please sort them and check the
    results again.

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  27. #27
    Max
    Guest

    Re: Help with VLookup function

    > > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)

    Another possible cause of "strange" errors could be due to the table_array
    not being fixed (i.e. "AZ1:BB1578" instead of "$AZ$1:$BB$1578") as the
    formula is copied down from the starting cell

    If the above formula is used in the starting cell, say in D8, which is then
    copied down, take the precaution to put in D8 as:
    =VLOOKUP(C8,$AZ$1:$BB$1578,3)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  28. #28
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Is your table in AZ1:BB1578 sorted. If not please sort them and check the
    results again.

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  29. #29
    Max
    Guest

    Re: Help with VLookup function

    > > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)

    Another possible cause of "strange" errors could be due to the table_array
    not being fixed (i.e. "AZ1:BB1578" instead of "$AZ$1:$BB$1578") as the
    formula is copied down from the starting cell

    If the above formula is used in the starting cell, say in D8, which is then
    copied down, take the precaution to put in D8 as:
    =VLOOKUP(C8,$AZ$1:$BB$1578,3)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  30. #30
    Arvi Laanemets
    Guest

    Re: Help with VLookup function

    Hi

    The formula as you typed it, is searching for nearest match for search
    value, and is meaned for use with sorted source table. When you need to find
    exact match, then the formula will be
    =VLOOKUP(C8,$AZ$1:$BB$1578,3,0)
    (Almost always it will be wise to use absolute references for lookup range
    in this formula)
    This formula search for exact match - when there is none, it returns an #NA
    error


    --
    Arvi Laanemets
    ( My real mail address: arvil<at>tarkon.ee )


    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:
    > http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  31. #31
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Hi JohnK

    I assume that your table was not sorted (which indeed was your problem), and
    appreciate the feedback

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Thanks for that. I know there'd be a simple explanation. I'm grateful
    > for your help.
    >
    > JohnK
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  32. #32
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Hi JohnK

    I assume that your table was not sorted (which indeed was your problem), and
    appreciate the feedback

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Thanks for that. I know there'd be a simple explanation. I'm grateful
    > for your help.
    >
    > JohnK
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  33. #33
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Is your table in AZ1:BB1578 sorted. If not please sort them and check the
    results again.

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  34. #34
    Max
    Guest

    Re: Help with VLookup function

    > > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)

    Another possible cause of "strange" errors could be due to the table_array
    not being fixed (i.e. "AZ1:BB1578" instead of "$AZ$1:$BB$1578") as the
    formula is copied down from the starting cell

    If the above formula is used in the starting cell, say in D8, which is then
    copied down, take the precaution to put in D8 as:
    =VLOOKUP(C8,$AZ$1:$BB$1578,3)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  35. #35
    Arvi Laanemets
    Guest

    Re: Help with VLookup function

    Hi

    The formula as you typed it, is searching for nearest match for search
    value, and is meaned for use with sorted source table. When you need to find
    exact match, then the formula will be
    =VLOOKUP(C8,$AZ$1:$BB$1578,3,0)
    (Almost always it will be wise to use absolute references for lookup range
    in this formula)
    This formula search for exact match - when there is none, it returns an #NA
    error


    --
    Arvi Laanemets
    ( My real mail address: arvil<at>tarkon.ee )


    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:
    > http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  36. #36
    Max
    Guest

    Re: Help with VLookup function

    > > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)

    Another possible cause of "strange" errors could be due to the table_array
    not being fixed (i.e. "AZ1:BB1578" instead of "$AZ$1:$BB$1578") as the
    formula is copied down from the starting cell

    If the above formula is used in the starting cell, say in D8, which is then
    copied down, take the precaution to put in D8 as:
    =VLOOKUP(C8,$AZ$1:$BB$1578,3)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  37. #37
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Is your table in AZ1:BB1578 sorted. If not please sort them and check the
    results again.

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  38. #38
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Hi JohnK

    I assume that your table was not sorted (which indeed was your problem), and
    appreciate the feedback

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Thanks for that. I know there'd be a simple explanation. I'm grateful
    > for your help.
    >
    > JohnK
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  39. #39
    Arvi Laanemets
    Guest

    Re: Help with VLookup function

    Hi

    The formula as you typed it, is searching for nearest match for search
    value, and is meaned for use with sorted source table. When you need to find
    exact match, then the formula will be
    =VLOOKUP(C8,$AZ$1:$BB$1578,3,0)
    (Almost always it will be wise to use absolute references for lookup range
    in this formula)
    This formula search for exact match - when there is none, it returns an #NA
    error


    --
    Arvi Laanemets
    ( My real mail address: arvil<at>tarkon.ee )


    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:
    > http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  40. #40
    Arvi Laanemets
    Guest

    Re: Help with VLookup function

    Hi

    The formula as you typed it, is searching for nearest match for search
    value, and is meaned for use with sorted source table. When you need to find
    exact match, then the formula will be
    =VLOOKUP(C8,$AZ$1:$BB$1578,3,0)
    (Almost always it will be wise to use absolute references for lookup range
    in this formula)
    This formula search for exact match - when there is none, it returns an #NA
    error


    --
    Arvi Laanemets
    ( My real mail address: arvil<at>tarkon.ee )


    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:
    > http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  41. #41
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Is your table in AZ1:BB1578 sorted. If not please sort them and check the
    results again.

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  42. #42
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Hi JohnK

    I assume that your table was not sorted (which indeed was your problem), and
    appreciate the feedback

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Thanks for that. I know there'd be a simple explanation. I'm grateful
    > for your help.
    >
    > JohnK
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  43. #43
    Max
    Guest

    Re: Help with VLookup function

    > > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)

    Another possible cause of "strange" errors could be due to the table_array
    not being fixed (i.e. "AZ1:BB1578" instead of "$AZ$1:$BB$1578") as the
    formula is copied down from the starting cell

    If the above formula is used in the starting cell, say in D8, which is then
    copied down, take the precaution to put in D8 as:
    =VLOOKUP(C8,$AZ$1:$BB$1578,3)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  44. #44
    Max
    Guest

    Re: Help with VLookup function

    > > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)

    Another possible cause of "strange" errors could be due to the table_array
    not being fixed (i.e. "AZ1:BB1578" instead of "$AZ$1:$BB$1578") as the
    formula is copied down from the starting cell

    If the above formula is used in the starting cell, say in D8, which is then
    copied down, take the precaution to put in D8 as:
    =VLOOKUP(C8,$AZ$1:$BB$1578,3)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  45. #45
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Is your table in AZ1:BB1578 sorted. If not please sort them and check the
    results again.

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  46. #46
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Hi JohnK

    I assume that your table was not sorted (which indeed was your problem), and
    appreciate the feedback

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Thanks for that. I know there'd be a simple explanation. I'm grateful
    > for your help.
    >
    > JohnK
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  47. #47
    Arvi Laanemets
    Guest

    Re: Help with VLookup function

    Hi

    The formula as you typed it, is searching for nearest match for search
    value, and is meaned for use with sorted source table. When you need to find
    exact match, then the formula will be
    =VLOOKUP(C8,$AZ$1:$BB$1578,3,0)
    (Almost always it will be wise to use absolute references for lookup range
    in this formula)
    This formula search for exact match - when there is none, it returns an #NA
    error


    --
    Arvi Laanemets
    ( My real mail address: arvil<at>tarkon.ee )


    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:
    > http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  48. #48
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Hi JohnK

    I assume that your table was not sorted (which indeed was your problem), and
    appreciate the feedback

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Thanks for that. I know there'd be a simple explanation. I'm grateful
    > for your help.
    >
    > JohnK
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  49. #49
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Is your table in AZ1:BB1578 sorted. If not please sort them and check the
    results again.

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  50. #50
    Arvi Laanemets
    Guest

    Re: Help with VLookup function

    Hi

    The formula as you typed it, is searching for nearest match for search
    value, and is meaned for use with sorted source table. When you need to find
    exact match, then the formula will be
    =VLOOKUP(C8,$AZ$1:$BB$1578,3,0)
    (Almost always it will be wise to use absolute references for lookup range
    in this formula)
    This formula search for exact match - when there is none, it returns an #NA
    error


    --
    Arvi Laanemets
    ( My real mail address: arvil<at>tarkon.ee )


    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:
    > http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  51. #51
    Max
    Guest

    Re: Help with VLookup function

    > > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)

    Another possible cause of "strange" errors could be due to the table_array
    not being fixed (i.e. "AZ1:BB1578" instead of "$AZ$1:$BB$1578") as the
    formula is copied down from the starting cell

    If the above formula is used in the starting cell, say in D8, which is then
    copied down, take the precaution to put in D8 as:
    =VLOOKUP(C8,$AZ$1:$BB$1578,3)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  52. #52
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Is your table in AZ1:BB1578 sorted. If not please sort them and check the
    results again.

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  53. #53
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Hi JohnK

    I assume that your table was not sorted (which indeed was your problem), and
    appreciate the feedback

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Thanks for that. I know there'd be a simple explanation. I'm grateful
    > for your help.
    >
    > JohnK
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  54. #54
    Arvi Laanemets
    Guest

    Re: Help with VLookup function

    Hi

    The formula as you typed it, is searching for nearest match for search
    value, and is meaned for use with sorted source table. When you need to find
    exact match, then the formula will be
    =VLOOKUP(C8,$AZ$1:$BB$1578,3,0)
    (Almost always it will be wise to use absolute references for lookup range
    in this formula)
    This formula search for exact match - when there is none, it returns an #NA
    error


    --
    Arvi Laanemets
    ( My real mail address: arvil<at>tarkon.ee )


    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:
    > http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  55. #55
    Max
    Guest

    Re: Help with VLookup function

    > > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)

    Another possible cause of "strange" errors could be due to the table_array
    not being fixed (i.e. "AZ1:BB1578" instead of "$AZ$1:$BB$1578") as the
    formula is copied down from the starting cell

    If the above formula is used in the starting cell, say in D8, which is then
    copied down, take the precaution to put in D8 as:
    =VLOOKUP(C8,$AZ$1:$BB$1578,3)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  56. #56
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Hi JohnK

    I assume that your table was not sorted (which indeed was your problem), and
    appreciate the feedback

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Thanks for that. I know there'd be a simple explanation. I'm grateful
    > for your help.
    >
    > JohnK
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  57. #57
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Is your table in AZ1:BB1578 sorted. If not please sort them and check the
    results again.

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  58. #58
    Max
    Guest

    Re: Help with VLookup function

    > > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)

    Another possible cause of "strange" errors could be due to the table_array
    not being fixed (i.e. "AZ1:BB1578" instead of "$AZ$1:$BB$1578") as the
    formula is copied down from the starting cell

    If the above formula is used in the starting cell, say in D8, which is then
    copied down, take the precaution to put in D8 as:
    =VLOOKUP(C8,$AZ$1:$BB$1578,3)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  59. #59
    Arvi Laanemets
    Guest

    Re: Help with VLookup function

    Hi

    The formula as you typed it, is searching for nearest match for search
    value, and is meaned for use with sorted source table. When you need to find
    exact match, then the formula will be
    =VLOOKUP(C8,$AZ$1:$BB$1578,3,0)
    (Almost always it will be wise to use absolute references for lookup range
    in this formula)
    This formula search for exact match - when there is none, it returns an #NA
    error


    --
    Arvi Laanemets
    ( My real mail address: arvil<at>tarkon.ee )


    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:
    > http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  60. #60
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Hi JohnK

    I assume that your table was not sorted (which indeed was your problem), and
    appreciate the feedback

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Thanks for that. I know there'd be a simple explanation. I'm grateful
    > for your help.
    >
    > JohnK
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  61. #61
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Is your table in AZ1:BB1578 sorted. If not please sort them and check the
    results again.

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  62. #62
    Max
    Guest

    Re: Help with VLookup function

    > > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)

    Another possible cause of "strange" errors could be due to the table_array
    not being fixed (i.e. "AZ1:BB1578" instead of "$AZ$1:$BB$1578") as the
    formula is copied down from the starting cell

    If the above formula is used in the starting cell, say in D8, which is then
    copied down, take the precaution to put in D8 as:
    =VLOOKUP(C8,$AZ$1:$BB$1578,3)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  63. #63
    Arvi Laanemets
    Guest

    Re: Help with VLookup function

    Hi

    The formula as you typed it, is searching for nearest match for search
    value, and is meaned for use with sorted source table. When you need to find
    exact match, then the formula will be
    =VLOOKUP(C8,$AZ$1:$BB$1578,3,0)
    (Almost always it will be wise to use absolute references for lookup range
    in this formula)
    This formula search for exact match - when there is none, it returns an #NA
    error


    --
    Arvi Laanemets
    ( My real mail address: arvil<at>tarkon.ee )


    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:
    > http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  64. #64
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Is your table in AZ1:BB1578 sorted. If not please sort them and check the
    results again.

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  65. #65
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Hi JohnK

    I assume that your table was not sorted (which indeed was your problem), and
    appreciate the feedback

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Thanks for that. I know there'd be a simple explanation. I'm grateful
    > for your help.
    >
    > JohnK
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  66. #66
    Max
    Guest

    Re: Help with VLookup function

    > > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)

    Another possible cause of "strange" errors could be due to the table_array
    not being fixed (i.e. "AZ1:BB1578" instead of "$AZ$1:$BB$1578") as the
    formula is copied down from the starting cell

    If the above formula is used in the starting cell, say in D8, which is then
    copied down, take the precaution to put in D8 as:
    =VLOOKUP(C8,$AZ$1:$BB$1578,3)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  67. #67
    Arvi Laanemets
    Guest

    Re: Help with VLookup function

    Hi

    The formula as you typed it, is searching for nearest match for search
    value, and is meaned for use with sorted source table. When you need to find
    exact match, then the formula will be
    =VLOOKUP(C8,$AZ$1:$BB$1578,3,0)
    (Almost always it will be wise to use absolute references for lookup range
    in this formula)
    This formula search for exact match - when there is none, it returns an #NA
    error


    --
    Arvi Laanemets
    ( My real mail address: arvil<at>tarkon.ee )


    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:
    > http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  68. #68
    Arvi Laanemets
    Guest

    Re: Help with VLookup function

    Hi

    The formula as you typed it, is searching for nearest match for search
    value, and is meaned for use with sorted source table. When you need to find
    exact match, then the formula will be
    =VLOOKUP(C8,$AZ$1:$BB$1578,3,0)
    (Almost always it will be wise to use absolute references for lookup range
    in this formula)
    This formula search for exact match - when there is none, it returns an #NA
    error


    --
    Arvi Laanemets
    ( My real mail address: arvil<at>tarkon.ee )


    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:
    > http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  69. #69
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Hi JohnK

    I assume that your table was not sorted (which indeed was your problem), and
    appreciate the feedback

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Thanks for that. I know there'd be a simple explanation. I'm grateful
    > for your help.
    >
    > JohnK
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  70. #70
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Is your table in AZ1:BB1578 sorted. If not please sort them and check the
    results again.

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  71. #71
    Max
    Guest

    Re: Help with VLookup function

    > > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)

    Another possible cause of "strange" errors could be due to the table_array
    not being fixed (i.e. "AZ1:BB1578" instead of "$AZ$1:$BB$1578") as the
    formula is copied down from the starting cell

    If the above formula is used in the starting cell, say in D8, which is then
    copied down, take the precaution to put in D8 as:
    =VLOOKUP(C8,$AZ$1:$BB$1578,3)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  72. #72
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Is your table in AZ1:BB1578 sorted. If not please sort them and check the
    results again.

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  73. #73
    Arvi Laanemets
    Guest

    Re: Help with VLookup function

    Hi

    The formula as you typed it, is searching for nearest match for search
    value, and is meaned for use with sorted source table. When you need to find
    exact match, then the formula will be
    =VLOOKUP(C8,$AZ$1:$BB$1578,3,0)
    (Almost always it will be wise to use absolute references for lookup range
    in this formula)
    This formula search for exact match - when there is none, it returns an #NA
    error


    --
    Arvi Laanemets
    ( My real mail address: arvil<at>tarkon.ee )


    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:
    > http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  74. #74
    Max
    Guest

    Re: Help with VLookup function

    > > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)

    Another possible cause of "strange" errors could be due to the table_array
    not being fixed (i.e. "AZ1:BB1578" instead of "$AZ$1:$BB$1578") as the
    formula is copied down from the starting cell

    If the above formula is used in the starting cell, say in D8, which is then
    copied down, take the precaution to put in D8 as:
    =VLOOKUP(C8,$AZ$1:$BB$1578,3)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  75. #75
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Hi JohnK

    I assume that your table was not sorted (which indeed was your problem), and
    appreciate the feedback

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Thanks for that. I know there'd be a simple explanation. I'm grateful
    > for your help.
    >
    > JohnK
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  76. #76
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Is your table in AZ1:BB1578 sorted. If not please sort them and check the
    results again.

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  77. #77
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Hi JohnK

    I assume that your table was not sorted (which indeed was your problem), and
    appreciate the feedback

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Thanks for that. I know there'd be a simple explanation. I'm grateful
    > for your help.
    >
    > JohnK
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  78. #78
    Arvi Laanemets
    Guest

    Re: Help with VLookup function

    Hi

    The formula as you typed it, is searching for nearest match for search
    value, and is meaned for use with sorted source table. When you need to find
    exact match, then the formula will be
    =VLOOKUP(C8,$AZ$1:$BB$1578,3,0)
    (Almost always it will be wise to use absolute references for lookup range
    in this formula)
    This formula search for exact match - when there is none, it returns an #NA
    error


    --
    Arvi Laanemets
    ( My real mail address: arvil<at>tarkon.ee )


    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:
    > http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  79. #79
    Max
    Guest

    Re: Help with VLookup function

    > > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)

    Another possible cause of "strange" errors could be due to the table_array
    not being fixed (i.e. "AZ1:BB1578" instead of "$AZ$1:$BB$1578") as the
    formula is copied down from the starting cell

    If the above formula is used in the starting cell, say in D8, which is then
    copied down, take the precaution to put in D8 as:
    =VLOOKUP(C8,$AZ$1:$BB$1578,3)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  80. #80
    Max
    Guest

    Re: Help with VLookup function

    > > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)

    Another possible cause of "strange" errors could be due to the table_array
    not being fixed (i.e. "AZ1:BB1578" instead of "$AZ$1:$BB$1578") as the
    formula is copied down from the starting cell

    If the above formula is used in the starting cell, say in D8, which is then
    copied down, take the precaution to put in D8 as:
    =VLOOKUP(C8,$AZ$1:$BB$1578,3)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  81. #81
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Hi JohnK

    I assume that your table was not sorted (which indeed was your problem), and
    appreciate the feedback

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Thanks for that. I know there'd be a simple explanation. I'm grateful
    > for your help.
    >
    > JohnK
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  82. #82
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Is your table in AZ1:BB1578 sorted. If not please sort them and check the
    results again.

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  83. #83
    Arvi Laanemets
    Guest

    Re: Help with VLookup function

    Hi

    The formula as you typed it, is searching for nearest match for search
    value, and is meaned for use with sorted source table. When you need to find
    exact match, then the formula will be
    =VLOOKUP(C8,$AZ$1:$BB$1578,3,0)
    (Almost always it will be wise to use absolute references for lookup range
    in this formula)
    This formula search for exact match - when there is none, it returns an #NA
    error


    --
    Arvi Laanemets
    ( My real mail address: arvil<at>tarkon.ee )


    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:
    > http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  84. #84
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Hi JohnK

    I assume that your table was not sorted (which indeed was your problem), and
    appreciate the feedback

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Thanks for that. I know there'd be a simple explanation. I'm grateful
    > for your help.
    >
    > JohnK
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  85. #85
    Arvi Laanemets
    Guest

    Re: Help with VLookup function

    Hi

    The formula as you typed it, is searching for nearest match for search
    value, and is meaned for use with sorted source table. When you need to find
    exact match, then the formula will be
    =VLOOKUP(C8,$AZ$1:$BB$1578,3,0)
    (Almost always it will be wise to use absolute references for lookup range
    in this formula)
    This formula search for exact match - when there is none, it returns an #NA
    error


    --
    Arvi Laanemets
    ( My real mail address: arvil<at>tarkon.ee )


    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:
    > http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




  86. #86
    Max
    Guest

    Re: Help with VLookup function

    > > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)

    Another possible cause of "strange" errors could be due to the table_array
    not being fixed (i.e. "AZ1:BB1578" instead of "$AZ$1:$BB$1578") as the
    formula is copied down from the starting cell

    If the above formula is used in the starting cell, say in D8, which is then
    copied down, take the precaution to put in D8 as:
    =VLOOKUP(C8,$AZ$1:$BB$1578,3)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  87. #87
    Mangesh Yadav
    Guest

    Re: Help with VLookup function

    Is your table in AZ1:BB1578 sorted. If not please sort them and check the
    results again.

    Mangesh



    "JohnK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > I'm struggling with a VLOOKUP function where I'm referencing a
    > particular postal code to a table and the VLOOKUP is returning
    > inconsistent results.
    >
    > The syntax is: =VLOOKUP(C8,AZ1:BB1578,3)
    >
    > Where the postal code is located in C8, the lookup range is fromAZ1 to
    > BB1578, and the returned value should be from a cell in the 3rd column
    > of that range corresponding to (across from) the looked up postal code.
    > What is happening, is that certain postal codes are not looking up the
    > corresponding value in the 3rd column, but rather are looking up a
    > totally unrelated postal code and returning the value from the 3rd
    > column corresponding to that (incorrect) postal code.
    >
    > I have tried changing the returned column value to the first column
    > just to see what I would get back. In one example I typed in the postal
    > code 4161, and the VLOOKUP went to the first column, where all of the
    > postal codes are located and returned the postal code of 3996. Whereas
    > 4161 should have looked itself up and returned 4161.
    >
    > I have tried putting in the TRUE and FALSE arguments in the syntax but
    > with no change to the result. Maybe I'm making some simple mistake
    > here. I would be grateful for any suggestions.
    >
    > John from Oz
    >
    >
    > --
    > JohnK
    > ------------------------------------------------------------------------
    > JohnK's Profile:

    http://www.excelforum.com/member.php...o&userid=26498
    > View this thread: http://www.excelforum.com/showthread...hreadid=397653
    >




+ 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