+ Reply to Thread
Results 1 to 8 of 8

Why does vlookup behave like this?

  1. #1
    Registered User
    Join Date
    04-04-2009
    Location
    Sweden
    MS-Off Ver
    Excel 2007
    Posts
    17

    Why does vlookup behave like this?

    Hi!

    This is my first thread/question in this what looks to be a great place for us temporarily lost in the Excel maze.

    So I have this column which I type my familiar vlookup and it doesn't return a value, just the entire cell text content including the "=" character.

    I sense that some function is somehow locked/disabled in the file I've gotten, but I really don't have any clue where to look for the source of this issue.

    Please help!
    Last edited by VBA Noob; 04-04-2009 at 01:00 PM.
    /Fredrik

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Why does vlookup behave like this?

    Try pressing Ctrl `

    (that's the unshifted tilde key, often just left of the 1 key on the number row.)

    Or, Tools > Options > View > Formulas
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    04-04-2009
    Location
    Sweden
    MS-Off Ver
    Excel 2007
    Posts
    17

    Question Re: Why does vlookup behave like this?

    Nothing really happens. Please clarify!

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

    Re: Why does vlookup behave like this?

    Select the entire column.

    Click on Data -> Text to column.

    Select Fixed Width ..

    Click on Finish

  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

    Re: Why does vlookup behave like this?

    Using Ctrl + ' or Tools > options > view > Formulas will display all the formulas in the workbook

    You could also check the formatting of the cell. If it's formatted as text then this may be causing you're problem

    HTH

    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
    04-04-2009
    Location
    Sweden
    MS-Off Ver
    Excel 2007
    Posts
    17

    Thumbs up Re: Why does vlookup behave like this?

    Quote Originally Posted by VBA Noob View Post
    Using Ctrl + ' or Tools > options > view > Formulas will display all the formulas in the workbook
    Did this, and indeed result is the same, while opening a fresh workbook, this indeed works as explained. So no help in this case.

    Quote Originally Posted by Shijesh Kumar View Post
    Select the entire column.
    Click on Data -> Text to column.
    Select Fixed Width ..
    Click on Finish
    Thanks for helping me discover this great feature. However, it doesn’t help the above.
    The cell just won't do the calculation!

    So what I did next..
    I discovered that making sure the format was in this case General and going into Formulas > Insert Function and pushing enter on just the first row; Lookup_value, it now works!

    Hmmm.. Feels a bit strange that one would need to go into Formulas > Insert Function and activate the function there when it is already inserted in the cell?

    Anyway thanks all for helping out, I really appreciate it, and am now back on track!

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Why does vlookup behave like this?

    Shijesh's example of Text to Columns mimics what you did manually - ie it should coerce all selected cells such that formulae entered as text become formulae... I can think of no reason this should not have worked for you.

    It may also be worth point out that you can achieve the same thing running an Edit Replace on the affected cells, replacing = with =
    (strange but true)

  8. #8
    Valued Forum Contributor ffffloyd's Avatar
    Join Date
    05-20-2008
    Location
    Melbourne, VIC, Australia
    MS-Off Ver
    Office 365
    Posts
    243

    Re: Why does vlookup behave like this?

    I was coming in to say that it looks like your cell is formatted as Text so you need to set it to General, but it looks like you've solved the problem now.

+ 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