+ Reply to Thread
Results 1 to 9 of 9

Changing Data in a Lookup Table

  1. #1
    Forum Contributor
    Join Date
    04-23-2014
    Location
    Liverpool...ish
    MS-Off Ver
    Excel 2013
    Posts
    126

    Question Changing Data in a Lookup Table

    Another day, another comprehension problem. I am creating, essentially, a product order form (actually a shopping list creator for my wife). Containing 'Quantity', 'Product Name' and 'Price'. When I enter the product name via a drop-down list, the price is displayed using vlookup.... no problem so far.

    My problem is... or should I say, my desire is, that when the vlookup price is displayed, if I (my spouse) know the current price to be different from the one retrieved from the lookup table, I would like to post the new price and modify the data in the lookup table so that any future requests for that item will reflect the new price.

    Hope this makes sense.. and Thanks in Advance for any help...

    Scott

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Changing Data in a Lookup Table

    I don't know what is your actual problem now

    Because simply changing the price in the source will reflect the new price


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Changing Data in a Lookup Table

    Hi Scott,

    Welcome to the forum. Can you post a workbook with sample data?
    If my assistance has helped, there is a reputation icon * on the left hand corner below the post - you can show your appreciation to the user who has helped in resolving your requirement.

    If your requirement has been solved please mark your thread as Solved.
    In the menu bar above the very first post, select Thread Tools, then select "Mark this thread as Solved".

    Kindly use [FORMULA] or [CODE] tags when posting your code.

    Regards,
    Sarang

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,511

    Re: Changing Data in a Lookup Table

    Surely all she has to do is change the value in the lookup table?

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Forum Contributor
    Join Date
    04-23-2014
    Location
    Liverpool...ish
    MS-Off Ver
    Excel 2013
    Posts
    126

    Re: Changing Data in a Lookup Table

    Thank you for the reply. Not so clear on my part. My wife will be using this creation so her finding and successfully modifying the table which includes some 300 items is not what I have in mind. Ideally, I would like her to be able to enter the new price over the one posted by vlookup ( this isn't possible, I don't believe, as it erases the original vlookup formula) perhaps a second column that she could input the price change which would modify the table. This needs to be as user friendly as I can make it.

    Thanks

  6. #6
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Changing Data in a Lookup Table

    Quote Originally Posted by TMS View Post
    Surely all she has to do is change the value in the lookup table?

    Regards, TMS
    Hi TMS,

    Looks like the OP is asking for help for updation to be done on a daily basis like in a supermarket / grocery store, etc.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,511

    Re: Changing Data in a Lookup Table

    The only way I can think of is with a worksheet change event. This would monitor the column next to the VLOOKUP and, if a new value is entered, take the product code, find it in the table, and replace it with the new value. You might want to includes some checks to confirm that the change was intended.

    Regards, TMS

  8. #8
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Changing Data in a Lookup Table

    add a new column in to be "NEW price"
    assign a macro either via button or run macro to update line that has any data the new column into data table
    after table is updated clear the new price column
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  9. #9
    Forum Contributor
    Join Date
    04-23-2014
    Location
    Liverpool...ish
    MS-Off Ver
    Excel 2013
    Posts
    126

    Re: Changing Data in a Lookup Table

    I didn't just want to leave this thread hang after folks were kind enough to respond. I went away and tried to find a solution to this problem and the more I worked on it, the more difficult the problem became. As I started considering price variations between stores, sale prices and what I had originally attempted to track, normal price changes, the amount of data required for a simple shopping list became more than the benefit was worth. Anyway, that feature dropped and prices will have to be entered manually at the time of list creation.

    Thanks for the responses.. I can't consider this solved... but I can consider the responses appreciated.

    Scott

+ 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] Changing LOOKUP table prices changes previous sales too!
    By CaneRivero in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 08-04-2012, 11:14 AM
  2. Finding changing data from a pivot table
    By bgreen in forum Excel General
    Replies: 1
    Last Post: 06-24-2009, 10:47 AM
  3. [SOLVED] How do you keep the data table format from changing
    By diehard22 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 08-11-2006, 11:05 AM
  4. [SOLVED] Changing the data of a Pivot Table
    By Bonbon in forum Excel General
    Replies: 2
    Last Post: 02-20-2006, 12:40 PM
  5. [SOLVED] changing proportion of chart and data table
    By Dawn Parks in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 01-05-2005, 10:06 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