Results 1 to 2 of 2

Thread: VLOOKUP produces undesired results

  1. #1
    Junior Member
    Join Date
    Feb 2013
    Posts
    2
    Rep Power
    0

    VLOOKUP produces undesired results

    Hello,

    I have created an excel file to calculate position sizes for my trading activities with a broker.
    The file has several sheets as follows:
    Sheet 1: Calculation Sheet: Contains the formulas for the position size calculation divided in four sections, Forex position, Futures position, Spot Metals position and Shares position.
    Sheet 2: Forex Sheet: Contains data related to the instruments that the broker offers under the category - forex i.e. currency pairs.
    Sheet 3: Futures Sheet: Contains data related to the instruments that the broker offers under the category - futures i.e. futures contracts with base assets, indeces and commodities.
    Sheet 4: Spot Metals Sheet: Contains data related to the instruments that the broker offers under the category - spot metals i.e. gold and silver.
    Sheet 5: FX Rates: The sheet is linked to a web page and download the exchange rates for several currencies.

    In the calculation sheet, I've created several drop down menus, one for selecting the accounts base currency and one for each instrument category containing the respective instruments. Except for the first drop down menu, the contents of which hard typed in a list all others derive their contents from a cell range. Thus the drop down menu for forex instruments derives its contents from (the first column of) the Forex Sheet, for futures instruments derives the its contents from the Futures Sheet and so on.

    I use VLOOKUP for two purposes, one is for deriving the exchange rate of USD against the selected base currency of the account and the other is for deriving the decimal points for every instrument's price at which the broker gives precision. The number of decimal points is located at the last column of the respective sheet (Forex, Futures, Spot Metals and Shares).

    The problem is that in the sheet for calculations at the part that corresponds to the futures position category, VLOOKUP returns wrong results!!!
    Take a look at the cell E28.

    Please take also under consideration the I get wrong results from MS Office 2010 (the file being .xls or .xlsx), from LibreOffice Calc (the file being .ods), but when I upload the .xls file to Google Spreadsheets I get the correct results!!!

    file link: http://www.filedropper.com/fxpropositioncalculator

  2. #2
    Junior Member
    Join Date
    Feb 2013
    Posts
    2
    Rep Power
    0
    I hate to reply to on my own threads... but it turns out that I didn't add the optional range_lookup parameter to my vlookup formulas... adding ,FALSE to all of them corrected the issue!

Similar Threads

  1. LookUp Value and Concatenate All Found Results
    By Rick Rothstein in forum Rick Rothstein's Corner
    Replies: 48
    Last Post: 10-31-2019, 07:00 AM
  2. MLookup not returning results
    By jomili in forum Excel Help
    Replies: 5
    Last Post: 12-20-2012, 09:16 PM
  3. Help with a Vlookup and SUMIF
    By Lucero in forum Excel Help
    Replies: 4
    Last Post: 07-24-2012, 05:03 AM
  4. Replies: 12
    Last Post: 05-27-2012, 08:38 PM
  5. VLOOKUP with Multiple Results
    By Admin in forum Excel and VBA Tips and Tricks
    Replies: 2
    Last Post: 05-26-2011, 10:29 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •