+ Reply to Thread
Results 1 to 6 of 6

Inventory log: Add or Subtract values from another sheet

  1. #1
    Registered User
    Join Date
    03-25-2020
    Location
    Houston
    MS-Off Ver
    2003-64bit
    Posts
    9

    Inventory log: Add or Subtract values from another sheet

    I need help, attached is a simplified copy of what i'm trying to do. I already have a spreadsheet that does all this but based on how many different classes and subclasses I have it became a workbook with multiple sheets. I'm trying to simplify it and break it down to 2 sheets, problem is Im sure i'll need to use VBA which im not good at. Any helpers?

    I have a starting available value, I need to add or subtract from that value based selecting "consumed" or "purchased" on a different sheet. I need the formula to continue going consistently as I continue adding to my log.

    For example:

    If I have 100 of [Class] Soap, [Subclass] A
    I "Consumed" 50
    My new "Available Value" = 50

    on the next day I add to my log that I "purchased" 50 of [Class] Soap, [Subclass] A
    My new "Available Value" = 100

    There are multiple [Classes] and [Subclasses]

    Let me know if you need more clarification! Thanks in advanced!
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Inventory log: Add or Subtract values from another sheet

    You mention looking for the last value, but it seems to me that you may actually want the cumulative value, particularly if you have more than Oneidentical Class and SubClass combination.
    For instance take the Clothes Class where there are three rows on the Log. If they were all the same sub class what answer would you expect? A negative 62?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    03-25-2020
    Location
    Houston
    MS-Off Ver
    2003-64bit
    Posts
    9

    Re: Inventory log: Add or Subtract values from another sheet

    Each subclass would have its own inventory amount. So, if the clothes class were all the same sub class then the answer would be depending on whether we "purchased" or "consumed".

    For example:

    Starting inventory for Clothes [subclass] E = 100

    I enter in my log:

    Row1= [Clothes], [E], [Consumed] "10"

    Row2= [Clothes], [E], [Consumed] "10"

    Row3= [Clothes], [E], [Consumed] "10"

    Then the answer would be 70, if they were [Purchased] the answer would be 130

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,554

    Re: Inventory log: Add or Subtract values from another sheet

    Please try pasting the following into cell D5 on the Inventory Overview sheet and copying down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Inventory log: Add or Subtract values from another sheet

    Quote Originally Posted by LennyG View Post
    Each subclass would have its own inventory amount. So, if the clothes class were all the same sub class then the answer would be depending on whether we "purchased" or "consumed".



    Then the answer would be 70, if they were [Purchased] the answer would be 130
    You seem to be confirming that it's the Sum of a series of numbers (which may be a mixture of positive and negative numbers) rather than the single value you mentioned in post #1.

  6. #6
    Registered User
    Join Date
    03-25-2020
    Location
    Houston
    MS-Off Ver
    2003-64bit
    Posts
    9

    Re: Inventory log: Add or Subtract values from another sheet

    Hey guys I was on a time crunch at work, so I ended up taking what I had originally and just adding some toggle buttons to hide/unhide the columns. Thanks for the help! I spread the love!

+ 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] add & subtract values from userform to specific column in sheet
    By ABDELFATTA in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 09-13-2020, 05:50 AM
  2. vba to subtract two column values and add new too if added in second sheet
    By ROHAN999 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-18-2018, 03:02 PM
  3. Inventory Macro buttons Add and subtract
    By worldwarhulk in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-12-2018, 06:24 AM
  4. [SOLVED] Subtract inventory based on date
    By CSF1988 in forum Excel - New Users/Basics
    Replies: 14
    Last Post: 07-30-2018, 05:09 PM
  5. Need Help creating Formula that will subtract from inventory
    By Eleazer2 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-10-2015, 08:25 AM
  6. Replies: 2
    Last Post: 02-12-2013, 01:58 PM
  7. Subtract from inventory
    By chrispotter88 in forum Excel General
    Replies: 9
    Last Post: 01-28-2008, 09:02 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