+ Reply to Thread
Results 1 to 6 of 6

Auto update stock of books

  1. #1
    Forum Contributor
    Join Date
    02-16-2011
    Location
    Maharashtra, Thane
    MS-Off Ver
    Excel 2021
    Posts
    140

    Auto update stock of books

    Hi,
    I have attached a file where I am updating the books library in excel. Here there are total 3 sheets. In Sheet 1 & 2 I am putting the data manually. Sheet 1 is the inventory which updating the books purchase details and Sheet 2 is Issue register where I am putting the details to whom the books issued. In Sheet 3 is the Stock sheet where I need the stock of the books in D column. This will check the 2nd sheet and if the particular book is not issued / issued and accordingly it will update. If any new book purchased or any existing book purchased another copy that also added in this stock sheet. If books issued and not came then it will not count in stock and after received the book this will added in stock. Request your help.
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Auto update stock of books

    does this work or you
    =INDEX('Book inventory'!$F$2:$F$15,MATCH(Stock!B2&Stock!C2,'Book inventory'!$B$2:$B$15&'Book inventory'!$C$2:$C$15,0))-COUNTIFS('Issue Register'!$B$2:$B$15,Stock!B2,'Issue Register'!$C$2:$C$15,Stock!C2,'Issue Register'!$I$2:$I$15,"")

    so
    =INDEX('Book inventory'!$F$2:$F$15,MATCH(Stock!B2&Stock!C2,'Book inventory'!$B$2:$B$15&'Book inventory'!$C$2:$C$15,0))
    Looks up how many of the book you have in stock inventory

    Then
    COUNTIFS('Issue Register'!$B$2:$B$15,Stock!B2,'Issue Register'!$C$2:$C$15,Stock!C2,'Issue Register'!$I$2:$I$15,"")
    Counts if the book has been issues but the return date is blank

    it may get complicated if the real data is more complicated or if the database is Huge

    over the xmas period
    I will be seeing family for a few days, back on 30th Dec, but may have the odd moment to answers here

    So i may not reply now until then - sorry if i have misunderstood - or leave hanging

    Hopefully other members will pickup before
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Contributor
    Join Date
    02-16-2011
    Location
    Maharashtra, Thane
    MS-Off Ver
    Excel 2021
    Posts
    140

    Re: Auto update stock of books

    Hi Sir,
    Thanks for your help. i have tried the file but it is not adding the stock sheet when i have added a record in Inventory sheet and marked yellow colour for your reference. In stock sheet the 2nd row will be 2 instead of 1 and it will not auto update. Secondly when i am try to mention anything in E column of Stock sheet the file will got error message that Microsoft will not start working. Please help.
    Attached Files Attached Files

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Auto update stock of books

    you have entered
    Essentials of medical physiology Sembulingam in book inventory, which has already been listed

    so need to use a SUMIFS()
    But are you expecting the Stock sheet to update all the titles etc as a Unique list
    you are showing as using excel version 2007 - is that still the case , as with the latest version unique values are much easier to code

    2007 has SUMIFS()
    =SUMIFS('Book inventory'!$F$2:$F$15, 'Book inventory'!$B$2:$B$15,B3,'Book inventory'!$C$2:$C$15,C3)-COUNTIFS('Issue Register'!$B$2:$B$15,Stock!B3,'Issue Register'!$C$2:$C$15,Stock!C3,'Issue Register'!$I$2:$I$15,"")

    But if you want to create the Stock sheet from the inventory sheet, that may be more complicated using arrays to extract unique values of Title & Author, also is just those 2 headings always going to be unique ?


    I will be seeing family for a few days, back on 30th Dec

    So i may not reply now until then - sorry if i have misunderstood - or leave hanging

    Hopefully other members will pickup before
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    02-16-2011
    Location
    Maharashtra, Thane
    MS-Off Ver
    Excel 2021
    Posts
    140

    Re: Auto update stock of books

    Dear Sir,
    Sorry for the late reply. I have tried this file with filled all my records and working fine and not given any error. Thanks for your help.

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Auto update stock of books

    you are welcome

+ 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. How to auto update product stock when a sale happens
    By psahani in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-19-2018, 06:45 AM
  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. Auto update excel spreadsheet with stock data
    By dalewms3 in forum Excel General
    Replies: 0
    Last Post: 02-28-2015, 10:01 PM
  4. two books update each other with vlookup vba
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2014, 06:11 AM
  5. Auto Update Stock Quantities
    By Dougie8 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-11-2012, 02:05 PM
  6. Update Master if there's new data in separate sub-books
    By ValueLinks in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-22-2011, 12:32 AM
  7. Update all the work books
    By Sweetie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-22-2006, 05: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