+ Reply to Thread
Results 1 to 3 of 3

Problem with vlookup unless I multiply by one

  1. #1
    Forum Contributor
    Join Date
    06-20-2021
    Location
    UK
    MS-Off Ver
    2016
    Posts
    126

    Question Problem with vlookup unless I multiply by one

    Hi,

    I am trying to Vlookup two different workbooks and trying to do a simple join in Python, to give you some context.

    However, I see that Vlookup only works when I multiply source file (paste special multiply seems to work when I multiply first column in main data), in first column, from SAP (this file converted to table from text). Why is this the case?

    Have tried casting that column into text within Python and Excel but in both cases there is no return.

    I am attaching two files. If you can tell me what is the core issue, and how I can avoid this "multiplication" step altogether? It would help my program my data cleansing code a lot, cheers.

    The file has over 20,000 rows so had to cut down on both. I know you can't lookup as data might be not match in both, but I am interested in figuring it what is the data type issue that constantly makes me multiply first column by 1.

    The suspect is the text file first, and then the lookup table.
    Attached Files Attached Files
    Last edited by immigrated4urjob; 05-23-2022 at 09:53 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Problem with vlookup unless I multiply by one

    Haven't got much time, but this is typical of text looking like numbers. they are left aligned in cells, whilst real numbers are right-aligned.
    Any arithmetical operation on text looking like numbers make them real numbers ( e.g.*1 or +0).

  3. #3
    Forum Contributor
    Join Date
    06-20-2021
    Location
    UK
    MS-Off Ver
    2016
    Posts
    126

    Re: Problem with vlookup unless I multiply by one

    You were correct, it has work. Had to copy paste the values back as text.
    Last edited by AliGW; 05-25-2022 at 07:41 AM. Reason: PLEASE don't quote unnecessarily!

+ 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] How To VLOOKUP Then Multiply
    By nevernine9 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-09-2021, 08:52 AM
  2. [SOLVED] Problem on calculate sum of multiply if the data is N/A
    By kukarol in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-15-2016, 04:00 AM
  3. vlookup then multiply the value by 25%
    By slohman in forum Excel General
    Replies: 3
    Last Post: 07-12-2016, 08:03 PM
  4. [SOLVED] Need to multiply a VLOOKUP value then divide that value, then multiply that value
    By debbiemez in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-27-2015, 04:57 PM
  5. [SOLVED] Trying to multiply every nth range with VLOOKUP
    By skimp in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-30-2013, 11:19 PM
  6. Excel 2007 : Multiply a Vlookup return
    By stevetothink in forum Excel General
    Replies: 3
    Last Post: 11-04-2011, 01:06 PM
  7. multiply with VLOOKUP
    By jprogrammer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-13-2006, 03:12 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