+ Reply to Thread
Results 1 to 6 of 6

Vlookup copying row FORMULA NOT VALUES

  1. #1
    Registered User
    Join Date
    02-22-2021
    Location
    Cape Town, South Africa
    MS-Off Ver
    2016
    Posts
    3

    Vlookup copying row FORMULA NOT VALUES

    Hi All
    I have a problem with VLOOKUP copying FORMULA not VALUES
    Attached is an excel book named EXCEL_FORUM.xlsx

    Sheet 1 is the raw material pricing, Sheet 2 is finished product and Sheet 3 is an order, extracted from finished items in Sheet 2
    I need to enter the finished product code in sheet 3, and copy the entire result row from Sheet 2 into the order (Sheet 3). NOT VALUES but Sheet2 FORMULA

    The reason is that the quantities of raw material items making up the finished product in the order (Sheet 3) might need to be amended.
    As can be seen from Sheet 3, the YELLOW shows the value from Sheet 2, whereas I need the green which shows the formula from Sheet 2.
    In real life, Sheet 1 and Sheet 2 are separate books, but the principle is the same
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Vlookup copying row FORMULA NOT VALUES

    When I open up your workbook, I see exactly the same values in the green and yellow cells. Do you maybe have your calculations set to "manual" (found on Formulas Tab of ribbon)?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    02-22-2021
    Location
    Cape Town, South Africa
    MS-Off Ver
    2016
    Posts
    3

    Re: Vlookup copying row FORMULA NOT VALUES

    I am not sure if my problem is being understood.

    In Sheet3, if I change the quantity value (column d), it will not change the price value in the yellow column, but will change the price value in the green column.
    That is because when I brought the vlookup to Sheet 3, it did not bring the actual formula from Sheet 2 (which has links to Sheet 1)

    If I did a simple copy and paste (as function) a row from Sheet 2, iT would copy the formula with links to Sheet 1, which is what I require.

    Calculations are set to automatic.

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

    Re: Vlookup copying row FORMULA NOT VALUES

    This is what you need to combine the two:

    =IFERROR($D4*VLOOKUP($A4,Sheet2!A:J,5,FALSE),"")
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    02-22-2021
    Location
    Cape Town, South Africa
    MS-Off Ver
    2016
    Posts
    3

    Re: Vlookup copying row FORMULA NOT VALUES

    Hi All and thanks for the responses

    Maybe I am not clear enough.
    The cell in SHEET 2 has a formula relating to SHEET 1- That is the same formula I require to bring into SHEET 3
    When I bring it across TO SHEET 3, I want to retain the FORMULA in SHEET 2 which references to SHEET 1
    ie
    SHEET 2 (cell E3)
    =$D3*Sheet1!$B$3
    And NOT
    =IFERROR(VLOOKUP(A4,Sheet2!A:J,5,FALSE),"") (this will only give me the static value in SHEET 2) and not allow me to change the quantity of say hinges on order (SHEET 3)
    In other words, I do NOT want the value of the cell in SHEET 2 But the Formula in SHEET 2 relating to SHEET 1

    TKS

    Jonathan

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Vlookup copying row FORMULA NOT VALUES

    IN E4 of Sheet2 then copied to other columns

    =D3*VLOOKUP(D$1,Sheet1!$A$3:$B$5,2,0)

    IN E3 of Sheet3 then copied to other columns

    =D4*VLOOKUP(D$1,Sheet1!$A$3:$B$5,2,0)
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ 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] Copying a VLOOKUP formula into another cell does not work
    By tom hatten in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-15-2017, 09:46 AM
  2. [SOLVED] Copying Down VLOOKUP formula in VBA
    By kencoburn in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-29-2017, 03:04 PM
  3. Formula for Copying Visible Values Only
    By Psyphon in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-15-2014, 03:00 PM
  4. Macro copying formula where i only want the values
    By fakafan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-10-2014, 10:43 PM
  5. Replies: 5
    Last Post: 01-10-2012, 05:49 PM
  6. Replies: 6
    Last Post: 01-10-2012, 10:53 AM
  7. Formula required for looking up and copying values
    By lemontwist71 in forum Excel General
    Replies: 4
    Last Post: 12-05-2010, 05:56 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