+ Reply to Thread
Results 1 to 10 of 10

VLOOKUP conversion formula help

  1. #1
    Registered User
    Join Date
    11-16-2016
    Location
    Houston
    MS-Off Ver
    2016
    Posts
    6

    VLOOKUP conversion formula help

    See attached Excel Workbook.

    I'm using VLOOKUP to find a formula to convert currency/Unit of Measure. VLOOKUP finds the currency/UoM name in another sheet within workbook and then picks up the conversion calculation that then refers back to sheet 1 to plug in a value to convert. The formula in attached file works but when the formula in cell D1 in 1st sheet is coppied down it doesnt use the correct value in column B for record being pasted to. If you follow the formula in Sheet 1 cell D2 you should be able to follow what is being attempted. Using the absolute/relative symbol doesnt see to work. Columns H-I should be ignored

    All help is appreciated.
    Attached Files Attached Files
    Last edited by mgmacha71; 11-17-2016 at 01:29 PM.

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: VLOOKUP that references a formula ......

    How do i attach the excel file?
    Hi mgmacha71 and welcome to the forum.


    1. To attach a file to your post,
    2. click “Go Advanced” (next to Post Quick Reply – bottom right),
    3. scroll down until you see “Manage Attachments”, click that,
    4. click “Browse”.
    5. select your file(s)
    6. click “Upload”
    7. click “Close window”
    8. click “Submit Reply”
    9. The file name will appear at the bottom of your reply.
    Dave

  3. #3
    Registered User
    Join Date
    11-16-2016
    Location
    Houston
    MS-Off Ver
    2016
    Posts
    6

    Re: VLOOKUP that references a formula ......

    Thank you!

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: VLOOKUP that references a formula ......

    ____________________

  5. #5
    Registered User
    Join Date
    11-16-2016
    Location
    Houston
    MS-Off Ver
    2016
    Posts
    6

    Re: VLOOKUP conversion formula help

    I have updated the question in this posting to make it a bit more clear as well as attached the excel file. All help is GREATLY appreciated!!!

  6. #6
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Re: VLOOKUP conversion formula help

    I don't know exactly what those conversions are etc, but if I were to just look at the vlookup, it's giving me the correct value.

    i.e, EUR/M3 will always shows as $0.43

  7. #7
    Registered User
    Join Date
    11-16-2016
    Location
    Houston
    MS-Off Ver
    2016
    Posts
    6

    Re: VLOOKUP conversion formula help

    Quote Originally Posted by dluhut View Post
    I don't know exactly what those conversions are etc, but if I were to just look at the vlookup, it's giving me the correct value.

    i.e, EUR/M3 will always shows as $0.43
    Yes the formula is correct, but when you copy it down on first sheet the answer should change for each record because the value in Cost is different in each record. When you past it down the answer is always same as from copied cell. An easy way to test is to change the cCost value in column B and the value in column D should only change for the record changed.

  8. #8
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Re: VLOOKUP conversion formula help

    Wait, are you saying that when you copied down, you always get $0.43?

    If that's the case, maybe your calculation set to Manual.

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: VLOOKUP conversion formula help

    All very confusing:

    Change "Cost" in Name

    100 in B2

    Result is

    E2 in "Currency_Uom" now 0.48453

    D2 in name is the above value as is D5.

    If D5 in "NAME is now 200 ..

    then E5 in "Currency_Uom" is now 200! which given the formula =($C5/$D5)*Name!B5 is correct.

    The formulas in "Currency_Uom" column E are NOT static as they relate to formulae in "Name"

    In summary I am not sure what you require!!!!

  10. #10
    Registered User
    Join Date
    11-16-2016
    Location
    Houston
    MS-Off Ver
    2016
    Posts
    6

    Re: VLOOKUP conversion formula help

    Quote Originally Posted by JohnTopley View Post
    All very confusing:

    Change "Cost" in Name

    100 in B2

    Result is

    E2 in "Currency_Uom" now 0.48453

    D2 in name is the above value as is D5.

    If D5 in "NAME is now 200 ..

    then E5 in "Currency_Uom" is now 200! which given the formula =($C5/$D5)*Name!B5 is correct.

    The formulas in "Currency_Uom" column E are NOT static as they relate to formulae in "Name"

    In summary I am not sure what you require!!!!
    I know it's confusing. So here is more detail on what the values are: Sheet "Name" fields are defined as follows...


    Sheet "Name"
    Cost = numeric value
    Currency/UoM = the currency and unit of measue of value in Cost
    USD = is the US dollar/US gallon based on calculation that is used to convert the value in Cost to USD/USG

    Example = record 2 in "Name" reads 89 Euros per Metric Ton is converted to $0.43 per Gallon. The calculation for that conversion is in column E of sheet "Currency_UoM" where the Curr_UoM = VLOOKUP


    Sheet "Currency_UoM"

    Curr_UoM = short name for currency and unit of measure value
    FX_Rate = Foreign exchange rate base on currency
    ConvCalc = number used to perform conversion
    USD/USG = converted value of record of focus in column B of Sheet "Name"


    When the formula in D2 in sheet "Name" is copied and pasted down that column, it should calculate based on corresponding value in column B of that row

    The formulas in sheet "Currency_UoM" are static EXCEPT for their reference back to column B in sheet "Name"


    As seen in the new excel file attached the copied cells in column D of sheet "Name" all have the value of $0.91 when the value being converted in column B changes.

    Thank you very much for your time!!!
    Attached Files Attached Files

+ 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] Help with this VLOOKUP that uses 3 references
    By ricdamiani in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-13-2016, 09:31 PM
  2. Converting Vlookup formula to Direct Cell references.
    By ankitg2006 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-09-2015, 08:27 PM
  3. Vlookup not working with formula references
    By Chickenstrip in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-16-2013, 12:05 AM
  4. [SOLVED] Vlookup formula that references the row you are on
    By Locopete99 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-14-2013, 04:21 AM
  5. Dissecting a formula string into references/non-references
    By quekbc in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-06-2011, 10:52 AM
  6. vlookup using 2 references
    By krayziez in forum Excel General
    Replies: 1
    Last Post: 03-21-2008, 01:59 PM
  7. [SOLVED] how do i use the vlookup with two references ?
    By Vanessa Simmobds in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-22-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