+ Reply to Thread
Results 1 to 3 of 3

return a value to another sheet and decrease the amount of stock on that product

Hybrid View

kdolba return a value to another... 04-24-2024, 09:04 AM
Kaper Re: return a value to another... 04-25-2024, 05:42 AM
kdolba Re: return a value to another... 05-02-2024, 06:25 AM
  1. #1
    Registered User
    Join Date
    04-24-2024
    Location
    London, England
    MS-Off Ver
    online excel
    Posts
    4

    return a value to another sheet and decrease the amount of stock on that product

    Hi, I have 2 sheets one is product list and the other is for sales. I want to make it so when I enter the barcode of a product, it returns the name and price of that product to the sales list, and I want the stock amount to decrease depending on the amount we have sold. I have already figured out the returning value of barcode by using vlookup but I don't know how to decrease the amount of stock.
    Last edited by kdolba; 05-02-2024 at 06:10 AM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,864

    Re: return a value to another sheet and decrease the amount of stock on that product

    Welcome to the forum,

    Adjust adresses in provided below formula according to your workbook.
    I assumed below that Product list is in products worksheet starting (header) in cell A1
    and Sales List is in Sales worksheet also starting in A1

    change cell D1 in Products to "initial quantity" and write in E1 "remaining quantity".
    Then in E2 write:
    Formula: copy to clipboard
    =D2-sumif(Sales!A:A,A2,Sales!D:D)
    and copy down.

    To make (next time you write on forum) helping easier: follow the suggestion from yellow banner at the top of the page and attach sample workbook
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    04-24-2024
    Location
    London, England
    MS-Off Ver
    online excel
    Posts
    4

    Re: return a value to another sheet and decrease the amount of stock on that product

    Thank you so much

+ 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. Formula to Find Original Amount Before Percentage Increase/Decrease
    By lwood1 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-29-2023, 01:44 PM
  2. decrease and increase quantity of stock for two sheets based on selected item
    By abdo M in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-19-2022, 06:43 AM
  3. Formula required for return the product item code from another sheet.
    By Mohammad Munawar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-07-2020, 07:13 AM
  4. Want to update stock sheet as and when i enter product code in invoice sheet
    By anilpatni1234 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-22-2017, 01:18 AM
  5. Stock Sheet Increase and decrease
    By mgwillimk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-17-2011, 10:47 AM
  6. Increase/decrease amount remaining from original on a daily input basis
    By katie@trainup.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-23-2011, 01:16 AM
  7. Get product only when you have price and amount in stock
    By Clash in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 05-30-2006, 05:15 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