+ Reply to Thread
Results 1 to 8 of 8

VLOOKUP NOT Returning Proper Data

Hybrid View

Karen615 VLOOKUP NOT Returning Proper... 10-13-2014, 05:25 PM
judgeh59 Re: VLOOKUP NOT Returning... 10-13-2014, 05:34 PM
FDibbins Re: VLOOKUP NOT Returning... 10-13-2014, 05:53 PM
FDibbins Re: VLOOKUP NOT Returning... 10-13-2014, 06:03 PM
Karen615 Re: VLOOKUP NOT Returning... 10-14-2014, 11:36 AM
judgeh59 Re: VLOOKUP NOT Returning... 10-14-2014, 01:22 PM
FDibbins Re: VLOOKUP NOT Returning... 10-14-2014, 01:30 PM
Karen615 Re: VLOOKUP NOT Returning... 10-15-2014, 05:18 PM
  1. #1
    Registered User
    Join Date
    10-30-2012
    Location
    Chicago
    MS-Off Ver
    Excel 365
    Posts
    93

    VLOOKUP NOT Returning Proper Data

    I'm using Excel 2007

    I posted this a few weeks ago and I'm still having problems with it

    Look at the VLOOKUP formula in the "Data.xlsx" file
    Why is this not working?

    I need to return the marketfrom column D in the Markets file based on the Co. & Acct. Combo in column C


    HELP!
    Attached Files Attached Files

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: VLOOKUP NOT Returning Proper Data

    my guess is the your CONCENATE is creating a STRING not a NUMBER.....So, when you Lookup and compare the Co & acct combo they don't match...

    you can add a * 1 to the end of the CONCATENATE and that forces XL to make it a number
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: VLOOKUP NOT Returning Proper Data

    Concat always produces a text answer
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: VLOOKUP NOT Returning Proper Data

    Try this, you wont need the helper columns...
    =INDEX([Markets.xlsx]FG!D$2:D$18, MATCH(A3&C3, INDEX([Markets.xlsx]FG!A$2:A$18& [Markets.xlsx]FG!$B$2:$B$18,0),0))

    Note that your data in A and C does not change until row 253, so the answers are all the same

  5. #5
    Registered User
    Join Date
    10-30-2012
    Location
    Chicago
    MS-Off Ver
    Excel 365
    Posts
    93

    Re: VLOOKUP NOT Returning Proper Data

    Thank you FDibbins & JudgeH59!

    Your formula worked great when I opened Markets.xlsx and Data.xlsx, but when I use both files that I have on our company network, it returns an error
    The name that you entered is not valid. Reasons for this include:
    The name does not begin with a name or underscore
    The name contains a space or other invalid characters
    The name conflicts with an Excel built-in name or the name of another object in the workbook

    I copied the entire path into the formula. Do you know what I'm doing wrong?

    =INDEX([F:\Accounting\InventoryPurchases\Markets.xlsx]FG!D$2:D$18,MATCH(A3&C3, INDEX([F:\Accounting\InventoryPurchases\Markets.xlsx]FG!A$2:A$18& [F:\Accounting\InventoryPurchases\Markets.xlsx]FG!$B$2:$B$18,0),0))

    I also added a *1 to the end of the CONCATENATE formula.

    HELP!

  6. #6
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: VLOOKUP NOT Returning Proper Data

    I could guess....I believe you can use your original formulas and just add the *1 to the end....not both solutions....my solution fixes the looking up a string to number and Ford's fixes in the formula itself...

    so I would try going back to your original VLOOKUPS and adding the *1 to the CONCATENATE formula and see where that puts you...HTH....

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: VLOOKUP NOT Returning Proper Data

    Another suggestion would be to have both files open, then copy the formula where it needs to go (or better yet, reconstruct it) in the correct file. Then save both files, close them and then reopen and see if it still gives a problem. Done that way, excel will (should) put in the correct path to the file

  8. #8
    Registered User
    Join Date
    10-30-2012
    Location
    Chicago
    MS-Off Ver
    Excel 365
    Posts
    93

    Re: VLOOKUP NOT Returning Proper Data

    Thank you FDibbins & JudgeH59
    I will give both solutions a try and get back to you.
    Thank you for your time!
    Karen

+ 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] Issue with returning proper row number using =Small Function
    By Sardaukar in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 04-13-2013, 09:21 AM
  2. vlookup not returning proper value
    By mrggutz in forum Excel General
    Replies: 12
    Last Post: 10-19-2010, 12:52 PM
  3. UDF not returning proper value - circular reference/multi workbook
    By Jeff in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-31-2006, 08:55 PM
  4. Vlookup returning No data.
    By Alex H in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  5. Vlookup not returning proper data
    By shineboxnj in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-23-2005, 03:00 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