+ Reply to Thread
Results 1 to 3 of 3

Add and subtract from another sheet

  1. #1
    Registered User
    Join Date
    09-18-2021
    Location
    Tripoli, Lebanon
    MS-Off Ver
    2016
    Posts
    2

    Question Add and subtract from another sheet

    Hello,
    I have two sheets
    Sheet 1- Oldstock 2021-2022 : It contains warehouse information

    Sheet 2- Transaction
    Question 1:
    About the information we got from the first item
    We have two transaction: the sale (Sale) and the return (retrieval) and the quantity sold or returned
    After putting the quantity sold, I want to make a confirmation in order to transfer NEWSTOCK to Quantity in stock of the first sheet.

    Question 2:
    2- How to add the date automatically each time I add a new line
    I put it now () but how is it written automatically

    The file is attached.
    Thank you.
    Attached Files Attached Files

  2. #2
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: Add and subtract from another sheet

    Question 1:

    It sounds like you want to confirm the updating of your old stock sheet (but only for sales).

    Problem you have is, you are updating your new stock by a formula using your quantity sold and quantity in stock. Then when you update the Old stock with a confirmation in VBA, your quantity in stock is updated (again by formula) which means your New stock is updated again.

    I would solve this by getting rid of the formula in your New Stock column and update it with VBA (see below)

    Question 2:

    I have put the date in automatically for you in your code too. Don't forget to format the cells as the date format you wanr.

    Please Login or Register  to view this content.
    PS. If you want to update Your Old stock regardless (which makes more sense to me - but I don't count) then you need to take your confirmation outside of that If statement.

    Please Login or Register  to view this content.
    Last edited by Croweater; 09-20-2021 at 03:48 AM.

  3. #3
    Registered User
    Join Date
    09-18-2021
    Location
    Tripoli, Lebanon
    MS-Off Ver
    2016
    Posts
    2

    Re: Add and subtract from another sheet

    Thank you
    I will get back to you.

+ 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. Subtract Values from cells in one sheet from another sheet
    By Andy C. in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-02-2021, 04:17 PM
  2. Inventory log: Add or Subtract values from another sheet
    By LennyG in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-21-2020, 09:56 AM
  3. 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
  4. STILL NEED HELP! How can I subtract percentages from 1 sheet to another?
    By cellphones232 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-05-2017, 03:25 AM
  5. macro to get sum of sheet 1 subtract with sum of sheet 2 and input value of sheet 3
    By danwoltrs in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-15-2015, 04:41 PM
  6. [SOLVED] Subtract entire sheet?
    By jennifer in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-27-2005, 11:06 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