+ Reply to Thread
Results 1 to 6 of 6

cell changed in one sheet look up and update a cell in another sheet

  1. #1
    Registered User
    Join Date
    05-19-2018
    Location
    uuu
    MS-Off Ver
    2016
    Posts
    2

    cell changed in one sheet look up and update a cell in another sheet

    Hello,
    In my first sheet I have a list of all the items with the number in stock. On the second sheet, I have to register the transactions done on the items. On the second sheet, I can the select the item from a list then select the transaction (e.g. purchase) then the number of items. This will find the item on the first sheet and update the number of items in the stock.

    Can you help please?

    Thanks

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: cell changed in one sheet look up and update a cell in another sheet

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: cell changed in one sheet look up and update a cell in another sheet

    It is always easier to help and test possible solutions if we could work with your actual file. Perhaps you could post a copy of your file. De-sensitize it if necessary. Include a detailed description of what you want to do using a few examples form your data and referring to specific row, cells and sheets.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  4. #4
    Registered User
    Join Date
    05-19-2018
    Location
    uuu
    MS-Off Ver
    2016
    Posts
    2

    Re: cell changed in one sheet look up and update a cell in another sheet

    Hello,
    I attached a copy of the file
    If I add a new transaction on the second sheet (like purchase) and select Yes for the field Apply, I need the stock on the first sheet to be updated.
    Thanks
    Attached Files Attached Files
    Last edited by rorororororo; 05-20-2018 at 10:18 AM.

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: cell changed in one sheet look up and update a cell in another sheet

    So would the transaction described cause 15 to be added to the Quantity in stock??

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: cell changed in one sheet look up and update a cell in another sheet

    Copy and paste this macro into the worksheet code module. Do the following: right click the tab for your "Transactions" sheet and click 'View Code'. Paste the macro into the empty code window that opens up. Close the code window to return to your sheet. Enter your data in columns A, B, C and E and enter the quantity in column D last and exit the cell. The quantity entered will be subtracted from the quantity in "TCM". Before you do all this, the tab name "TCM" has a space at the end. Remove that trailing space in the tab name.
    Please Login or Register  to view this content.

+ 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. automatically update sheet 1 when sheet 2 is changed
    By Cleburn in forum Excel General
    Replies: 2
    Last Post: 05-27-2014, 09:23 PM
  2. Replies: 3
    Last Post: 09-06-2005, 07:05 AM
  3. Replies: 2
    Last Post: 09-06-2005, 06:05 AM
  4. Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  5. Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  6. Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  7. Replies: 1
    Last Post: 06-23-2005, 03:05 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