+ Reply to Thread
Results 1 to 10 of 10

VLookup=#N/A?

Hybrid View

  1. #1
    Registered User
    Join Date
    01-24-2009
    Location
    USA
    MS-Off Ver
    Excel 2008
    Posts
    4

    VLookup=#N/A?

    Why is this not working? I added the roundup column because i thought that might be the problem.

    =VLOOKUP(0.18,B4:C2819,2,FALSE) result=#N/A

    A B C D
    GP% roundup profit price
    0.35 0.36 $635.00 $1,800.00
    0.35 0.36 $630.00 $1,795.00
    0.35 0.35 $625.00 $1,790.00
    continues
    0.19 0.19 $265.00 $1,430.00
    0.18 0.19 $260.00 $1,425.00
    0.18 0.18 $255.00 $1,420.00
    0.18 0.18 $250.00 $1,415.00
    0.17 0.18 $245.00 $1,410.00
    0.17 0.18 $240.00 $1,405.00

    any ideas?

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Post the workbook?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,943
    1. Are the numbers in columns A & B calculated elsewhere?
    2. Is the 0.18 in the VLOOKUP calculated elsewhere?
    If the Col A/B nos. are calculated, reformat the cells to show several more decimal places, that might tell you why the lookupn is failing. As it is, the sample data you provided worked with the formula.
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    01-24-2009
    Location
    USA
    MS-Off Ver
    Excel 2008
    Posts
    4
    sorry, here it is.
    Attached Files Attached Files

  5. #5
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    This Array formula seemed to worked for me

    Enter with Ctrl + Enter + Shift

    =VLOOKUP(0.18,TEXT(B4:C103,"0.00")+0,2,FALSE)
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  6. #6
    Registered User
    Join Date
    01-24-2009
    Location
    USA
    MS-Off Ver
    Excel 2008
    Posts
    4

    Re: VLookup=#N/A?

    Quote Originally Posted by VBA Noob View Post
    Enter with Ctrl + Enter + Shift
    It didn't work for me. What do you mean enter with Ctrl + Enter + Shift. Sorry I don't understand.

  7. #7
    Valued Forum Contributor Shijesh Kumar's Avatar
    Join Date
    05-26-2008
    Location
    Bangalore / India
    MS-Off Ver
    2000
    Posts
    717

    Re: VLookup=#N/A?

    If the vlookup returns #N/A and you are sure that the lookup values exist, the


    Select the lookup column..
    Click on Data ...
    Click on Text to column...

    It sod hopefully wrk

  8. #8
    Registered User
    Join Date
    01-24-2009
    Location
    USA
    MS-Off Ver
    Excel 2008
    Posts
    4

    Re: VLookup=#N/A?

    Nevermind. I did it. But I'm curious, what did that do? { }

  9. #9
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: VLookup=#N/A?

    it coerced the whole range b4:c103 as displayed in cell into text format "0.00" then added 0 to it to make it a number again but this time only 2 decimal places
    TEXT(B4:C103,"0.00")+0
    so your look up would have a chance of matching 0.18 in colummn B even if the underlying value was 0.180000001 or similar
    Last edited by martindwilson; 01-26-2009 at 11:13 AM.

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: VLookup=#N/A?

    That said, the OP's roundup function should have done the same thing. Curious.

+ 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