Closed Thread
Results 1 to 4 of 4

vlookup in Libreoffice returning Err:502 - formats issue? Excel2016 shows #N/A or #REF

  1. #1
    Registered User
    Join Date
    11-10-2017
    Location
    Boston, MA
    MS-Off Ver
    2016
    Posts
    13

    vlookup in Libreoffice returning Err:502 - formats issue? Excel2016 shows #N/A or #REF

    In the enclosed, I want the profit sheet column B to show the column C value from refsources. It could also reference column A from refsources but I thought Vlookup values need to be to the right of the column array you are searching for a match within. However it shows Err:502 currently in Libreoffice. In Excel2016 shows #N/A or #REF! If you change the index to 1 it shows the last name however.

    I was working on this file in Libreoffice. The data is originally pulled from a 3rd party software and my suspicion is the issue is the way the data imports is not properly formatted (i.e. text instead of strings instead numbers or similar). I suspect some trick that I cant figure out needs to be employed to ensure all the data is in proper formats....
    Last edited by firepitz; 11-21-2017 at 11:40 AM. Reason: added excel detail

  2. #2
    Registered User
    Join Date
    11-10-2017
    Location
    Boston, MA
    MS-Off Ver
    2016
    Posts
    13

    Re: vlookup in Libreoffice returning Err:502 - formats issue?

    forgot attachment!
    Attached Files Attached Files

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,811

    Re: vlookup in Libreoffice returning Err:502 - formats issue? Excel2016 shows #N/A or #REF

    I am assuming the VLOOKUP() works the same in LibreOffice as it does in Excel (most spreadsheet programs try to have their functions work like Excel's functions when they have the same function).

    The N/A errors indicate that the lookup value is not found in refsources column B. A quick manual search (assuming data is sorted so I didn't manual search the entire column) suggests that these names are indeed not present in column B. If you believe differently, indicate where those names are in the lookup table.

    The REF errors indicate that you have asked Excel to return a value from outside of the lookup table. The lookup table argument is only column B. The third argument (2) is asking Excel to return a value from the 2nd column of a 1 column reference, which causes a problem. By changing the lookup table to B:C (instead of B:B), the REF errors are changed to the desired return value from column C.

    Does that help?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: vlookup in Libreoffice returning Err:502 - formats issue? Excel2016 shows #N/A or #REF

    New thread opened in the commercial services section, so I am closing this one.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Different Date formats issue
    By raja_puligadda in forum Excel General
    Replies: 11
    Last Post: 12-30-2015, 02:20 AM
  2. Form Controls MS Office excel and LibreOffice calc
    By Pali in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-05-2014, 03:20 AM
  3. [SOLVED] Issue with date formats
    By WarMachine in forum Excel General
    Replies: 8
    Last Post: 12-04-2013, 06:24 AM
  4. Replies: 6
    Last Post: 09-20-2013, 02:40 PM
  5. [SOLVED] VBA code, password-protected in Excel, visible in LibreOffice Calc
    By bstoyano in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-18-2013, 07:24 AM
  6. Libreoffice: Use data in Base for calculations in Calc. Possible?
    By vivace in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-14-2013, 08:04 AM
  7. formulas using date/time formats returning #value
    By Liesel in forum Excel General
    Replies: 7
    Last Post: 06-20-2006, 01:20 AM

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