+ Reply to Thread
Results 1 to 3 of 3

Problem linking sheets to update stock values

  1. #1
    Registered User
    Join Date
    11-23-2018
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    1

    Exclamation Problem linking sheets to update stock values

    I have two sheets that refer to items, their item codes and their quantities. Sheet1 has all the items listed with columns: Item, Code, Current stock level. Sheet2 is used as a basic order history sheet with columns: name, item, item code, quantity ordered, date, issued (A yes/no value).

    Is it possible to input the details of an order in Sheet2 and have excel search for the item code on sheet1 and then subtract the order quantity I input from the stock value? Can this be done using an IF function?

    I know this is not a real formula but it might explain better what I need:

    =IF 'Y' in cell X then search tab1 cell range X:X for 'code' row, then subtract tab2 cell quantity from tab1 stock quantity

    I am currently doing this manually between the two sheets.

    Apologies if this a simple problem to solve, but if you could give me an example of how to do this or point me to a previous thread, but I would be very grateful and maybe, just maybe, you will reply in time to stop me making a new head shaped window in my bedroom wall.

    Thank you

  2. #2
    Forum Contributor
    Join Date
    01-09-2016
    Location
    Perth Western Australia
    MS-Off Ver
    Office 365
    Posts
    257

    Re: Problem linking sheets to update stock values

    Hi

    To automate the closing stock level you will need to input further information
    1. The opening stock level at the start
    2. Purchases added to stock

    The opening stock can be added as a new column on sheet 1 and the purchases added in the same manner as issues on sheet 2.

    I have developed a basic model on what I guess you have at the moment but you will see the principal.
    Then using2 sumif formula in the 2 additional helper columns on sheet 1 and a simple opening stock +purchases-issues in the current stock col will give you a solution.
    The 2 sumif formula simply total purchases and total issues. The formula are:-
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    I have attached my spreadsheet so you can see what I have done. Without an sample it is difficult to present a layout to suit your needs.

    Cheers
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    Re: Problem linking sheets to update stock values

    Quote Originally Posted by XBookNoob View Post
    I have two sheets that refer to items, their item codes and their quantities. Sheet1 has all the items listed with columns: Item, Code, Current stock level. Sheet2 is used as a basic order history sheet with columns: name, item, item code, quantity ordered, date, issued (A yes/no value).

    Is it possible to input the details of an order in Sheet2 and have excel search for the item code on sheet1 and then subtract the order quantity I input from the stock value? Can this be done using an IF function?

    I know this is not a real formula but it might explain better what I need:

    =IF 'Y' in cell X then search tab1 cell range X:X for 'code' row, then subtract tab2 cell quantity from tab1 stock quantity

    I am currently doing this manually between the two sheets.

    Apologies if this a simple problem to solve, but if you could give me an example of how to do this or point me to a previous thread, but I would be very grateful and maybe, just maybe, you will reply in time to stop me making a new head shaped window in my bedroom wall.

    Thank you
    Your situation is similar with me.

    I do that by using 3 sheets.
    Sheet1 has all the data of stock in/out
    Sheet2 is the data where the stock is issued.
    I have a macro button in this Sheet2 which when after click,
    the information of an issued stock in Sheet2 is copied to Sheet1.
    Sheet3 is a PivotTable from the Data in Sheet1.

    So my way, basically is :
    Sheet1 contains the stock value (plus) and the stock value (minus/purchased),
    with a header : Date, Code, Item, QTY

    Sheet2 has the same header, but I use 6 columns
    where the fourth column I put a formula =-E2 (and I hide the column)
    the fifth column is where the user type the order qty
    and the sixth colums is yes/no issued.

    At first the macro prompt the user to choose the cell which has value "Yes" (for example, cell F3)
    Then the macro copy the cell from A3 to D3, paste it to the last blank row in column A of Sheet1.
    Then the macro refresh the Pivot Table, then select Sheet3.

    Maybe you can implement it with your situation.
    Please have a look at the attachment.
    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. Replies: 4
    Last Post: 11-19-2018, 10:48 PM
  2. Have stock chart update stock and clear itself
    By Normonious in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-01-2017, 11:49 AM
  3. Linking rows between sheets so that a macro can update when new data is entered
    By thecaitfish in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-14-2014, 03:08 PM
  4. add, delete, update and add and subtract stock values..
    By djmag in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-12-2013, 07:38 AM
  5. Linking separate sheets problem
    By skhturner in forum Excel General
    Replies: 2
    Last Post: 03-04-2011, 12:33 PM
  6. linking sheets together to show what stock to order
    By sexxxibexxxi in forum Excel General
    Replies: 1
    Last Post: 09-03-2007, 07:51 AM
  7. Linking cells: open source to update values
    By zimon72 in forum Excel General
    Replies: 2
    Last Post: 01-19-2006, 03:21 AM

Tags for this Thread

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