+ Reply to Thread
Results 1 to 6 of 6

Vlookup formula does not work correctly

  1. #1
    Forum Contributor
    Join Date
    08-26-2009
    Location
    Iceland
    MS-Off Ver
    Excel 365, Windows 10
    Posts
    110

    Vlookup formula does not work correctly

    I am distributed salary to several dimensions, to find out cost by tasks.

    I am try to split dimension f.x 10203040 in 10 20 30 40 where first set of number is for group A of tasks, next two for group B of tasks etc.
    I use left, and mid to split.

    Next I want to use vlookup to make my pivot more readable change first set of number (10) to name (Group1)
    I get #N/A

    Any suggestions to solve it?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Vlookup formula does not work correctly

    classic vlookup issue

    Numbers are formatted as text (or vice versa)

    if you type the number into a cell it becomes a number format which is why your vlookup works
    if you use a LEFT formula it automatically converts it to a text

    either change your lookup table to be text format OR change the output of the left formula

    ive uploaded your spreadsheet
    the left hand column changes the output of the left formula be using VALUE formula in addition to left
    the right hand column i converted your lookup TABLE to be TEXT (note the green triangle on top left hand corner)
    Attached Files Attached Files
    Last edited by humdingaling; 04-12-2018 at 08:11 PM.
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: Vlookup formula does not work correctly

    I came to the same conclusion as humdingaling

    I choose to adapt the vlookup formula to recognize col b and c as numbers rather then text..

    see attachment for changes I made in formula's
    Attached Files Attached Files

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Vlookup formula does not work correctly

    Hi,

    I agree with humdingaling above. Your top table has Text when you did the Left and Mid formulas. You are trying to find those Text in the numbers below for a lookup. Do this to fix your problem.

    Type a ZERO in a cell and copy it into the clipboard using Ctrl-C. Then select all those text from C8:F21 and right click on the selection. Click on "Paste Special..." and click on the Add radio button. This will add zero to those text and make them numbers and your work is done.

    https://www.techrepublic.com/blog/mi...ting-in-excel/
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Forum Contributor
    Join Date
    08-26-2009
    Location
    Iceland
    MS-Off Ver
    Excel 365, Windows 10
    Posts
    110

    Re: Vlookup formula does not work correctly

    Hi,

    Yes this was classic problem. I knew this was some text/number issue, but I didn't find the answer.
    Value is the key.

    Thanks to you all,

    Best regards,
    Petur

  6. #6
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Vlookup formula does not work correctly

    Or a slight mod of a multiplication trigger to the vlookup formula:
    Please Login or Register  to view this content.
    Pete

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Formula doesn't work correctly
    By Chris McGlothen in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-20-2016, 07:28 PM
  2. vlookup and Sum in same formula not working correctly
    By mrichard in forum Excel General
    Replies: 5
    Last Post: 08-31-2015, 08:18 PM
  3. please help with IFERROR - Solved
    By urak in forum Excel General
    Replies: 4
    Last Post: 08-09-2012, 06:28 AM
  4. Need help on Logic to make formula work correctly
    By cdotyii in forum Excel General
    Replies: 1
    Last Post: 06-06-2012, 08:23 AM
  5. Excel 2007 : Vlookup formula does not copy correctly
    By Rahul Orezzoli in forum Excel General
    Replies: 3
    Last Post: 11-17-2011, 01:39 AM
  6. Help Please. Trying to get this formula to work out correctly.
    By bryanr72 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-29-2008, 10:43 PM
  7. dates do not work correctly
    By edhinfla in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-13-2007, 04:43 PM

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